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

fix #9 stacktrace works if triggered by a signal, eg SIGSEGV #10

Merged

Conversation

timotheecour
Copy link
Contributor

@timotheecour timotheecour commented Mar 14, 2021

fix #9
(that issue contains many other things, but these can be reported and addressed separately)

simple fix but it makes stacktraces work if triggered by a signal eg the common case of SIGSEGV.

/cc @stefantalpalaru

future work

  • make it easier to build nim with nim-libbacktrace + --passc:"-fno-omit-frame-pointer -fno-optimize-sibling-calls" to get the "best of both worlds": performance and good stacktraces

@stefantalpalaru stefantalpalaru merged commit cfe5032 into status-im:master Mar 14, 2021
@stefantalpalaru
Copy link
Contributor

Thanks!

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.

no stacktrace shown when signalHandler called (eg SIGSEGV)
2 participants