Bug 6397 - Debugger locks up instead of breaking at breakpoint
Summary: Debugger locks up instead of breaking at breakpoint
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
Depends on:
Reported: 2012-08-04 17:23 UTC by Mark Probst
Modified: 2017-07-12 23:51 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Project (28.87 KB, application/x-gzip)
2012-08-04 17:23 UTC, Mark Probst

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Mark Probst 2012-08-04 17:23:28 UTC
Created attachment 2304 [details]

With the latest official MonoTouch (MonoDevelop and iOS 5.1 (9B176) on the simulator:

Set breakpoint in CheaterViewController.cs:141 (call to AllocAndEnqueueBuffers()).

Run with debugger.

Click on "Cheat", wait a few seconds.

Click on "Disconnect".

Click on "Assist".

This is where the breakpoint should hit.  Sometimes it works, other times the app seems to suspend like it should, but MonoDevelop doesn't show the breakpoint hitting.
Comment 1 Zoltan Varga 2012-09-14 11:24:01 UTC
The app hangs because the debugger tries to suspend all threads, and there is a thread called AQThread, which receives the interrupt signal, but sigusr1_signal_handler () ignore it, because 'thread'/'domain' is NULL, it looks like TLS doesn't work in some async signal handlers.
Comment 2 Rodrigo Kumpera 2017-07-12 23:51:52 UTC
iOS suspend no longer uses signals. This should work now.