Skip to content

Instantly share code, notes, and snippets.

@vext01
Created May 13, 2020 19:19
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 vext01/49ac97694f1d47ef5bf734a687cdebe9 to your computer and use it in GitHub Desktop.
Save vext01/49ac97694f1d47ef5bf734a687cdebe9 to your computer and use it in GitHub Desktop.
notify test failure.
arrakis:notify> go test -count=1
--- FAIL: TestWatcherKqueue (0.14s)
testing_test.go:215: testing_test.go:371: unlinkat /home/edd/source/notify/testdata/621182279/src/github.com/ppknap/link/include/coost/link: bad file descriptor
testing_test.go:219: testing_test.go:300: w.Watcher.Close()=Not all watches were removed: len(t.pthLkp) == 3
FAIL
exit status 1
FAIL github.com/syncthing/notify 17.977s
arrakis:notify> go test -count=1
runtime: kevent on fd 40 failed with 9
fatal error: runtime: netpoll failed
runtime stack:
runtime.throw(0x5beeaf, 0x17)
/usr/local/go/src/runtime/panic.go:774 +0x72
runtime.netpoll(0x70a000, 0x2e8c0f018)
/usr/local/go/src/runtime/netpoll_kqueue.go:77 +0x253
runtime.startTheWorldWithSema(0xffffffffffffff00, 0xc000041fb8)
/usr/local/go/src/runtime/proc.go:1083 +0x236
runtime.gcStart.func2()
/usr/local/go/src/runtime/mgc.go:1347 +0x35
runtime.systemstack(0x0)
/usr/local/go/src/runtime/asm_amd64.s:370 +0x66
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1146
goroutine 205 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_amd64.s:330 fp=0xc0000f9378 sp=0xc0000f9370 pc=0x45a100
runtime.gcStart(0x0, 0x0, 0xc000000000)
/usr/local/go/src/runtime/mgc.go:1346 +0x30f fp=0xc0000f93e8 sp=0xc0000f9378 pc=0x419eaf
runtime.mallocgc(0xa0, 0x0, 0x0, 0xc0000f9538)
/usr/local/go/src/runtime/malloc.go:1115 +0x416 fp=0xc0000f9488 sp=0xc0000f93e8 pc=0x40bd06
runtime.growslice(0x577060, 0xc0002f6540, 0x15, 0x20, 0x98, 0xc0004b0067, 0xc0000f95d0, 0x48c964)
/usr/local/go/src/runtime/slice.go:175 +0x14e fp=0xc0000f94f0 sp=0xc0000f9488 pc=0x443f3e
fmt.(*buffer).writeString(...)
/usr/local/go/src/fmt/print.go:82
fmt.(*fmt).padString(0xc0000e8110, 0xc0004b0000, 0x83)
/usr/local/go/src/fmt/format.go:110 +0xf3 fp=0xc0000f9578 sp=0xc0000f94f0 pc=0x4c78f3
fmt.(*fmt).fmtS(0xc0000e8110, 0xc0004b0000, 0x83)
arrakis:notify> go test -count=1
--- FAIL: TestWatcherKqueue (0.14s)
testing_test.go:215: testing_test.go:371: unlinkat /home/edd/source/notify/testdata/621182279/src/github.com/ppknap/link/include/coost/link: bad file descriptor
testing_test.go:219: testing_test.go:300: w.Watcher.Close()=Not all watches were removed: len(t.pthLkp) == 3
FAIL
exit status 1
FAIL github.com/syncthing/notify 17.977s
arrakis:notify> go test -count=1
runtime: kevent on fd 40 failed with 9
fatal error: runtime: netpoll failed
runtime stack:
runtime.throw(0x5beeaf, 0x17)
/usr/local/go/src/runtime/panic.go:774 +0x72
runtime.netpoll(0x70a000, 0x2e8c0f018)
/usr/local/go/src/runtime/netpoll_kqueue.go:77 +0x253
runtime.startTheWorldWithSema(0xffffffffffffff00, 0xc000041fb8)
/usr/local/go/src/runtime/proc.go:1083 +0x236
runtime.gcStart.func2()
/usr/local/go/src/runtime/mgc.go:1347 +0x35
runtime.systemstack(0x0)
/usr/local/go/src/runtime/asm_amd64.s:370 +0x66
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1146
goroutine 205 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_amd64.s:330 fp=0xc0000f9378 sp=0xc0000f9370 pc=0x45a100
runtime.gcStart(0x0, 0x0, 0xc000000000)
/usr/local/go/src/runtime/mgc.go:1346 +0x30f fp=0xc0000f93e8 sp=0xc0000f9378 pc=0x419eaf
runtime.mallocgc(0xa0, 0x0, 0x0, 0xc0000f9538)
/usr/local/go/src/runtime/malloc.go:1115 +0x416 fp=0xc0000f9488 sp=0xc0000f93e8 pc=0x40bd06
runtime.growslice(0x577060, 0xc0002f6540, 0x15, 0x20, 0x98, 0xc0004b0067, 0xc0000f95d0, 0x48c964)
/usr/local/go/src/runtime/slice.go:175 +0x14e fp=0xc0000f94f0 sp=0xc0000f9488 pc=0x443f3e
fmt.(*buffer).writeString(...)
/usr/local/go/src/fmt/print.go:82
fmt.(*fmt).padString(0xc0000e8110, 0xc0004b0000, 0x83)
/usr/local/go/src/fmt/format.go:110 +0xf3 fp=0xc0000f9578 sp=0xc0000f94f0 pc=0x4c78f3
fmt.(*fmt).fmtS(0xc0000e8110, 0xc0004b0000, 0x83)
goroutine 6 [syscall]:
syscall.Syscall6(0x48, 0x3, 0x0, 0x0, 0xc000032740, 0x1, 0x0, 0x705e00, 0x241aa4008, 0x0)
/usr/local/go/src/syscall/asm_unix_amd64.s:42 +0x5
syscall.kevent(0x3, 0x0, 0x0, 0xc000032740, 0x1, 0x0, 0x58ca80, 0xc000048190, 0xc0000326f0)
/usr/local/go/src/syscall/zsyscall_openbsd_amd64.go:202 +0x9a
syscall.Kevent(0x3, 0x0, 0x0, 0x0, 0xc000032740, 0x1, 0x1, 0x0, 0x8, 0xc000032750, ...)
/usr/local/go/src/syscall/syscall_bsd.go:447 +0x71
github.com/syncthing/notify.(*kq).Wait(0xc000010360, 0x0, 0x100000000000000, 0x0, 0x8)
/home/edd/source/notify/watcher_kqueue.go:133 +0x8d
github.com/syncthing/notify.(*trg).monitor(0xc000010300)
/home/edd/source/notify/watcher_trigger.go:401 +0x38
created by github.com/syncthing/notify.newWatcher
/home/edd/source/notify/watcher_trigger.go:112 +0x224
goroutine 7 [chan receive]:
github.com/syncthing/notify.(*nonrecursiveTree).dispatch(0xc0000542a0, 0xc0000541e0)
/home/edd/source/notify/tree_nonrecursive.go:36 +0xb6
created by github.com/syncthing/notify.newNonrecursiveTree
/home/edd/source/notify/tree_nonrecursive.go:29 +0xdc
goroutine 8 [chan receive]:
github.com/syncthing/notify.(*nonrecursiveTree).internal(0xc0000542a0, 0xc000054240)
/home/edd/source/notify/tree_nonrecursive.go:81 +0x58
created by github.com/syncthing/notify.newNonrecursiveTree
/home/edd/source/notify/tree_nonrecursive.go:30 +0x108
goroutine 19 [chan receive]:
github.com/syncthing/notify.(*nonrecursiveTree).internal(0xc000096120, 0xc0000960c0)
/home/edd/source/notify/tree_nonrecursive.go:81 +0x58
created by github.com/syncthing/notify.newNonrecursiveTree
/home/edd/source/notify/tree_nonrecursive.go:30 +0x108
goroutine 30 [chan receive]:
github.com/syncthing/notify.(*nonrecursiveTree).internal(0xc0002635c0, 0xc000263560)
/home/edd/source/notify/tree_nonrecursive.go:81 +0x58
created by github.com/syncthing/notify.newNonrecursiveTree
/home/edd/source/notify/tree_nonrecursive.go:30 +0x108
goroutine 64 [chan receive]:
github.com/syncthing/notify.NewNonrecursiveTreeTestC.func1(0xc0000ad2c0, 0xc0000ad320, 0xc0003b4000, 0xc0000ad380)
/home/edd/source/notify/testing_test.go:736 +0x41
created by github.com/syncthing/notify.NewNonrecursiveTreeTestC
/home/edd/source/notify/testing_test.go:735 +0xc5
goroutine 98 [chan receive]:
github.com/syncthing/notify.(*nonrecursiveTree).internal(0xc0003be9c0, 0xc0000ad320)
/home/edd/source/notify/tree_nonrecursive.go:81 +0x58
created by github.com/syncthing/notify.newNonrecursiveTree
/home/edd/source/notify/tree_nonrecursive.go:30 +0x108
goroutine 206 [syscall]:
syscall.Syscall6(0x48, 0x6, 0x0, 0x0, 0xc0000d3740, 0x1, 0x0, 0xc0000d3670, 0x4131a3, 0xc000400000)
/usr/local/go/src/syscall/asm_unix_amd64.s:42 +0x5
syscall.kevent(0x6, 0x0, 0x0, 0xc0000d3740, 0x1, 0x0, 0x100000001, 0x1, 0xc000144640)
/usr/local/go/src/syscall/zsyscall_openbsd_amd64.go:202 +0x9a
syscall.Kevent(0x6, 0x0, 0x0, 0x0, 0xc0000d3740, 0x1, 0x1, 0x0, 0x5368e0, 0xc000176701, ...)
/usr/local/go/src/syscall/syscall_bsd.go:447 +0x71
github.com/syncthing/notify.(*kq).Wait(0xc0000118c0, 0xc000176750, 0x1, 0x1, 0x1)
/home/edd/source/notify/watcher_kqueue.go:133 +0x8d
github.com/syncthing/notify.(*trg).monitor(0xc000011860)
/home/edd/source/notify/watcher_trigger.go:401 +0x38
created by github.com/syncthing/notify.newWatcher
/home/edd/source/notify/watcher_trigger.go:112 +0x224
exit status 2
FAIL github.com/syncthing/notify 15.253s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment