Skip to content

CGO can't gen the coredump file in security mode #71026

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

Closed
linchuan4028 opened this issue Dec 26, 2024 · 1 comment
Closed

CGO can't gen the coredump file in security mode #71026

linchuan4028 opened this issue Dec 26, 2024 · 1 comment
Labels

Comments

@linchuan4028
Copy link

linchuan4028 commented Dec 26, 2024

Proposal Details

runtime can't gen the code file when encounter crash in C side during the cgo call process.
actually we need some cap_net_adm in our program and when we set cap our app, it make the AT_SECURE to be 1. this cause the security mode enable. And app no longer gen the coredump file when cash in C side.
Can we overwrite the security mode dynamically or using the ENV to change that?

golang runtime version is 1.20
OS kernal version: 5.10.209-198.812.amzn2.x86_64

@seankhliao
Copy link
Member

see runtime/debug.SetTraceback and #69868

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants