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

net: TestDialError fails #23

Closed
gopherbot opened this issue Nov 11, 2009 · 6 comments

Comments

Projects
None yet
3 participants
@gopherbot
Copy link

commented Nov 11, 2009

by telugujoshi:

What steps will reproduce the problem?
1. cd $GOROOT/src;./all,bash
2.
3.

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

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

I saw:
...
rm -f _test/net.a
gopack grc _test/net.a _gotest_.8 
make[2]: Leaving directory `/home/joshi/go/src/pkg/net'
SIGTRAP: trace trap
Faulting address: 0x0
PC=0x8052840

net·hostPortToIP+0x15d /home/joshi/go/src/pkg/net/ipsock.go:199
    net·hostPortToIP(0x809608c, 0x3, 0x80a9104, 0xf, 0x0, ...)
net·ResolveTCPAddr+0x36 /home/joshi/go/src/pkg/net/tcpsock.go:61
    net·ResolveTCPAddr(0x80a9104, 0xf, 0x80960d0, 0x0)
net·Dial+0x27e /home/joshi/go/src/pkg/net/net.go:133
    net·Dial(0x809608c, 0x3, 0x80960d0, 0x0, 0x80a9104, ...)
net·TestDialError+0xd8 /home/joshi/go/src/pkg/net/net_test.go:56
    net·TestDialError(0x260ca0, 0x1)
testing·tRunner+0x36 /home/joshi/go/src/pkg/testing/testing.go:105
    testing·tRunner(0x260ca0, 0x80c9a54, 0x0)
goexit /home/joshi/go/src/pkg/runtime/proc.c:134
    goexit()
0x260ca0 unknown pc

goroutine 3:
runtime·entersyscall+0x60 /home/joshi/go/src/pkg/runtime/proc.c:539
    runtime·entersyscall()
syscall·Syscall6+0x5 /home/joshi/go/src/pkg/syscall/asm_linux_386.s:650
    syscall·Syscall6()
syscall·EpollWait+0x7c /home/joshi/go/src/pkg/syscall/zsyscall_linux_386.go:132
    syscall·EpollWait(0x6, 0x252220, 0x1, 0x1, 0x373, ...)
net·*pollster·WaitFD+0xff /home/joshi/go/src/pkg/net/fd_linux.go:116
    net·*pollster·WaitFD(0x1da4f8, 0x349a1468, 0x0, 0x24c1c0, 0x72, ...)
net·*pollServer·Run+0xc3 /home/joshi/go/src/pkg/net/fd.go:237
    net·*pollServer·Run(0x226280, 0x80cb318)
goexit /home/joshi/go/src/pkg/runtime/proc.c:134
    goexit()
0x226280 unknown pc

goroutine 1:
gosched+0x48 /home/joshi/go/src/pkg/runtime/proc.c:515
    gosched()
chanrecv+0x2d3 /home/joshi/go/src/pkg/runtime/chan.c:319
    chanrecv(0x2667e0, 0x211f8c, 0x0, 0x2130d8)
runtime·chanrecv1+0x4e /home/joshi/go/src/pkg/runtime/chan.c:415
    runtime·chanrecv1(0x2667e0, 0x80c9a54)
testing·Main+0x25f /home/joshi/go/src/pkg/testing/testing.go:132
    testing·Main(0x80c9a3c, 0xb)
main·main+0x29 /home/joshi/go/src/pkg/net/_testmain.go:21
    main·main()
mainstart+0xf /home/joshi/go/src/pkg/runtime/386/asm.s:81
    mainstart()
goexit /home/joshi/go/src/pkg/runtime/proc.c:134
    goexit()
eax     0x1de05000000000
ebx     0x1de05000212f10
ecx     0x1de050080a9104
edx     0x1de05000210910
edi     0x1de05000212f10
esi     0x1de05000212ee8
ebp     0x1de05000000001
esp     0x1de05000212ec4
eip     0x1de05008052840
eflags  0x1de05000000246
cs      0x1de05000000073
fs      0x1de05000000000
gs      0x1de0500000003f
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/joshi/go/src/pkg/net'
make: *** [net.test] Error 2

Compilation exited abnormally with code 2 at Tue Nov 10 22:50:11

What is your $GOOS?  $GOARCH?

linux
386

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.

I reported a similar problem before. Even though the all.bash failed, I was
able to compile and run hello,go and echo.go programs. Is the install
successful or not?
@gopherbot

This comment has been minimized.

Copy link
Author

commented Nov 11, 2009

Comment 1 by rydmen:

Hi, teluguloshi. I am completely new to Go, but from what I can see the code is
installed once this error occurs. As a workaround until smart people take a look at
this, try adding net to NOTEST in src/pkg/Makefile. This allowed the tests I was
running to complete normally.
@gopherbot

This comment has been minimized.

Copy link
Author

commented Nov 11, 2009

Comment 2 by charlie.herron:

I got the same thing on Ubuntu 9.04 w/ the -server kernel.
changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <kevin@sb.org>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt
@gopherbot

This comment has been minimized.

Copy link
Author

commented Nov 11, 2009

Comment 3 by sydehh:

same issue on ubuntu. It appears it's only that test failing and it's still built fine.
added net to notest for now, thanks rydmen.
Linux 2.6.24-ovz009.1-PAE #1 SMP Fri Apr 3 21:54:52 MSD 2009 i686 GNU/Linux
changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <kevin@sb.org>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt
@rsc

This comment has been minimized.

Copy link
Contributor

commented Nov 11, 2009

Comment 4:

TestDialError is disabled now.
hg pull
hg update release
should get you into a working state.

Status changed to Fixed.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Nov 11, 2009

Comment 5:

Issue #28 has been merged into this issue.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Nov 11, 2009

Comment 6:

Issue #32 has been merged into this issue.

@gopherbot gopherbot added the fixed label Nov 11, 2009

This was referenced Dec 8, 2014

@mikioh mikioh added this to the Go1.5 milestone Aug 5, 2015

@mikioh mikioh changed the title TestDialError fails net: TestDialError fails Aug 5, 2015

@golang golang locked and limited conversation to collaborators Jun 24, 2016

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.