Skip to content
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

Refactor uses of LibC.dladdr inside Exception::CallStack #15108

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

HertzDevil
Copy link
Contributor

The upcoming MinGW-w64 support for call stacks relies on Exception::CallStack.unsafe_decode_frame pointing to a stack-allocated string, so in order to avoid a dangling reference into the unused portion of the stack, this PR converts all the relevant methods into yielding methods.

@straight-shoota straight-shoota added this to the 1.15.0 milestone Oct 21, 2024
@straight-shoota straight-shoota merged commit 5f72133 into crystal-lang:master Oct 22, 2024
66 checks passed
@HertzDevil HertzDevil deleted the refactor/dladdr branch October 22, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants