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

posix: restore original SEGV signal handler upon first entry of our handler #12099

Merged
merged 1 commit into from
May 29, 2019

Conversation

bkueng
Copy link
Member

@bkueng bkueng commented May 29, 2019

The current SEGV handling on posix is not useful: as soon as our handler is left, it's triggered again, infinitely.
This patch changes to restore the original handler, so the OS can create a core dump, etc.

I'm also ok with removing our custom handler altogether, since the stack trace addresses are not resolved to function names, and therefore not very useful.

…andler

The current SEGV handling on posix is not useful: as soon as our handler
is left, it's triggered again, infinitely.
This patch changes to restore the original handler, so the OS can create
a core dump, etc.
@julianoes
Copy link
Contributor

I'm also ok with removing our custom handler altogether, since the stack trace addresses are not resolved to function names, and therefore not very useful.

I agree, let's remove it.

@julianoes julianoes self-requested a review May 29, 2019 06:19
@LorenzMeier LorenzMeier merged commit 6e2b70c into master May 29, 2019
@LorenzMeier LorenzMeier deleted the fix_segv_handling branch May 29, 2019 06:30
@dagar
Copy link
Member

dagar commented May 29, 2019

Yes I think it would be better removed entirely unless someone is going to invest effort into making it useful.

@julianoes
Copy link
Contributor

Yes I think it would be better removed entirely unless someone is going to invest effort into making it useful.

I tried for a bit but I needed to use an external tool and it still was not foolproof to resolve the functions. I think it's better to just use gdb or look at the core files.

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.

4 participants