/ go Public
runtime: frame pointer check fails on arm64 for C-to-Go calls #59401
Issues related to the Go compiler and/or runtime.
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
debugCheckBPenabled on an arm64 machine.
What did you expect to see?
The test to pass.
What did you see instead?
The test fails:
With additional stack debug logging turned on, I see that the check fails when visiting the
Debug logging output
It appears that the
runtime.cgocallassembly routine attempts to put a frame pointer on the Go stack when switching to it. But from this test failure, it seems like we're getting the wrong frame pointer? Possibly an address on the C stack (when the thread is created by C rather than by the runtime)?
The text was updated successfully, but these errors were encountered: