Skip to content

Check if a fatal signal is from kernel #10438

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

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Conversation

nobu
Copy link
Member

@nobu nobu commented Apr 3, 2024

On Linux, siginfo_t uses a union for each si_code, and the field corresponding to si_pid does not belong to the _sigfault field for SIGSEGV.
It actually overlaps the si_addr field, which is usually non-zero on stack overflow.

#10201 (comment)

On Linux, `siginfo_t` uses a union for each `si_code`, and the field
corresponding to `si_pid` does not belong to the `_sigfault` field for
SIGSEGV.  It actually overlaps the `si_addr` field, which is usually
non-zero on stack overflow.

ruby#10201 (comment)
@matzbot matzbot merged commit f928e60 into ruby:master Apr 3, 2024
99 checks passed
@nobu nobu deleted the check_fatal_signal branch April 4, 2024 06:49
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