Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"throw: index out of range" and "unknown pc" running network tests on Virtuozzo-virtualized Linux/amd64 system #15

Closed
gopherbot opened this issue Nov 11, 2009 · 1 comment

Comments

@gopherbot
Copy link
Contributor

by montsamu:

What steps will reproduce the problem?
1. attempt to run ./all.bash on a Virtuozzo-virtualized Linux/amd64 system

What is the expected output? What do you see instead?

Expected output is the completed build/test message as described in the 
install docs.

Actual result is:

make[2]: Entering directory `/home/sam/go/src/pkg/net'
6g -o _gotest_.6 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_linux.go 
ip.go ipsock.go net.go parse.go port.go sock.go tcpsock.go udpsock.go 
unixsock.go    dialgoogle_test.go ip_test.go net_test.go parse_test.go 
port_test.go server_test.go timeout_test.go
rm -f _test/net.a
gopack grc _test/net.a _gotest_.6
make[2]: Leaving directory `/home/sam/go/src/pkg/net'
throw: index out of range

panic PC=0x2aaaaab32d38
throw+0x3e /home/sam/go/src/pkg/runtime/runtime.c:74
        throw(0x47f060, 0x0)
runtime·throwindex+0x1c /home/sam/go/src/pkg/runtime/runtime.c:47
        runtime·throwindex()
net·hostPortToIP+0x19a /home/sam/go/src/pkg/net/ipsock.go:199
        net·hostPortToIP(0x446170, 0x0, 0x3, 0x0, 0x464280, ...)
net·ResolveTCPAddr+0x34 /home/sam/go/src/pkg/net/tcpsock.go:61
        net·ResolveTCPAddr(0x464280, 0x0, 0xf, 0x0, 0x4462f0, ...)
net·Dial+0x2a3 /home/sam/go/src/pkg/net/net.go:133
        net·Dial(0x446170, 0x0, 0x3, 0x0, 0x4462f0, ...)
net·TestDialError+0xbc /home/sam/go/src/pkg/net/net_test.go:56
        net·TestDialError(0xaaba0bc0, 0x2aaa)
testing·tRunner+0x22 /home/sam/go/src/pkg/testing/testing.go:105
        testing·tRunner(0xaaba0bc0, 0x2aaa, 0x494a28, 0x0)
goexit /home/sam/go/src/pkg/runtime/proc.c:134
        goexit()
0x2aaaaaba0bc0 unknown pc

goroutine 3:
runtime·entersyscall+0x50 /home/sam/go/src/pkg/runtime/proc.c:539
        runtime·entersyscall()
syscall·Syscall6+0x5 /home/sam/go/src/pkg/syscall/asm_linux_amd64.s:41
        syscall·Syscall6()
syscall·EpollWait+0x84 
/home/sam/go/src/pkg/syscall/zsyscall_linux_amd64.go:132
        syscall·EpollWait(0x6, 0x2aaa, 0xaab64a00, 0x2aaa, 0x1, ...)
net·*pollster·WaitFD+0xb5 /home/sam/go/src/pkg/net/fd_linux.go:116
        net·*pollster·WaitFD(0xaab2cc80, 0x2aaa, 0x38fd0ce0, 0x0, 0x72, 
...)
net·*pollServer·Run+0x9e /home/sam/go/src/pkg/net/fd.go:237
        net·*pollServer·Run(0xaaaf3380, 0x2aaa)
goexit /home/sam/go/src/pkg/runtime/proc.c:134
        goexit()
0x2aaaaaaf3380 unknown pc

goroutine 1:
gosched+0x34 /home/sam/go/src/pkg/runtime/proc.c:515
        gosched()
chanrecv+0x318 /home/sam/go/src/pkg/runtime/chan.c:319
        chanrecv(0xaab51280, 0x2aaa, 0xaab31f68, 0x2aaa, 0x0, ...)
runtime·chanrecv1+0x50 /home/sam/go/src/pkg/runtime/chan.c:415
        runtime·chanrecv1(0xaab51280, 0x2aaa)
testing·Main+0x263 /home/sam/go/src/pkg/testing/testing.go:132
        testing·Main(0x4949f8, 0x0)
main·main+0x23 /home/sam/go/src/pkg/net/_testmain.go:21
        main·main()
mainstart+0xf /home/sam/go/src/pkg/runtime/amd64/asm.s:55
        mainstart()
goexit /home/sam/go/src/pkg/runtime/proc.c:134
        goexit()
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/sam/go/src/pkg/net'
make: *** [net.test] Error 2


What is your $GOOS?  $GOARCH?

sam@sol:~/go/src$ env | grep GO
GOARCH=amd64
GOROOT=/home/sam/go
GOOS=linux

Which revision are you sync'ed to?  (hg log -l 1)

sam@sol:~/go/src$ hg log -l 1
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <rsc@golang.org>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

sam@sol:~/go/src$ cat /etc/issue
Ubuntu 8.04.3 LTS \n \l

sam@sol:~/go/src$ uname -a
Linux sol...... 2.6.18-53.1.19.el5.028stab053.14 #1 SMP Thu May 8 16:29:13 
MSD 2008 x86_64 GNU/Linux
@agl
Copy link
Contributor

agl commented Nov 11, 2009

Comment 1:

Fixed on trunk. Please hg pull -u to update.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
tklauser pushed a commit to tklauser/go that referenced this issue May 8, 2019
Replace the README with RISC-V specific usage and contribution
information. This will hopefully reduce confusion for new contributors.

Alas, it will probably cause merge conflicts on every merge.

Also fixes golang#15 in the move of riscv.md.

Change-Id: I254346d1931343944465b45a4d58deebd447fea6
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants