FAQ
Change 869253ef7009 broke the linux-arm-panda build:
http://build.golang.org/log/d21f02df978cc262f510eb9a24ed97ea92406a1d

net: fix data races on deadline vars

Fixes issue 4434.

R=mikioh.mikioh, bradfitz, dvyukov, alex.brainman
CC=golang-dev
https://codereview.appspot.com/6855110

http://code.google.com/p/go/source/detail?r=869253ef7009

$ tail -200 < log
/usr/local/go/src/pkg/runtime/ztime_linux_arm.c:73

goroutine 5 [runnable]:
syscall.Syscall()
/usr/local/go/src/pkg/syscall/asm_linux_arm.s:36 +0x5c
syscall.bind(0x7, 0x10998348, 0x10, 0x0, 0x0, ...)
/usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:1320 +0x4c
syscall.Bind(0x7, 0x10998100, 0x10998340, 0x0, 0x0, ...)
/usr/local/go/src/pkg/syscall/syscall_linux.go:422 +0x90
net.socket(0x253200, 0x3, 0x2, 0x1, 0x0, ...)
/usr/local/go/src/pkg/net/sock_posix.go:48 +0x1b0
net.internetSocket(0x253200, 0x3, 0x10901570, 0x10998320, 0x0, ...)
/usr/local/go/src/pkg/net/ipsock_posix.go:146 +0x30c
net.ListenTCP(0x253200, 0x3, 0x10998320, 0x10998320, 0xffffff01, ...)
/usr/local/go/src/pkg/net/tcpsock_posix.go:293 +0x154
net.Listen(0x253200, 0x3, 0x258834, 0xb, 0x0, ...)
/usr/local/go/src/pkg/net/dial.go:204 +0x18c
net/http/httptest.newLocalListener(0x2efc4, 0xb6eaa9f4)
/usr/local/go/src/pkg/net/http/httptest/server.go:61 +0x208
net/http/httptest.NewUnstartedServer(0x0, 0x0, 0x10998300, 0x4ab98)
/usr/local/go/src/pkg/net/http/httptest/server.go:92 +0x20
net/http/httptest.NewServer(0x0, 0x0, 0x3, 0x2303c)
/usr/local/go/src/pkg/net/http/httptest/server.go:79 +0x30
net/rpc.startHttpServer()

/mnt/ssd/tmp/gobuilder/linux-arm-panda-869253ef7009/go/src/pkg/net/rpc/server_test.go:111
+0x30
sync.(*Once).Do(0x3ecb20, 0x4b5e0, 0x2)
/usr/local/go/src/pkg/sync/once.go:40 +0xac
net/rpc.startServer()

/mnt/ssd/tmp/gobuilder/linux-arm-panda-869253ef7009/go/src/pkg/net/rpc/server_test.go:94
+0x198
sync.(*Once).Do(0x3ecb40, 0x4b190, 0x43898)
/usr/local/go/src/pkg/sync/once.go:40 +0xac
net/rpc.TestRPC(0x1096e1e0, 0xe)

/mnt/ssd/tmp/gobuilder/linux-arm-panda-869253ef7009/go/src/pkg/net/rpc/server_test.go:117
+0x30
testing.tRunner(0x1096e1e0, 0x3dfc90, 0x0)
/usr/local/go/src/pkg/testing/testing.go:301 +0xa8
created by testing.RunTests
/usr/local/go/src/pkg/testing/testing.go:377 +0x6cc

goroutine 6 [syscall]:
syscall.Syscall6()
/usr/local/go/src/pkg/syscall/asm_linux_arm.s:42 +0x8
syscall.EpollWait(0x6, 0x1099a008, 0xa, 0xa, 0xffffffff, ...)
/usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:327 +0x90
net.(*pollster).WaitFD(0x1099a000, 0x10998160, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/pkg/net/fd_linux.go:146 +0x154
net.(*pollServer).Run(0x10998160, 0x0)
/usr/local/go/src/pkg/net/fd_unix.go:231 +0x1f4
created by net.newPollServer
/usr/local/go/src/pkg/net/newpollserver_unix.go:33 +0x328
FAIL net/rpc 0.091s
ok net/rpc/jsonrpc 0.105s
ok net/smtp 0.057s
ok net/textproto 0.055s
ok net/url 0.048s
ok old/netchan 0.137s
ok os 0.105s
panic: test timed out

goroutine 18 [running]:
testing.alarm()
/usr/local/go/src/pkg/testing/testing.go:477 +0x60
created by time.goFunc
/usr/local/go/src/pkg/time/sleep.go:96 +0x54

goroutine 1 [chan receive]:
testing.RunTests(0x10c00, 0x354c68, 0xa, 0xa, 0x1, ...)
/usr/local/go/src/pkg/testing/testing.go:378 +0x6ec
testing.Main(0x10c00, 0x354c68, 0xa, 0xa, 0x358190, ...)
/usr/local/go/src/pkg/testing/testing.go:313 +0x68
main.main()
os/exec/_test/_testmain.go:61 +0x94

goroutine 2 [syscall]:
created by runtime.main
/usr/local/go/src/pkg/runtime/proc.c:225

goroutine 3 [timer goroutine (idle)]:
created by addtimer
/usr/local/go/src/pkg/runtime/ztime_linux_arm.c:73

goroutine 14 [semacquire]:
sync.runtime_Semacquire(0x108c0970, 0x5)
/usr/local/go/src/pkg/runtime/zsema_linux_arm.c:165 +0x30
sync.(*Mutex).Lock(0x108c096c, 0x2ee0c)
/usr/local/go/src/pkg/sync/mutex.go:66 +0xf0
net.(*netFD).Close(0x1089d930, 0x0, 0x0)
/usr/local/go/src/pkg/net/fd_unix.go:399 +0x48
net.(*TCPListener).Close(0x10800e80, 0x0, 0x108930)
/usr/local/go/src/pkg/net/tcpsock_posix.go:260 +0x44
crypto/tls.(*listener).Close(0x108f6720, 0x1bcf69, 0x0)
/usr/local/go/src/pkg/crypto/tls/alert.go:0 +0x4c
net/http/httptest.(*historyListener).Close(0x10844e40, 0x30124, 0x96630)
/usr/local/go/src/pkg/net/http/httptest/recorder.go:0 +0x4c
net/http/httptest.(*Server).Close(0x108be210, 0xb6dce100)
/usr/local/go/src/pkg/net/http/httptest/server.go:156 +0x4c
----- stack segment boundary -----
created by testing.RunTests
/usr/local/go/src/pkg/testing/testing.go:377 +0x6cc

goroutine 16 [finalizer wait]:
created by runtime.gc
/usr/local/go/src/pkg/runtime/mgc0.c:971

goroutine 15 [syscall]:
syscall.Syscall6()
/usr/local/go/src/pkg/syscall/asm_linux_arm.s:42 +0x8
syscall.EpollWait(0x6, 0x108c1008, 0xa, 0xa, 0xffffffff, ...)
/usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:327 +0x90
net.(*pollster).WaitFD(0x108c1000, 0x108c0960, 0x0, 0x0, 0x1, ...)
/usr/local/go/src/pkg/net/fd_linux.go:146 +0x154
net.(*pollServer).Run(0x108c0960, 0x10845d80)
/usr/local/go/src/pkg/net/fd_unix.go:231 +0x1f4
created by net.newPollServer
/usr/local/go/src/pkg/net/newpollserver_unix.go:33 +0x328

goroutine 17 [semacquire]:
sync.runtime_Semacquire(0x108c0970, 0x1)
/usr/local/go/src/pkg/runtime/zsema_linux_arm.c:165 +0x30
sync.(*Mutex).Lock(0x108c096c, 0x2ede0)
/usr/local/go/src/pkg/sync/mutex.go:66 +0xf0
net.(*netFD).Close(0x1089d930, 0x0, 0x0)
/usr/local/go/src/pkg/net/fd_unix.go:399 +0x48
net.(*TCPListener).Close(0x10800e80, 0x7e2ac, 0xd6a44)
/usr/local/go/src/pkg/net/tcpsock_posix.go:260 +0x44
crypto/tls.(*listener).Close(0x108f6720, 0x2f18c, 0x3657e8)
/usr/local/go/src/pkg/crypto/tls/alert.go:0 +0x4c
net/http/httptest.(*historyListener).Close(0x10844e40, 0x1000, 0x1bd3d8)
/usr/local/go/src/pkg/net/http/httptest/recorder.go:0 +0x4c
----- stack segment boundary -----
created by net/http/httptest.(*Server).StartTLS
/usr/local/go/src/pkg/net/http/httptest/server.go:131 +0x5a0
FAIL os/exec 122.890s
ok os/signal 0.049s
ok os/user 0.044s
ok path 0.047s
ok path/filepath 0.733s
ok reflect 0.165s
ok regexp 0.570s
ok regexp/syntax 3.007s
ok runtime 19.130s
? runtime/cgo [no test files]
ok runtime/debug 0.038s
ok runtime/pprof 1.419s
ok sort 0.481s
ok strconv 3.054s
ok strings 0.686s
ok sync 0.301s
ok sync/atomic 0.145s
panic: runtime error: invalid memory address or nil pointer dereference
[recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0x7 code=0x1 addr=0x0 pc=0xffff0f74]

goroutine 4 [running]:
testing.func·003(0xb6de9fd4, 0xb6de9100)
/usr/local/go/src/pkg/testing/testing.go:296 +0x158
----- stack segment boundary -----
created by testing.RunTests
/usr/local/go/src/pkg/testing/testing.go:377 +0x6cc

goroutine 1 [chan receive]:
testing.RunTests(0x10c00, 0x1ef2e0, 0x2, 0x2, 0x1, ...)
/usr/local/go/src/pkg/testing/testing.go:378 +0x6ec
testing.Main(0x10c00, 0x1ef2e0, 0x2, 0x2, 0x1f4128, ...)
/usr/local/go/src/pkg/testing/testing.go:313 +0x68
main.main()
syscall/_test/_testmain.go:45 +0x94

goroutine 2 [syscall]:
created by runtime.main
/usr/local/go/src/pkg/runtime/proc.c:225

goroutine 3 [syscall]:
created by addtimer
/usr/local/go/src/pkg/runtime/ztime_linux_arm.c:73

goroutine 5 [syscall]:
syscall.Syscall6()
/usr/local/go/src/pkg/syscall/asm_linux_arm.s:42 +0x8
syscall.EpollWait(0x8, 0x1076e008, 0xa, 0xa, 0xffffffff, ...)
/usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:327 +0x90
net.(*pollster).WaitFD(0x1076e000, 0x1072c8e0, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/pkg/net/fd_linux.go:146 +0x154
net.(*pollServer).Run(0x1072c8e0, 0x0)
/usr/local/go/src/pkg/net/fd_unix.go:231 +0x1f4
created by net.newPollServer
/usr/local/go/src/pkg/net/newpollserver_unix.go:33 +0x328
FAIL syscall 0.053s
? testing [no test files]
? testing/iotest [no test files]
ok testing/quick 0.148s
ok text/scanner 0.051s
ok text/tabwriter 0.050s
ok text/template 0.124s
ok text/template/parse 0.063s
ok time 3.475s
ok unicode 0.044s
ok unicode/utf16 0.038s
ok unicode/utf8 0.061s
? unsafe [no test files]

Search Discussions

  • Dave Cheney at Nov 30, 2012 at 8:01 am
    Uh oh, I wonder if this is issue
    http://code.google.com/p/go/issues/detail?id=599.
    On Fri, Nov 30, 2012 at 6:44 PM, wrote:
    Change 869253ef7009 broke the linux-arm-panda build:
    http://build.golang.org/log/d21f02df978cc262f510eb9a24ed97ea92406a1d

    net: fix data races on deadline vars

    Fixes issue 4434.

    R=mikioh.mikioh, bradfitz, dvyukov, alex.brainman
    CC=golang-dev
    https://codereview.appspot.com/6855110

    http://code.google.com/p/go/source/detail?r=869253ef7009

    $ tail -200 < log
    /usr/local/go/src/pkg/runtime/ztime_linux_arm.c:73

    goroutine 5 [runnable]:
    syscall.Syscall()
    /usr/local/go/src/pkg/syscall/asm_linux_arm.s:36 +0x5c
    syscall.bind(0x7, 0x10998348, 0x10, 0x0, 0x0, ...)
    /usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:1320 +0x4c
    syscall.Bind(0x7, 0x10998100, 0x10998340, 0x0, 0x0, ...)
    /usr/local/go/src/pkg/syscall/syscall_linux.go:422 +0x90
    net.socket(0x253200, 0x3, 0x2, 0x1, 0x0, ...)
    /usr/local/go/src/pkg/net/sock_posix.go:48 +0x1b0
    net.internetSocket(0x253200, 0x3, 0x10901570, 0x10998320, 0x0, ...)
    /usr/local/go/src/pkg/net/ipsock_posix.go:146 +0x30c
    net.ListenTCP(0x253200, 0x3, 0x10998320, 0x10998320, 0xffffff01, ...)
    /usr/local/go/src/pkg/net/tcpsock_posix.go:293 +0x154
    net.Listen(0x253200, 0x3, 0x258834, 0xb, 0x0, ...)
    /usr/local/go/src/pkg/net/dial.go:204 +0x18c
    net/http/httptest.newLocalListener(0x2efc4, 0xb6eaa9f4)
    /usr/local/go/src/pkg/net/http/httptest/server.go:61 +0x208
    net/http/httptest.NewUnstartedServer(0x0, 0x0, 0x10998300, 0x4ab98)
    /usr/local/go/src/pkg/net/http/httptest/server.go:92 +0x20
    net/http/httptest.NewServer(0x0, 0x0, 0x3, 0x2303c)
    /usr/local/go/src/pkg/net/http/httptest/server.go:79 +0x30
    net/rpc.startHttpServer()

    /mnt/ssd/tmp/gobuilder/linux-arm-panda-869253ef7009/go/src/pkg/net/rpc/server_test.go:111
    +0x30
    sync.(*Once).Do(0x3ecb20, 0x4b5e0, 0x2)
    /usr/local/go/src/pkg/sync/once.go:40 +0xac
    net/rpc.startServer()

    /mnt/ssd/tmp/gobuilder/linux-arm-panda-869253ef7009/go/src/pkg/net/rpc/server_test.go:94
    +0x198
    sync.(*Once).Do(0x3ecb40, 0x4b190, 0x43898)
    /usr/local/go/src/pkg/sync/once.go:40 +0xac
    net/rpc.TestRPC(0x1096e1e0, 0xe)

    /mnt/ssd/tmp/gobuilder/linux-arm-panda-869253ef7009/go/src/pkg/net/rpc/server_test.go:117
    +0x30
    testing.tRunner(0x1096e1e0, 0x3dfc90, 0x0)
    /usr/local/go/src/pkg/testing/testing.go:301 +0xa8
    created by testing.RunTests
    /usr/local/go/src/pkg/testing/testing.go:377 +0x6cc

    goroutine 6 [syscall]:
    syscall.Syscall6()
    /usr/local/go/src/pkg/syscall/asm_linux_arm.s:42 +0x8
    syscall.EpollWait(0x6, 0x1099a008, 0xa, 0xa, 0xffffffff, ...)
    /usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:327 +0x90
    net.(*pollster).WaitFD(0x1099a000, 0x10998160, 0x0, 0x0, 0x0, ...)
    /usr/local/go/src/pkg/net/fd_linux.go:146 +0x154
    net.(*pollServer).Run(0x10998160, 0x0)
    /usr/local/go/src/pkg/net/fd_unix.go:231 +0x1f4
    created by net.newPollServer
    /usr/local/go/src/pkg/net/newpollserver_unix.go:33 +0x328
    FAIL net/rpc 0.091s
    ok net/rpc/jsonrpc 0.105s
    ok net/smtp 0.057s
    ok net/textproto 0.055s
    ok net/url 0.048s
    ok old/netchan 0.137s
    ok os 0.105s
    panic: test timed out

    goroutine 18 [running]:
    testing.alarm()
    /usr/local/go/src/pkg/testing/testing.go:477 +0x60
    created by time.goFunc
    /usr/local/go/src/pkg/time/sleep.go:96 +0x54

    goroutine 1 [chan receive]:
    testing.RunTests(0x10c00, 0x354c68, 0xa, 0xa, 0x1, ...)
    /usr/local/go/src/pkg/testing/testing.go:378 +0x6ec
    testing.Main(0x10c00, 0x354c68, 0xa, 0xa, 0x358190, ...)
    /usr/local/go/src/pkg/testing/testing.go:313 +0x68
    main.main()
    os/exec/_test/_testmain.go:61 +0x94

    goroutine 2 [syscall]:
    created by runtime.main
    /usr/local/go/src/pkg/runtime/proc.c:225

    goroutine 3 [timer goroutine (idle)]:
    created by addtimer
    /usr/local/go/src/pkg/runtime/ztime_linux_arm.c:73

    goroutine 14 [semacquire]:
    sync.runtime_Semacquire(0x108c0970, 0x5)
    /usr/local/go/src/pkg/runtime/zsema_linux_arm.c:165 +0x30
    sync.(*Mutex).Lock(0x108c096c, 0x2ee0c)
    /usr/local/go/src/pkg/sync/mutex.go:66 +0xf0
    net.(*netFD).Close(0x1089d930, 0x0, 0x0)
    /usr/local/go/src/pkg/net/fd_unix.go:399 +0x48
    net.(*TCPListener).Close(0x10800e80, 0x0, 0x108930)
    /usr/local/go/src/pkg/net/tcpsock_posix.go:260 +0x44
    crypto/tls.(*listener).Close(0x108f6720, 0x1bcf69, 0x0)
    /usr/local/go/src/pkg/crypto/tls/alert.go:0 +0x4c
    net/http/httptest.(*historyListener).Close(0x10844e40, 0x30124, 0x96630)
    /usr/local/go/src/pkg/net/http/httptest/recorder.go:0 +0x4c
    net/http/httptest.(*Server).Close(0x108be210, 0xb6dce100)
    /usr/local/go/src/pkg/net/http/httptest/server.go:156 +0x4c
    ----- stack segment boundary -----
    created by testing.RunTests
    /usr/local/go/src/pkg/testing/testing.go:377 +0x6cc

    goroutine 16 [finalizer wait]:
    created by runtime.gc
    /usr/local/go/src/pkg/runtime/mgc0.c:971

    goroutine 15 [syscall]:
    syscall.Syscall6()
    /usr/local/go/src/pkg/syscall/asm_linux_arm.s:42 +0x8
    syscall.EpollWait(0x6, 0x108c1008, 0xa, 0xa, 0xffffffff, ...)
    /usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:327 +0x90
    net.(*pollster).WaitFD(0x108c1000, 0x108c0960, 0x0, 0x0, 0x1, ...)
    /usr/local/go/src/pkg/net/fd_linux.go:146 +0x154
    net.(*pollServer).Run(0x108c0960, 0x10845d80)
    /usr/local/go/src/pkg/net/fd_unix.go:231 +0x1f4
    created by net.newPollServer
    /usr/local/go/src/pkg/net/newpollserver_unix.go:33 +0x328

    goroutine 17 [semacquire]:
    sync.runtime_Semacquire(0x108c0970, 0x1)
    /usr/local/go/src/pkg/runtime/zsema_linux_arm.c:165 +0x30
    sync.(*Mutex).Lock(0x108c096c, 0x2ede0)
    /usr/local/go/src/pkg/sync/mutex.go:66 +0xf0
    net.(*netFD).Close(0x1089d930, 0x0, 0x0)
    /usr/local/go/src/pkg/net/fd_unix.go:399 +0x48
    net.(*TCPListener).Close(0x10800e80, 0x7e2ac, 0xd6a44)
    /usr/local/go/src/pkg/net/tcpsock_posix.go:260 +0x44
    crypto/tls.(*listener).Close(0x108f6720, 0x2f18c, 0x3657e8)
    /usr/local/go/src/pkg/crypto/tls/alert.go:0 +0x4c
    net/http/httptest.(*historyListener).Close(0x10844e40, 0x1000, 0x1bd3d8)
    /usr/local/go/src/pkg/net/http/httptest/recorder.go:0 +0x4c
    ----- stack segment boundary -----
    created by net/http/httptest.(*Server).StartTLS
    /usr/local/go/src/pkg/net/http/httptest/server.go:131 +0x5a0
    FAIL os/exec 122.890s
    ok os/signal 0.049s
    ok os/user 0.044s
    ok path 0.047s
    ok path/filepath 0.733s
    ok reflect 0.165s
    ok regexp 0.570s
    ok regexp/syntax 3.007s
    ok runtime 19.130s
    ? runtime/cgo [no test files]
    ok runtime/debug 0.038s
    ok runtime/pprof 1.419s
    ok sort 0.481s
    ok strconv 3.054s
    ok strings 0.686s
    ok sync 0.301s
    ok sync/atomic 0.145s
    panic: runtime error: invalid memory address or nil pointer dereference
    [recovered]
    panic: runtime error: invalid memory address or nil pointer
    dereference
    [signal 0x7 code=0x1 addr=0x0 pc=0xffff0f74]

    goroutine 4 [running]:
    testing.func·003(0xb6de9fd4, 0xb6de9100)
    /usr/local/go/src/pkg/testing/testing.go:296 +0x158
    ----- stack segment boundary -----
    created by testing.RunTests
    /usr/local/go/src/pkg/testing/testing.go:377 +0x6cc

    goroutine 1 [chan receive]:
    testing.RunTests(0x10c00, 0x1ef2e0, 0x2, 0x2, 0x1, ...)
    /usr/local/go/src/pkg/testing/testing.go:378 +0x6ec
    testing.Main(0x10c00, 0x1ef2e0, 0x2, 0x2, 0x1f4128, ...)
    /usr/local/go/src/pkg/testing/testing.go:313 +0x68
    main.main()
    syscall/_test/_testmain.go:45 +0x94

    goroutine 2 [syscall]:
    created by runtime.main
    /usr/local/go/src/pkg/runtime/proc.c:225

    goroutine 3 [syscall]:
    created by addtimer
    /usr/local/go/src/pkg/runtime/ztime_linux_arm.c:73

    goroutine 5 [syscall]:
    syscall.Syscall6()
    /usr/local/go/src/pkg/syscall/asm_linux_arm.s:42 +0x8
    syscall.EpollWait(0x8, 0x1076e008, 0xa, 0xa, 0xffffffff, ...)
    /usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:327 +0x90
    net.(*pollster).WaitFD(0x1076e000, 0x1072c8e0, 0x0, 0x0, 0x0, ...)
    /usr/local/go/src/pkg/net/fd_linux.go:146 +0x154
    net.(*pollServer).Run(0x1072c8e0, 0x0)
    /usr/local/go/src/pkg/net/fd_unix.go:231 +0x1f4
    created by net.newPollServer
    /usr/local/go/src/pkg/net/newpollserver_unix.go:33 +0x328
    FAIL syscall 0.053s
    ? testing [no test files]
    ? testing/iotest [no test files]
    ok testing/quick 0.148s
    ok text/scanner 0.051s
    ok text/tabwriter 0.050s
    ok text/template 0.124s
    ok text/template/parse 0.063s
    ok time 3.475s
    ok unicode 0.044s
    ok unicode/utf16 0.038s
    ok unicode/utf8 0.061s
    ? unsafe [no test files]
  • Dave Cheney at Nov 30, 2012 at 8:32 am
    Hmm, very probably.

    --- FAIL: TestDeadlineFieldAlignment (0.00 seconds)
    fd_unix_test.go:114: offset of fd.rdeadline % 8 is 4 not 0
    fd_unix_test.go:117: offset of fd.wdeadline % 8 is 4 not 0
    FAIL
    exit status 1
    FAIL net 34.051s

    On Fri, Nov 30, 2012 at 7:01 PM, Dave Cheney wrote:
    Uh oh, I wonder if this is issue
    http://code.google.com/p/go/issues/detail?id=599.
    On Fri, Nov 30, 2012 at 6:44 PM, wrote:
    Change 869253ef7009 broke the linux-arm-panda build:
    http://build.golang.org/log/d21f02df978cc262f510eb9a24ed97ea92406a1d

    net: fix data races on deadline vars

    Fixes issue 4434.

    R=mikioh.mikioh, bradfitz, dvyukov, alex.brainman
    CC=golang-dev
    https://codereview.appspot.com/6855110

    http://code.google.com/p/go/source/detail?r=869253ef7009

    $ tail -200 < log
    /usr/local/go/src/pkg/runtime/ztime_linux_arm.c:73

    goroutine 5 [runnable]:
    syscall.Syscall()
    /usr/local/go/src/pkg/syscall/asm_linux_arm.s:36 +0x5c
    syscall.bind(0x7, 0x10998348, 0x10, 0x0, 0x0, ...)
    /usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:1320 +0x4c
    syscall.Bind(0x7, 0x10998100, 0x10998340, 0x0, 0x0, ...)
    /usr/local/go/src/pkg/syscall/syscall_linux.go:422 +0x90
    net.socket(0x253200, 0x3, 0x2, 0x1, 0x0, ...)
    /usr/local/go/src/pkg/net/sock_posix.go:48 +0x1b0
    net.internetSocket(0x253200, 0x3, 0x10901570, 0x10998320, 0x0, ...)
    /usr/local/go/src/pkg/net/ipsock_posix.go:146 +0x30c
    net.ListenTCP(0x253200, 0x3, 0x10998320, 0x10998320, 0xffffff01, ...)
    /usr/local/go/src/pkg/net/tcpsock_posix.go:293 +0x154
    net.Listen(0x253200, 0x3, 0x258834, 0xb, 0x0, ...)
    /usr/local/go/src/pkg/net/dial.go:204 +0x18c
    net/http/httptest.newLocalListener(0x2efc4, 0xb6eaa9f4)
    /usr/local/go/src/pkg/net/http/httptest/server.go:61 +0x208
    net/http/httptest.NewUnstartedServer(0x0, 0x0, 0x10998300, 0x4ab98)
    /usr/local/go/src/pkg/net/http/httptest/server.go:92 +0x20
    net/http/httptest.NewServer(0x0, 0x0, 0x3, 0x2303c)
    /usr/local/go/src/pkg/net/http/httptest/server.go:79 +0x30
    net/rpc.startHttpServer()

    /mnt/ssd/tmp/gobuilder/linux-arm-panda-869253ef7009/go/src/pkg/net/rpc/server_test.go:111
    +0x30
    sync.(*Once).Do(0x3ecb20, 0x4b5e0, 0x2)
    /usr/local/go/src/pkg/sync/once.go:40 +0xac
    net/rpc.startServer()

    /mnt/ssd/tmp/gobuilder/linux-arm-panda-869253ef7009/go/src/pkg/net/rpc/server_test.go:94
    +0x198
    sync.(*Once).Do(0x3ecb40, 0x4b190, 0x43898)
    /usr/local/go/src/pkg/sync/once.go:40 +0xac
    net/rpc.TestRPC(0x1096e1e0, 0xe)

    /mnt/ssd/tmp/gobuilder/linux-arm-panda-869253ef7009/go/src/pkg/net/rpc/server_test.go:117
    +0x30
    testing.tRunner(0x1096e1e0, 0x3dfc90, 0x0)
    /usr/local/go/src/pkg/testing/testing.go:301 +0xa8
    created by testing.RunTests
    /usr/local/go/src/pkg/testing/testing.go:377 +0x6cc

    goroutine 6 [syscall]:
    syscall.Syscall6()
    /usr/local/go/src/pkg/syscall/asm_linux_arm.s:42 +0x8
    syscall.EpollWait(0x6, 0x1099a008, 0xa, 0xa, 0xffffffff, ...)
    /usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:327 +0x90
    net.(*pollster).WaitFD(0x1099a000, 0x10998160, 0x0, 0x0, 0x0, ...)
    /usr/local/go/src/pkg/net/fd_linux.go:146 +0x154
    net.(*pollServer).Run(0x10998160, 0x0)
    /usr/local/go/src/pkg/net/fd_unix.go:231 +0x1f4
    created by net.newPollServer
    /usr/local/go/src/pkg/net/newpollserver_unix.go:33 +0x328
    FAIL net/rpc 0.091s
    ok net/rpc/jsonrpc 0.105s
    ok net/smtp 0.057s
    ok net/textproto 0.055s
    ok net/url 0.048s
    ok old/netchan 0.137s
    ok os 0.105s
    panic: test timed out

    goroutine 18 [running]:
    testing.alarm()
    /usr/local/go/src/pkg/testing/testing.go:477 +0x60
    created by time.goFunc
    /usr/local/go/src/pkg/time/sleep.go:96 +0x54

    goroutine 1 [chan receive]:
    testing.RunTests(0x10c00, 0x354c68, 0xa, 0xa, 0x1, ...)
    /usr/local/go/src/pkg/testing/testing.go:378 +0x6ec
    testing.Main(0x10c00, 0x354c68, 0xa, 0xa, 0x358190, ...)
    /usr/local/go/src/pkg/testing/testing.go:313 +0x68
    main.main()
    os/exec/_test/_testmain.go:61 +0x94

    goroutine 2 [syscall]:
    created by runtime.main
    /usr/local/go/src/pkg/runtime/proc.c:225

    goroutine 3 [timer goroutine (idle)]:
    created by addtimer
    /usr/local/go/src/pkg/runtime/ztime_linux_arm.c:73

    goroutine 14 [semacquire]:
    sync.runtime_Semacquire(0x108c0970, 0x5)
    /usr/local/go/src/pkg/runtime/zsema_linux_arm.c:165 +0x30
    sync.(*Mutex).Lock(0x108c096c, 0x2ee0c)
    /usr/local/go/src/pkg/sync/mutex.go:66 +0xf0
    net.(*netFD).Close(0x1089d930, 0x0, 0x0)
    /usr/local/go/src/pkg/net/fd_unix.go:399 +0x48
    net.(*TCPListener).Close(0x10800e80, 0x0, 0x108930)
    /usr/local/go/src/pkg/net/tcpsock_posix.go:260 +0x44
    crypto/tls.(*listener).Close(0x108f6720, 0x1bcf69, 0x0)
    /usr/local/go/src/pkg/crypto/tls/alert.go:0 +0x4c
    net/http/httptest.(*historyListener).Close(0x10844e40, 0x30124, 0x96630)
    /usr/local/go/src/pkg/net/http/httptest/recorder.go:0 +0x4c
    net/http/httptest.(*Server).Close(0x108be210, 0xb6dce100)
    /usr/local/go/src/pkg/net/http/httptest/server.go:156 +0x4c
    ----- stack segment boundary -----
    created by testing.RunTests
    /usr/local/go/src/pkg/testing/testing.go:377 +0x6cc

    goroutine 16 [finalizer wait]:
    created by runtime.gc
    /usr/local/go/src/pkg/runtime/mgc0.c:971

    goroutine 15 [syscall]:
    syscall.Syscall6()
    /usr/local/go/src/pkg/syscall/asm_linux_arm.s:42 +0x8
    syscall.EpollWait(0x6, 0x108c1008, 0xa, 0xa, 0xffffffff, ...)
    /usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:327 +0x90
    net.(*pollster).WaitFD(0x108c1000, 0x108c0960, 0x0, 0x0, 0x1, ...)
    /usr/local/go/src/pkg/net/fd_linux.go:146 +0x154
    net.(*pollServer).Run(0x108c0960, 0x10845d80)
    /usr/local/go/src/pkg/net/fd_unix.go:231 +0x1f4
    created by net.newPollServer
    /usr/local/go/src/pkg/net/newpollserver_unix.go:33 +0x328

    goroutine 17 [semacquire]:
    sync.runtime_Semacquire(0x108c0970, 0x1)
    /usr/local/go/src/pkg/runtime/zsema_linux_arm.c:165 +0x30
    sync.(*Mutex).Lock(0x108c096c, 0x2ede0)
    /usr/local/go/src/pkg/sync/mutex.go:66 +0xf0
    net.(*netFD).Close(0x1089d930, 0x0, 0x0)
    /usr/local/go/src/pkg/net/fd_unix.go:399 +0x48
    net.(*TCPListener).Close(0x10800e80, 0x7e2ac, 0xd6a44)
    /usr/local/go/src/pkg/net/tcpsock_posix.go:260 +0x44
    crypto/tls.(*listener).Close(0x108f6720, 0x2f18c, 0x3657e8)
    /usr/local/go/src/pkg/crypto/tls/alert.go:0 +0x4c
    net/http/httptest.(*historyListener).Close(0x10844e40, 0x1000, 0x1bd3d8)
    /usr/local/go/src/pkg/net/http/httptest/recorder.go:0 +0x4c
    ----- stack segment boundary -----
    created by net/http/httptest.(*Server).StartTLS
    /usr/local/go/src/pkg/net/http/httptest/server.go:131 +0x5a0
    FAIL os/exec 122.890s
    ok os/signal 0.049s
    ok os/user 0.044s
    ok path 0.047s
    ok path/filepath 0.733s
    ok reflect 0.165s
    ok regexp 0.570s
    ok regexp/syntax 3.007s
    ok runtime 19.130s
    ? runtime/cgo [no test files]
    ok runtime/debug 0.038s
    ok runtime/pprof 1.419s
    ok sort 0.481s
    ok strconv 3.054s
    ok strings 0.686s
    ok sync 0.301s
    ok sync/atomic 0.145s
    panic: runtime error: invalid memory address or nil pointer dereference
    [recovered]
    panic: runtime error: invalid memory address or nil pointer
    dereference
    [signal 0x7 code=0x1 addr=0x0 pc=0xffff0f74]

    goroutine 4 [running]:
    testing.func·003(0xb6de9fd4, 0xb6de9100)
    /usr/local/go/src/pkg/testing/testing.go:296 +0x158
    ----- stack segment boundary -----
    created by testing.RunTests
    /usr/local/go/src/pkg/testing/testing.go:377 +0x6cc

    goroutine 1 [chan receive]:
    testing.RunTests(0x10c00, 0x1ef2e0, 0x2, 0x2, 0x1, ...)
    /usr/local/go/src/pkg/testing/testing.go:378 +0x6ec
    testing.Main(0x10c00, 0x1ef2e0, 0x2, 0x2, 0x1f4128, ...)
    /usr/local/go/src/pkg/testing/testing.go:313 +0x68
    main.main()
    syscall/_test/_testmain.go:45 +0x94

    goroutine 2 [syscall]:
    created by runtime.main
    /usr/local/go/src/pkg/runtime/proc.c:225

    goroutine 3 [syscall]:
    created by addtimer
    /usr/local/go/src/pkg/runtime/ztime_linux_arm.c:73

    goroutine 5 [syscall]:
    syscall.Syscall6()
    /usr/local/go/src/pkg/syscall/asm_linux_arm.s:42 +0x8
    syscall.EpollWait(0x8, 0x1076e008, 0xa, 0xa, 0xffffffff, ...)
    /usr/local/go/src/pkg/syscall/zsyscall_linux_arm.go:327 +0x90
    net.(*pollster).WaitFD(0x1076e000, 0x1072c8e0, 0x0, 0x0, 0x0, ...)
    /usr/local/go/src/pkg/net/fd_linux.go:146 +0x154
    net.(*pollServer).Run(0x1072c8e0, 0x0)
    /usr/local/go/src/pkg/net/fd_unix.go:231 +0x1f4
    created by net.newPollServer
    /usr/local/go/src/pkg/net/newpollserver_unix.go:33 +0x328
    FAIL syscall 0.053s
    ? testing [no test files]
    ? testing/iotest [no test files]
    ok testing/quick 0.148s
    ok text/scanner 0.051s
    ok text/tabwriter 0.050s
    ok text/template 0.124s
    ok text/template/parse 0.063s
    ok time 3.475s
    ok unicode 0.044s
    ok unicode/utf16 0.038s
    ok unicode/utf8 0.061s
    ? unsafe [no test files]

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedNov 30, '12 at 7:44a
activeNov 30, '12 at 8:32a
posts3
users2
websitegolang.org

2 users in discussion

Dave Cheney: 2 posts Builder: 1 post

People

Translate

site design / logo © 2022 Grokbase