Created
July 30, 2022 00:45
-
-
Save cbweixin/d2aa243e3305cb45ae92bcd4df76308b to your computer and use it in GitHub Desktop.
single flight hangs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== RUN TestPanic | |
panic in oneflight | |
wait : goroutine 22 [running]: | |
runtime/debug.Stack() | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/debug/stack.go:24 +0x65 | |
_/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight.TestPanic(0xc00013fba0) | |
/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight/oneflight_test.go:217 +0x1af | |
testing.tRunner(0xc00014c000, 0x111df98) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/testing/testing.go:1259 +0x102 | |
created by testing.(*T).Run | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/testing/testing.go:1306 +0x35a | |
pancic stack :goroutine 23 [running]: | |
runtime/debug.Stack() | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/debug/stack.go:24 +0x65 | |
_/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight.TestPanic.func1.1.1() | |
/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight/oneflight_test.go:190 +0x5a | |
panic({0x10f5980, 0x113c6d0}) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/panic.go:1038 +0x215 | |
_/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight.TestPanic.func1.1() | |
/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight/oneflight_test.go:194 +0x6a | |
_/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight.(*Group).doCall(0xc00005e680, 0xc00008e0c0, {0x1114900, 0x8}, 0xc00004ffa8) | |
/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight/oneflight.go:91 +0x3b | |
_/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight.(*Group).Do(0xc00005e680, {0x1114900, 0x8}, 0xc000076360) | |
/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight/oneflight.go:61 +0x1af | |
_/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight.TestPanic.func1() | |
/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight/oneflight_test.go:185 +0x45 | |
created by _/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight.TestPanic | |
/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight/oneflight_test.go:184 +0xd2 | |
SIGABRT: abort | |
PC=0x7ff8090ba3ea m=0 sigcode=0 | |
goroutine 0 [idle]: | |
runtime.pthread_cond_wait(0x11fac80, 0x11fac40) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/sys_darwin.go:444 +0x34 | |
runtime.semasleep(0xffffffffffffffff) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/os_darwin.go:66 +0xad | |
runtime.notesleep(0x11faa30) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/lock_sema.go:182 +0x85 | |
runtime.mPark() | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/proc.go:1441 +0x2a | |
runtime.stopm() | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/proc.go:2408 +0x78 | |
runtime.findrunnable() | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/proc.go:2984 +0x865 | |
runtime.schedule() | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/proc.go:3367 +0x239 | |
runtime.park_m(0xc00014c680) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/proc.go:3516 +0x14d | |
runtime.mcall() | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/asm_amd64.s:307 +0x43 | |
goroutine 1 [chan receive]: | |
testing.(*T).Run(0xc00013e000, {0x1114b54, 0x1814c6ff2cf62}, 0x111df98) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/testing/testing.go:1307 +0x375 | |
testing.runTests.func1(0xc000100330) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/testing/testing.go:1598 +0x6e | |
testing.tRunner(0xc00013e000, 0xc000113d18) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/testing/testing.go:1259 +0x102 | |
testing.runTests(0xc000022080, {0x11f6ba0, 0x6, 0x6}, {0x10747ed, 0x1115cce, 0x11fa4c0}) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/testing/testing.go:1596 +0x43f | |
testing.(*M).Run(0xc000022080) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/testing/testing.go:1504 +0x51d | |
main.main() | |
_testmain.go:53 +0x14b | |
goroutine 22 [semacquire]: | |
sync.runtime_Semacquire(0xc0001031e0) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/sema.go:56 +0x25 | |
sync.(*WaitGroup).Wait(0x113d200) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/sync/waitgroup.go:130 +0x71 | |
_/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight.TestPanic(0xc00013fba0) | |
/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight/oneflight_test.go:218 +0x205 | |
testing.tRunner(0xc00014c000, 0x111df98) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/testing/testing.go:1259 +0x102 | |
created by testing.(*T).Run | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/testing/testing.go:1306 +0x35a | |
rax 0x104 | |
rbx 0x9a90600 | |
rcx 0x7ff7bfefef88 | |
rdx 0x500 | |
rdi 0x11fac80 | |
rsi 0x50100000600 | |
rbp 0x7ff7bfeff030 | |
rsp 0x7ff7bfefef88 | |
r8 0x0 | |
r9 0xa0 | |
r10 0x0 | |
r11 0x246 | |
r12 0x16 | |
r13 0x0 | |
r14 0x50100000600 | |
r15 0x500 | |
rip 0x7ff8090ba3ea | |
rflags 0x247 | |
cs 0x7 | |
fs 0x0 | |
gs 0x0 | |
Process finished with the exit code 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment