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 during all.bash #10

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

throw: index out of range during all.bash #10

gopherbot opened this issue Nov 11, 2009 · 1 comment

Comments

@gopherbot
Copy link
Contributor

by pierslauder:

What steps will reproduce the problem?

1. Download using hg command "hg clone -r release 
https://go.googlecode.com/hg/ $GOROOT"

2. cd $GOROOT/src; ./all.bash

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

Expected output:
--- cd ../test
N known bugs; 0 unexpected bugs

Instead get:
...
gopack grc _test/net.a _gotest_.6 
make[2]: Leaving directory `/home/srce/pd/go/src/pkg/net'
throw: index out of range

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

goroutine 3:
runtime·entersyscall+0x50 /home/srce/pd/go/src/pkg/runtime/proc.c:539
        runtime·entersyscall()
syscall·Syscall6+0x5 /home/srce/pd/go/src/pkg/syscall/asm_linux_amd64.s:41
        syscall·Syscall6()
syscall·EpollWait+0x84 
/home/srce/pd/go/src/pkg/syscall/zsyscall_linux_amd64.go:132
        syscall·EpollWait(0x6, 0x2aef, 0x65d00c60, 0x2aef, 0x1, ...)
net·*pollster·WaitFD+0xb5 /home/srce/pd/go/src/pkg/net/fd_linux.go:116
        net·*pollster·WaitFD(0x65ca60a0, 0x2aef, 0x2fb72df0, 0x0, 0x72, ...)
net·*pollServer·Run+0x9e /home/srce/pd/go/src/pkg/net/fd.go:237
        net·*pollServer·Run(0x65c49540, 0x2aef)
goexit /home/srce/pd/go/src/pkg/runtime/proc.c:134
        goexit()
0x2aef65c49540 unknown pc

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



What is your $GOOS?  $GOARCH?

GOARCH=amd64
GOOS=linux


Which revision are you sync'ed to?  (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.
@agl
Copy link
Contributor

agl commented Nov 11, 2009

Comment 1:

Fixed by de1a91a5a8. 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
Bit 19 may be set in the high immediate returned by Split32BitImmediate.
(The most obvious case is for 1<<31-1). This means that the immediate
will be sign-extended when used with LUI.

We must sign-extend this value to make it clear that this is
intentional, otherwise assemble will reject the immediate for 'not
fitting in 20 bits'.

Fixes golang#10

Change-Id: I83ac8a81a5fb1a9663af63bc2dee8a896567f945
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