Skip to content

Handle Linux libbacktrace call failures#298

Merged
borrrden merged 1 commit into
masterfrom
fix/stack_trace_linux
May 28, 2026
Merged

Handle Linux libbacktrace call failures#298
borrrden merged 1 commit into
masterfrom
fix/stack_trace_linux

Conversation

@borrrden
Copy link
Copy Markdown
Member

If any of these calls fail for whatever reason, passing nullptr as the error handler will cause a crash. Pass a no op function instead. Also defensively handle the case where backtrace_create_state returns nullptr.

If any of these calls fail for whatever reason, passing nullptr as the error handler will cause a crash.  Pass a no op function instead.  Also defensively handle the case where backtrace_create_state returns nullptr.
@borrrden borrrden requested a review from pasin May 28, 2026 07:28
@borrrden borrrden merged commit 7cabb45 into master May 28, 2026
5 checks passed
@borrrden borrrden deleted the fix/stack_trace_linux branch May 28, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants