runtime: panic not generating a correct backtrace stack while crashing in cgo on ARM64 platform #69438
Labels
arch-arm64
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.22.6 linux/amd64 (cross compile to arm64 with CGO_ENABLED=0)
Output of
go env
in your module/workspace:What did you do?
I'm writing a Golang+CGO program, and testing a bad code in CGO to check if it could catch the right backtrace.
Here is my code:
test.c
:test.h
:main.go
:What did you see happen?
I cannot get the C stack by gdb on arm64.
Before 1.20 (included), C stack could be typed correctly. After version 1.21, this problem appeared. Related issue: #63277
de5b418 fixes the problem on x64. Unfortunately, arm64 remains the problem.
@zzkcode gave more context in #63277 (comment)
What did you expect to see?
Generating the correct backtrace on arm64 (details will be in the Details section).
The text was updated successfully, but these errors were encountered: