Skip to content

Hang detection deadlocks when debug is enabled #5609

@noahsmartin

Description

@noahsmartin

Platform

iOS

Environment

Develop

Installed

Manually

Version

8.53.2

Xcode Version

16.5

Did it work on previous versions?

No response

Steps to Reproduce

In #4063 we fixed app hang deadlocks when SentryOptions.debug was set to false. However there are still known deadlocks when debug is set to true.

I just ran into one here (note I had made some changes to the code working on some hang detection updates, but the cause of the bug is still present in the latest code on main):

Image Image

I imagine it's also possible this is the source of some flaky tests

Expected Result

Should not be attempting to symbolicate while threads are suspended, we should instead only do that after retrieving the stack traces and resuming the threads

Actual Result

The app hangs

Are you willing to submit a PR?

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions