Skip to content

Instantly share code, notes, and snippets.

@josharian
Created February 5, 2017 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josharian/92807fd82ee2a1408a167f6df4b833d9 to your computer and use it in GitHub Desktop.
Save josharian/92807fd82ee2a1408a167f6df4b833d9 to your computer and use it in GitHub Desktop.
$ ./net.test -test.short -test.v
=== RUN TestSortByRFC6724
--- PASS: TestSortByRFC6724 (0.00s)
=== RUN TestRFC6724PolicyTableClassify
--- PASS: TestRFC6724PolicyTableClassify (0.00s)
=== RUN TestRFC6724ClassifyScope
--- PASS: TestRFC6724ClassifyScope (0.00s)
=== RUN TestRFC6724CommonPrefixLength
--- PASS: TestRFC6724CommonPrefixLength (0.00s)
=== RUN TestCgoLookupIP
--- PASS: TestCgoLookupIP (0.00s)
=== RUN TestCgoLookupIPWithCancel
--- PASS: TestCgoLookupIPWithCancel (0.00s)
=== RUN TestCgoLookupPort
--- PASS: TestCgoLookupPort (0.00s)
=== RUN TestCgoLookupPortWithCancel
--- PASS: TestCgoLookupPortWithCancel (0.00s)
=== RUN TestCgoLookupPTR
--- PASS: TestCgoLookupPTR (0.00s)
=== RUN TestCgoLookupPTRWithCancel
--- PASS: TestCgoLookupPTRWithCancel (0.00s)
=== RUN TestConfHostLookupOrder
--- PASS: TestConfHostLookupOrder (0.00s)
=== RUN TestSystemConf
--- PASS: TestSystemConf (0.00s)
=== RUN TestConnAndListener
^\SIGQUIT: quit
PC=0x105a783 m=0 sigcode=0
goroutine 0 [idle]:
runtime.kevent(0x6, 0x0, 0x0, 0x7fff5fbfef68, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/josh/go/tip/src/runtime/sys_darwin_amd64.s:518 +0x23
runtime.netpoll(0xc420026601, 0xc420026601)
/Users/josh/go/tip/src/runtime/netpoll_kqueue.go:75 +0xb4
runtime.findrunnable(0xc420020600, 0x0)
/Users/josh/go/tip/src/runtime/proc.go:2084 +0x37d
runtime.schedule()
/Users/josh/go/tip/src/runtime/proc.go:2222 +0x14c
runtime.park_m(0xc42007c9c0)
/Users/josh/go/tip/src/runtime/proc.go:2285 +0xab
runtime.mcall(0x7fff5fbff8d0)
/Users/josh/go/tip/src/runtime/asm_amd64.s:269 +0x5b
goroutine 1 [chan receive]:
testing.(*T).Run(0xc42007e8f0, 0x128d6aa, 0x13, 0x129a618, 0x224301)
/Users/josh/go/tip/src/testing/testing.go:700 +0x310
testing.runTests.func1(0xc42007e8f0)
/Users/josh/go/tip/src/testing/testing.go:884 +0x67
testing.tRunner(0xc42007e8f0, 0xc420051e00)
/Users/josh/go/tip/src/testing/testing.go:657 +0x98
testing.runTests(0xc420089040, 0x13b30c0, 0xd1, 0xd1, 0x1010bc8)
/Users/josh/go/tip/src/testing/testing.go:890 +0x2c1
testing.(*M).Run(0xc420051f20, 0x12149b1)
/Users/josh/go/tip/src/testing/testing.go:824 +0xfc
net.TestMain(0xc420051f20)
/Users/josh/go/tip/src/net/main_test.go:50 +0x39
main.main()
net/_test/_testmain.go:508 +0xdb
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/Users/josh/go/tip/src/runtime/asm_amd64.s:2197 +0x1
goroutine 42 [IO wait]:
net.runtime_pollWait(0x2940e40, 0x77, 0x1202101)
/Users/josh/go/tip/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc42010c1b8, 0x77, 0x0, 0x0)
/Users/josh/go/tip/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitWrite(0xc42010c1b8, 0xc420076d68, 0x1390dc0)
/Users/josh/go/tip/src/net/fd_poll_runtime.go:84 +0x34
net.(*netFD).connect(0xc42010c150, 0x1390dc0, 0xc420076d68, 0x0, 0x0, 0x138f000, 0xc4201025a0, 0x0, 0x0)
/Users/josh/go/tip/src/net/fd_unix.go:156 +0x2a8
net.(*netFD).dial(0xc42010c150, 0x1390dc0, 0xc420076d68, 0x1391640, 0x0, 0x1391640, 0xc4200eb7d0, 0xc42003c768, 0x1155a1e)
/Users/josh/go/tip/src/net/sock_posix.go:140 +0xe9
net.socket(0x1390dc0, 0xc420076d68, 0x1288611, 0x3, 0x2, 0x1, 0x0, 0x0, 0x1391640, 0x0, ...)
/Users/josh/go/tip/src/net/sock_posix.go:92 +0x1a1
net.internetSocket(0x1390dc0, 0xc420076d68, 0x1288611, 0x3, 0x1391640, 0x0, 0x1391640, 0xc4200eb7d0, 0x1, 0x0, ...)
/Users/josh/go/tip/src/net/ipsock_posix.go:154 +0x129
net.doDialTCP(0x1390dc0, 0xc420076d68, 0x1288611, 0x3, 0x0, 0xc4200eb7d0, 0x0, 0x0, 0x0)
/Users/josh/go/tip/src/net/tcpsock_posix.go:62 +0xb9
net.dialTCP(0x1390dc0, 0xc420076d68, 0x1288611, 0x3, 0x0, 0xc4200eb7d0, 0x6e49787013d06fd, 0x5896d117, 0xc42003c9a0)
/Users/josh/go/tip/src/net/tcpsock_posix.go:58 +0xe4
net.dialSingle(0x1390dc0, 0xc420076d68, 0xc420112200, 0x138fd80, 0xc4200eb7d0, 0x0, 0x0, 0x0, 0x0)
/Users/josh/go/tip/src/net/dial.go:521 +0x447
net.dialSerial(0x1390dc0, 0xc420076d68, 0xc420112200, 0xc4200f09c0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)
/Users/josh/go/tip/src/net/dial.go:489 +0x268
net.(*Dialer).DialContext(0xc42011dcf8, 0x1390dc0, 0xc420076d68, 0x1288611, 0x3, 0xc4200f09a0, 0xf, 0x0, 0x0, 0x0, ...)
/Users/josh/go/tip/src/net/dial.go:371 +0x737
net.(*Dialer).Dial(0xc42003ccf8, 0x1288611, 0x3, 0xc4200f09a0, 0xf, 0xc42003cd50, 0x1152a7a, 0xc4200f0990, 0x9)
/Users/josh/go/tip/src/net/dial.go:294 +0x75
net.Dial(0x1288611, 0x3, 0xc4200f09a0, 0xf, 0x1, 0x1, 0x1, 0xc4200f08a8)
/Users/josh/go/tip/src/net/dial.go:273 +0x99
net.TestConnAndListener(0xc4200f85b0)
/Users/josh/go/tip/src/net/conn_test.go:41 +0x473
testing.tRunner(0xc4200f85b0, 0x129a618)
/Users/josh/go/tip/src/testing/testing.go:657 +0x98
created by testing.(*T).Run
/Users/josh/go/tip/src/testing/testing.go:699 +0x2e6
goroutine 43 [IO wait]:
net.runtime_pollWait(0x2940f00, 0x72, 0x0)
/Users/josh/go/tip/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc42010c148, 0x72, 0x0, 0xc42000c1e0)
/Users/josh/go/tip/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc42010c148, 0xffffffffffffffff, 0x0)
/Users/josh/go/tip/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).accept(0xc42010c0e0, 0x0, 0x138ee40, 0xc42000c1e0)
/Users/josh/go/tip/src/net/fd_unix.go:430 +0x1e5
net.(*TCPListener).accept(0xc4200ee018, 0x13b60e0, 0x0, 0x0)
/Users/josh/go/tip/src/net/tcpsock_posix.go:136 +0x2e
net.(*TCPListener).Accept(0xc4200ee018, 0xbe1dd22846e4c85d, 0x25478a24e, 0x13b60e0, 0x0)
/Users/josh/go/tip/src/net/tcpsock.go:228 +0x49
net.transponder(0x1390740, 0xc4200ee018, 0xc4200f6720)
/Users/josh/go/tip/src/net/mockserver_test.go:216 +0xf4
net.TestConnAndListener.func1(0xc4200eb7a0, 0x1390740, 0xc4200ee018)
/Users/josh/go/tip/src/net/conn_test.go:33 +0x3e
net.(*localServer).buildup.func1(0xc4200f0980, 0xc4200eb7a0)
/Users/josh/go/tip/src/net/mockserver_test.go:95 +0x42
created by net.(*localServer).buildup
/Users/josh/go/tip/src/net/mockserver_test.go:97 +0x49
rax 0x4
rbx 0x0
rcx 0x7fff5fbfeef8
rdx 0x0
rdi 0x6
rsi 0x0
rbp 0x7fff5fbff768
rsp 0x7fff5fbfeef8
r8 0x40
r9 0x0
r10 0x7fff5fbfef68
r11 0x246
r12 0x0
r13 0xa
r14 0x0
r15 0xfc
rip 0x105a783
rflags 0x247
cs 0x7
fs 0x0
gs 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment