cmd/compile: segfault in _tsan_enter_func
from systemstack when called in race mode from a generic function
#60439
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
This came when trying to write some runtime test code that called
systemstack
from a generic function. It's possible this is just not allowed for some reason, but it was surprising to me.Here's a patch for reproducing the issue.
I can produce the failure by running this command, with the above patch applied.
Here's the failure:
When I poke at the faulting thread in
gdb
, it segfaults when calling_tsan_enter_func
at entry to the function passed tosystemstack
.The text was updated successfully, but these errors were encountered: