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 #28

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

Comments

Projects
None yet
3 participants
@gopherbot
Copy link

commented Nov 11, 2009

by morphius.faydal:

What steps will reproduce the problem?
1. repo version 3975:b51fd2d6c160
2. ./all.bash
3. will give an error.

What is the expected output? What do you see instead?
make[2]: Entering directory `/home/morphius/go/src/pkg/net'
rm -f _test/net.a _gotest_.8
make[2]: Leaving directory `/home/morphius/go/src/pkg/net'
make[2]: Entering directory `/home/morphius/go/src/pkg/net'
8g -o _gotest_.8 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_.8 
make[2]: Leaving directory `/home/morphius/go/src/pkg/net'
SIGTRAP: trace trap
Faulting address: 0x0
PC=0x8052840

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

goroutine 3:
runtime·entersyscall+0x60 /home/morphius/go/src/pkg/runtime/proc.c:539
    runtime·entersyscall()
syscall·Syscall6+0x5 /home/morphius/go/src/pkg/syscall/asm_linux_386.s:650
    syscall·Syscall6()
syscall·EpollWait+0x7c
/home/morphius/go/src/pkg/syscall/zsyscall_linux_386.go:132
    syscall·EpollWait(0x6, 0x400bac30, 0x1, 0x1, 0x165, ...)
net·*pollster·WaitFD+0xff /home/morphius/go/src/pkg/net/fd_linux.go:116
    net·*pollster·WaitFD(0x400424f0, 0x1540ac80, 0x0, 0x400b41c0, 0x72, ...)
net·*pollServer·Run+0xc3 /home/morphius/go/src/pkg/net/fd.go:237
    net·*pollServer·Run(0x4008e2a0, 0x80cb318)
goexit /home/morphius/go/src/pkg/runtime/proc.c:134
    goexit()
0x4008e2a0 unknown pc

goroutine 1:
gosched+0x48 /home/morphius/go/src/pkg/runtime/proc.c:515
    gosched()
chanrecv+0x2d3 /home/morphius/go/src/pkg/runtime/chan.c:319
    chanrecv(0x400ce810, 0x4007af8c, 0x0, 0x4007c0d8)
runtime·chanrecv1+0x4e /home/morphius/go/src/pkg/runtime/chan.c:415
    runtime·chanrecv1(0x400ce810, 0x80c9a54)
testing·Main+0x25f /home/morphius/go/src/pkg/testing/testing.go:132
    testing·Main(0x80c9a3c, 0xb)
main·main+0x29 /home/morphius/go/src/pkg/net/_testmain.go:21
    main·main()
mainstart+0xf /home/morphius/go/src/pkg/runtime/386/asm.s:81
    mainstart()
goexit /home/morphius/go/src/pkg/runtime/proc.c:134
    goexit()
eax     0x4004805000000000
ebx     0x400480504007bf10
ecx     0x40048050080a9104
edx     0x4004805040079820
edi     0x400480504007bf10
esi     0x400480504007bee8
ebp     0x4004805000000001
esp     0x400480504007bec4
eip     0x4004805008052840
eflags  0x4004805000200246
cs      0x4004805000000073
fs      0x4004805000000000
gs      0x400480500000003f
/home/morphius/gobin/gotest: line 141: 25464 Trace/breakpoint trap   $E
./$O.out "$@"
make[1]: *** [test] Error 133
make[1]: Leaving directory `/home/morphius/go/src/pkg/net'
make: *** [net.test] Error 2
morphius@azmael:~/go/src$

What is your $GOOS?  $GOARCH?

$GOOS=linux
$GOARCH=386

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

3975:b51fd2d6c160


Please provide any additional information below.
@gopherbot

This comment has been minimized.

Copy link
Author

commented Nov 11, 2009

Comment 1 by g.a.t.sandstrom:

I experienced the same error.
linux/386
Ubuntu 9.04
changeset:   3975:b51fd2d6c160 (same as above)
I was able to avoid this error and complete the build by adding net\ to the NOTEST
list in src/pkg/Makefile as suggested by rydmen in issue report 23: SIGTRAP on all.bash.
@rsc

This comment has been minimized.

Copy link
Contributor

commented Nov 11, 2009

Comment 2:

Status changed to Duplicate.

Merged into issue #23.

@gopherbot gopherbot added the duplicate label Nov 11, 2009

minux pushed a commit to minux/goios that referenced this issue Feb 27, 2015

cmd/7a: make RET an alias to ARETURN in the assembler
Note that RET still becomes ARETURN, not ARET. This means we lose
the ability to write a literal return instruction from assembly,
but that's okay, we never need to do that.

Fixes golang#28

Change-Id: I5733bbb16d98585cb7309314965750e58042a7a4

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

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

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

@gopherbot gopherbot added the NeedsFix label Jun 19, 2018

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.