-
Notifications
You must be signed in to change notification settings - Fork 26
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
Failure to analyze when the symbol table is disabled on darwin/arm64/go (1.22,1.23)/cgo #52
Comments
Do you compile with the target darwin-arm64? If so this is an known issue. |
A temporary workaround is to keep the symbol table, and the dwarf can be removed as it didn't be used right now. |
Yes, the target is darwin-arm64. Why does this work with CGO_ENABLED=0? |
CGO implicitly enables external links, where links are no longer executed by go, but by the linker provided by the operating system. This will change some of the assumptions of go itself. |
I got it, thanks. |
@Zxilly I can provide dumps if it can help. I've been trying to research this, but I haven't gotten too far. |
It's an error triggered by an upstream library, and I'm sure it's fixable. And I already have some samples I can use to reproduce the error. |
related: |
Fixed in v1.7.3 |
Hi, thanks for this tool!
Steps to reproduce:
But if I add an environment variable
CGO_ENABLED=0
to disable cgo, the analysis runs successfully.OS: macos m1
Go: 1.22
The text was updated successfully, but these errors were encountered: