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

Backtrace recording #4

Open
michaeleisel opened this issue Nov 27, 2018 · 0 comments
Open

Backtrace recording #4

michaeleisel opened this issue Nov 27, 2018 · 0 comments

Comments

@michaeleisel
Copy link

michaeleisel commented Nov 27, 2018

It's often helpful, when looking at the stack trace of a crash, to see the stack trace of the thread that spawned it. E.g., if I run queue.async { <block> } and it crashes in the block, I might want to see the stack trace of where queue.async was called. This is done using backtrace recording in GCD (under "Examining the Backtrace in the Debug Navigator" https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/debugging_with_xcode/chapters/quickstart.html), however I don't see a publicly documented way of using GCD backtrace recording with crash reporting in the wild. So there are a few options to accomplish backtrace recording:

There are two problems here, one is to record the backtraces, the other is to somehow get them written out when a crash happens, e.g. via a signal-safe handler or writing to disk often.

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

No branches or pull requests

1 participant