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

bug: fatal error: semacquire not on the G stack #96

Closed
xhd2015 opened this issue May 8, 2024 · 0 comments
Closed

bug: fatal error: semacquire not on the G stack #96

xhd2015 opened this issue May 8, 2024 · 0 comments
Labels
bug Something isn't working tls

Comments

@xhd2015
Copy link
Owner

xhd2015 commented May 8, 2024

When go schedules timer, locking causes error

fatal error: semacquire not on the G stack

runtime stack:
runtime.throw({0x5757dca?, 0x1?})
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/panic.go:1047 +0x5d fp=0x7f9cf6ffca38 sp=0x7f9cf6ffca08 pc=0x43c4dd
runtime.semacquire1(0x0?, 0xc0?, 0x46e0d9?, 0x848ea91c843ed0?)
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/sema.go:107 +0x2f6 fp=0x7f9cf6ffcaa0 sp=0x7f9cf6ffca38 pc=0x4502f6
sync.runtime_SemacquireMutex(0x7f9cf6ffcb08?, 0xf1?, 0x100000004?)
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/sema.go:77 +0x25 fp=0x7f9cf6ffcad0 sp=0x7f9cf6ffcaa0 pc=0x46db45
sync.(*Mutex).lockSlow(0xbbb12a8)
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/sync/mutex.go:171 +0x165 fp=0x7f9cf6ffcb20 sp=0x7f9cf6ffcad0 pc=0x47cdc5
sync.(*Mutex).Lock(0xc00c7a4b60?)
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/sync/mutex.go:90 +0x3b fp=0x7f9cf6ffcb38 sp=0x7f9cf6ffcb20 pc=0x47cbfb
github.com/xhd2015/xgo/runtime/tls.init.0.func2(0x7f9cf6ffcbe0?)
	/root/.credit_testing/rewrite/go-rewrite/f/vendor/github.com/xhd2015/xgo/runtime/tls/hook.go:36 +0x36 fp=0x7f9cf6ffcbb8 sp=0x7f9cf6ffcb38 pc=0x35a0856
runtime.newproc(0x29f?)
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/proc.go:4128 +0xb0 fp=0x7f9cf6ffcc18 sp=0x7f9cf6ffcbb8 pc=0x4474d0
time.goFunc({0x4d3b720?, 0xc00abfde00?}, 0x1?)
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/time/sleep.go:182 +0x32 fp=0x7f9cf6ffcc40 sp=0x7f9cf6ffcc18 pc=0x493692
runtime.runOneTimer(0xc00006af00, 0xc00b1fba48, 0x0?)
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/time.go:887 +0x159 fp=0x7f9cf6ffcc98 sp=0x7f9cf6ffcc40 pc=0x45db19
runtime.runtimer(0xc00006af00, 0x848ea91c8436bf)
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/time.go:794 +0x1fa fp=0x7f9cf6ffccc8 sp=0x7f9cf6ffcc98 pc=0x45d95a
runtime.checkTimers(0xc00006af00, 0x0?)
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/proc.go:3321 +0x12c fp=0x7f9cf6ffcd10 sp=0x7f9cf6ffccc8 pc=0x44572c
runtime.findRunnable()
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/proc.go:2590 +0x78 fp=0x7f9cf6ffce00 sp=0x7f9cf6ffcd10 pc=0x443cb8
runtime.schedule()
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/proc.go:3222 +0xbe fp=0x7f9cf6ffce38 sp=0x7f9cf6ffce00 pc=0x44545e
runtime.park_m(0xc0022f9380?)
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/proc.go:3371 +0x14d fp=0x7f9cf6ffce68 sp=0x7f9cf6ffce38 pc=0x44598d
runtime.mcall()
	/root/.xgo/go-instrument/go1.19.3_ro_.c_re_go_fa_sr_us_lo_37b39cfa/go1.19.3/src/runtime/asm_amd64.s:448 +0x43 fp=0x7f9cf6ffce78 sp=0x7f9cf6ffce68 pc=0x46fa83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tls
Projects
None yet
Development

No branches or pull requests

1 participant