Bug 12942 - Setting breakpoint crashes IDE
Summary: Setting breakpoint crashes IDE
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-06-28 14:32 UTC by alexwhite68@gmail.com
Modified: 2014-01-22 07:43 UTC (History)
3 users (show)

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


Attachments
hang report (596.95 KB, application/octet-stream)
2013-06-28 14:32 UTC, alexwhite68@gmail.com
Details


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 Developer Community or GitHub 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:
Status:
VERIFIED FIXED

Description alexwhite68@gmail.com 2013-06-28 14:32:13 UTC
Created attachment 4227 [details]
hang report

Setting a breakpoint crashes the IDE it looks like the debugger does not fully connect to the device then attempting to set a breakpoint crashes the IDE.
Comment 1 Jeffrey Stedfast 2013-07-08 17:29:16 UTC
I'm not able to reproduce this... are you sure you've got the version I linked to you installed and that it's the version that you are running?
Comment 2 alexwhite68@gmail.com 2013-07-09 01:15:22 UTC
Yes downloaded and running that version, what I have noticed is all the problems seem to be around the debugging session and if it truely connects to the device, there are times when the stop button in XS works all of the time, when this is true the breakpoints work perfectly there are other times where it is not connected to the debug session, a bit like when you remove the cable during a debug session.

The simulator seems to work faultlessly now and the breakpoints seem to work 100% of the time it is debugging on the device which seems to have the problem with the breakpoints. I am still getting 2-3 crashes a day where XS hangs and I have to close it.

I have deliberately not installed the latest alpha build that is coming on the updates even though it has the same build number as I did not know if your build was slightly in front (even with the same numbers).
Comment 3 Jeffrey Stedfast 2013-07-09 09:46:38 UTC
okay, I guess I'll keep trying.

I think the new alpha will have my debugger fixes (4.1.5?), but 4.0.10 won't.
Comment 4 alexwhite68@gmail.com 2013-07-09 10:01:32 UTC
Jeff,

Before you spend anymore time on this, let me try and pin down specific cases of the issue, I will try and work out steps to reproduce the issue as my comments above are a little vague.

Thanks

alex
Comment 5 Rui Marinho 2013-07-28 12:47:50 UTC
I have the same issue, i m using the alpha branch with xcode dp3 and ios7 ... 

sometimes the breakpoints are in a lighter red, when i click it to remove it crashes the IDE.

heres some stack trace:


Date/Time:       2013-07-28 17:43:06 +0100
OS Version:      10.8.4 (Build 12E55)
Architecture:    x86_64
Report Version:  11

Command:         Xamarin Studio
Path:            /Applications/Xamarin Studio.app/Contents/MacOS/XamarinStudio
Version:         4.1.7.87 (4.1.7.87)
Parent:          launchd [162]

PID:             1650
Event:           hang
Duration:        2.17s
Steps:           22 (100ms sampling interval)

Hardware model:  MacBookPro6,2
Active cpus:     4
Free pages:      1037487 pages (-2065)
Pageins:         0 pages
Pageouts:        0 pages


Process:         XamarinStudio [1650]
Path:            /Applications/Xamarin Studio.app/Contents/MacOS/XamarinStudio
Architecture:    i386
Parent:          launchd [162]
UID:             501
Task size:       46279 pages

  Thread 0x1406f    priority 47        
  22 start + 53 (XamarinStudio) [0x1ce5]
    22 main + 2503 (XamarinStudio) [0x3817]
      22 mono_main + 9519 (libmonosgen-2.0.dylib) [0x107a7bf]
        22 mono_jit_exec + 149 (libmonosgen-2.0.dylib) [0x1078285]
          22 mono_runtime_run_main + 725 (libmonosgen-2.0.dylib) [0x11c9315]
            22 mono_runtime_exec_main + 420 (libmonosgen-2.0.dylib) [0x11c8fa4]
              22 mono_runtime_invoke + 126 (libmonosgen-2.0.dylib) [0x11c4a2e]
                22 mono_jit_runtime_invoke + 741 (libmonosgen-2.0.dylib) [0x100d805]
                  22 ??? [0xeeec2]
                    22 ??? [0xeedfc]
                      22 ??? [0xef064]
                        22 ??? [0x3dee990]
                          22 ??? [0x1282205c]
                            22 ??? [0x1282207c]
                              22 ??? [0x128220b8]
                                22 gtk_main + 240 (libgtk-quartz-2.0.0.dylib) [0x52b38d0]
                                  22 g_main_loop_run + 527 (libglib-2.0.0.dylib) [0x5048eaf]
                                    22 g_main_context_iterate + 504 (libglib-2.0.0.dylib) [0x5048978]
                                      22 g_main_context_dispatch + 48 (libglib-2.0.0.dylib) [0x5048770]
                                        22 g_main_dispatch + 409 (libglib-2.0.0.dylib) [0x50479a9]
                                          22 gdk_event_dispatch + 293 (libgdk-quartz-2.0.0.dylib) [0x5721e05]
                                            22 gtk_main_do_event + 777 (libgtk-quartz-2.0.0.dylib) [0x52b42e9]
                                              22 gtk_propagate_event + 247 (libgtk-quartz-2.0.0.dylib) [0x52b61f7]
                                                22 propagate_event + 535 (libgtk-quartz-2.0.0.dylib) [0x52b60e7]
                                                  22 propagate_event_up + 97 (libgtk-quartz-2.0.0.dylib) [0x52b5d21]
                                                    22 gtk_widget_event + 319 (libgtk-quartz-2.0.0.dylib) [0x546af3f]
                                                      22 gtk_widget_event_internal + 749 (libgtk-quartz-2.0.0.dylib) [0x546b74d]
                                                        22 g_signal_emit + 65 (libgobject-2.0.0.dylib) [0x60950f1]
                                                          22 g_signal_emit_valist + 4913 (libgobject-2.0.0.dylib) [0x6094af1]
                                                            22 signal_emit_unlocked_R + 1992 (libgobject-2.0.0.dylib) [0x6095a28]
                                                              22 g_closure_invoke + 504 (libgobject-2.0.0.dylib) [0x6074918]
                                                                22 g_type_class_meta_marshal + 142 (libgobject-2.0.0.dylib) [0x607519e]
                                                                  22 _gtk_marshal_BOOLEAN__BOXED + 286 (libgtk-quartz-2.0.0.dylib) [0x52b840e]
                                                                    22 ??? [0xc9ebf48]
                                                                      22 ??? [0x1378b572]
                                                                        22 ??? [0x17e20bf8]
                                                                          22 ??? [0x140eff90]
                                                                            22 ??? [0x17e22814]
                                                                              22 ??? [0x140f04c4]
                                                                                22 ??? [0xf1624]
                                                                                  22 ??? [0xf1658]
                                                                                    22 ??? [0xf16ac]
                                                                                      22 ??? [0xf179c]
                                                                                        22 ves_icall_System_Threading_Monitor_Monitor_try_enter_with_atomic_var + 31 (libmonosgen-2.0.dylib) [0x11c071f]
                                                                                          22 mono_monitor_try_enter_internal + 1526 (libmonosgen-2.0.dylib) [0x11c0406]
                                                                                            22 WaitForSingleObjectEx + 660 (libmonosgen-2.0.dylib) [0x12371b4]
                                                                                              22 _wapi_handle_timedwait_signal_handle + 516 (libmonosgen-2.0.dylib) [0x1223db4]
                                                                                                22 pthread_cond_timedwait$UNIX2003 + 70 (libsystem_c.dylib) [0x96c430e0]
                                                                                                  22 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x906e98e2]
                                                                                                   *20 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5bb0]
                                                                                                   *2  ??? (mach_kernel + 845485) [0xffffff80002ce6ad]
                                                                                                     *2  unix_syscall + 467 (mach_kernel) [0xffffff80005e13b3]
                                                                                                       *2  psynch_cvwait + 1340 (mach_kernel) [0xffffff80005b5aec]
                                                                                                         *2  thread_block_reason + 275 (mach_kernel) [0xffffff800022db73]
                                                                                                           *2  ??? (mach_kernel + 187905) [0xffffff800022de01]
                                                                                                             *2  processor_idle + 237 (mach_kernel) [0xffffff800022f34d]
                                                                                                               *2  machine_idle + 443 (mach_kernel) [0xffffff80002b9c9b]

  Thread 0x14081    DispatchQueue 1701273966 priority 49        
  22 _dispatch_mgr_thread + 53 (libdispatch.dylib) [0x9608b7a9]
    22 kevent + 10 (libsystem_kernel.dylib) [0x906ea9ae]
     *22 ??? (mach_kernel + 3471808) [0xffffff800054f9c0]

  Thread 0x1407d    priority 47        
  22 thread_start + 34 (libsystem_c.dylib) [0x96ba2d4e]
    22 _pthread_start + 344 (libsystem_c.dylib) [0x96bb85b7]
      22 inner_start_thread + 65 (libmonosgen-2.0.dylib) [0x124ab01]
        22 thread_start_routine + 154 (libmonosgen-2.0.dylib) [0x123a13a]
          22 start_wrapper + 470 (libmonosgen-2.0.dylib) [0x1195116]
            22 finalizer_thread + 74 (libmonosgen-2.0.dylib) [0x11be38a]
              22 semaphore_wait_trap + 10 (libsystem_kernel.dylib) [0x906e780e]
               *22 semaphore_wait_continue + 0 (mach_kernel) [0xffffff8000234040]

  Thread 0x14099    priority 47        
  22 thread_start + 34 (libsystem_c.dylib) [0x96ba2d4e]
    22 _pthread_start + 344 (libsystem_c.dylib) [0x96bb85b7]
      22 inner_start_thread + 65 (libmonosgen-2.0.dylib) [0x124ab01]
        22 thread_start_routine + 154 (libmonosgen-2.0.dylib) [0x123a13a]
          22 start_wrapper + 514 (libmonosgen-2.0.dylib) [0x1195142]
            22 mono_runtime_delegate_invoke + 140 (libmonosgen-2.0.dylib) [0x11c4b9c]
              22 mono_runtime_invoke + 126 (libmonosgen-2.0.dylib) [0x11c4a2e]
                22 mono_jit_runtime_invoke + 741 (libmonosgen-2.0.dylib) [0x100d805]
                  22 ??? [0x27bcd7d]
                    22 ??? [0x741cfd0]
                      22 ??? [0x741d193]
                        22 ??? [0x741d8e0]
                          22 ??? [0x741da9c]
                            22 ves_icall_System_Threading_WaitHandle_WaitOne_internal + 95 (libmonosgen-2.0.dylib) [0x1197e9f]
                              22 mono_wait_uninterrupted + 122 (libmonosgen-2.0.dylib) [0x1197dda]
                                22 WaitForSingleObjectEx + 625 (libmonosgen-2.0.dylib) [0x1237191]
                                  22 _wapi_handle_wait_signal_handle + 40 (libmonosgen-2.0.dylib) [0x1223e68]
                                    22 _wapi_handle_timedwait_signal_handle + 620 (libmonosgen-2.0.dylib) [0x1223e1c]
                                      22 pthread_cond_wait$UNIX2003 + 71 (libsystem_c.dylib) [0x96c43095]
                                        22 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x906e98e2]
                                         *22 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5bb0]

  Thread 0x140ab    priority 47        
  22 thread_start + 34 (libsystem_c.dylib) [0x96ba2d4e]
    22 _pthread_start + 344 (libsystem_c.dylib) [0x96bb85b7]
      22 inner_start_thread + 65 (libmonosgen-2.0.dylib) [0x124ab01]
        22 thread_start_routine + 154 (libmonosgen-2.0.dylib) [0x123a13a]
          22 start_wrapper + 470 (libmonosgen-2.0.dylib) [0x1195116]
            22 monitor_thread + 120 (libmonosgen-2.0.dylib) [0x1199c18]
              22 SleepEx + 309 (libmonosgen-2.0.dylib) [0x12393a5]
                22 __semwait_signal + 10 (libsystem_kernel.dylib) [0x906e9c72]
                 *22 semaphore_wait_continue + 0 (mach_kernel) [0xffffff8000234040]

  Thread 0x140ac    priority 47        
  22 thread_start + 34 (libsystem_c.dylib) [0x96ba2d4e]
    22 _pthread_start + 344 (libsystem_c.dylib) [0x96bb85b7]
      22 inner_start_thread + 65 (libmonosgen-2.0.dylib) [0x124ab01]
        22 thread_start_routine + 154 (libmonosgen-2.0.dylib) [0x123a13a]
          22 start_wrapper + 470 (libmonosgen-2.0.dylib) [0x1195116]
            22 async_invoke_thread + 2996 (libmonosgen-2.0.dylib) [0x119c6a4]
              22 semaphore_timedwait_trap + 10 (libsystem_kernel.dylib) [0x906e7826]
               *22 semaphore_wait_continue + 0 (mach_kernel) [0xffffff8000234040]

  Thread 0x140b0    priority 47        
  22 thread_start + 34 (libsystem_c.dylib) [0x96ba2d4e]
    22 _pthread_start + 344 (libsystem_c.dylib) [0x96bb85b7]
      22 inner_start_thread + 65 (libmonosgen-2.0.dylib) [0x124ab01]
        22 thread_start_routine + 154 (libmonosgen-2.0.dylib) [0x123a13a]
          22 start_wrapper + 470 (libmonosgen-2.0.dylib) [0x1195116]
            22 tp_poll_wait + 1390 (libmonosgen-2.0.dylib) [0x119aaee]
              22 __select + 10 (libsystem_kernel.dylib) [0x906e9be6]
               *22 ??? (mach_kernel + 3580832) [0xffffff800056a3a0]

  Thread 0x140b1    priority 47        
  22 thread_start + 34 (libsystem_c.dylib) [0x96ba2d4e]
    22 _pthread_start + 344 (libsystem_c.dylib) [0x96bb85b7]
      22 inner_start_thread + 65 (libmonosgen-2.0.dylib) [0x124ab01]
        22 thread_start_routine + 154 (libmonosgen-2.0.dylib) [0x123a13a]
          22 start_wrapper + 470 (libmonosgen-2.0.dylib) [0x1195116]
            22 async_invoke_thread + 2996 (libmonosgen-2.0.dylib) [0x119c6a4]
              22 semaphore_timedwait_trap + 10 (libsystem_kernel.dylib) [0x906e7826]
               *22 semaphore_wait_continue + 0 (mach_kernel) [0xffffff8000234040]

  Thread 0x140b2    priority 47        
  22 thread_start + 34 (libsystem_c.dylib) [0x96ba2d4e]
    22 _pthread_start + 344 (libsystem_c.dylib) [0x96bb85b7]
      22 inner_start_thread + 65 (libmonosgen-2.0.dylib) [0x124ab01]
        22 thread_start_routine + 154 (libmonosgen-2.0.dylib) [0x123a13a]
          22 start_wrapper + 470 (libmonosgen-2.0.dylib) [0x1195116]
            22 async_invoke_thread + 2161 (libmonosgen-2.0.dylib) [0x119c361]
              22 mono_runtime_delegate_invoke + 140 (libmonosgen-2.0.dylib) [0x11c4b9c]
                22 mono_runtime_invoke + 126 (libmonosgen-2.0.dylib) [0x11c4a2e]
                  22 mono_jit_runtime_invoke + 741 (libmonosgen-2.0.dylib) [0x100d805]
                    22 ??? [0xeecc5]
                      22 ??? [0x1772fe84]
                        22 ??? [0xf1624]
                          22 ??? [0xf1658]
                            22 ??? [0xf16ac]
                              22 ??? [0xf179c]
                                22 ves_icall_System_Threading_Monitor_Monitor_try_enter_with_atomic_var + 31 (libmonosgen-2.0.dylib) [0x11c071f]
                                  22 mono_monitor_try_enter_internal + 1526 (libmonosgen-2.0.dylib) [0x11c0406]
                                    22 WaitForSingleObjectEx + 660 (libmonosgen-2.0.dylib) [0x12371b4]
                                      22 _wapi_handle_timedwait_signal_handle + 516 (libmonosgen-2.0.dylib) [0x1223db4]
                                        22 pthread_cond_timedwait$UNIX2003 + 70 (libsystem_c.dylib) [0x96c430e0]
                                          22 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x906e98e2]
                                           *22 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5bb0]

  Thread 0x140cf    priority 54        
  22 thread_start + 34 (libsystem_c.dylib) [0x96ba2d4e]
    22 _pthread_start + 344 (libsystem_c.dylib) [0x96bb85b7]
      22 startIOThread(void*) + 160 (CoreVideo) [0x96d5adb2]
        22 CVDisplayLink::runIOThread() + 912 (CoreVideo) [0x96d5b15a]
          22 pthread_cond_wait$UNIX2003 + 71 (libsystem_c.dylib) [0x96c43095]
            22 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x906e98e2]
             *22 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5bb0]

  Thread 0x140e8    priority 47        
  22 thread_start + 34 (libsystem_c.dylib) [0x96ba2d4e]
    22 _pthread_start + 344 (libsystem_c.dylib) [0x96bb85b7]
      22 inner_start_thread + 65 (libmonosgen-2.0.dylib) [0x124ab01]
        22 thread_start_routine + 154 (libmonosgen-2.0.dylib) [0x123a13a]
          22 start_wrapper + 514 (libmonosgen-2.0.dylib) [0x1195142]
            22 mono_runtime_delegate_invoke + 140 (libmonosgen-2.0.dylib) [0x11c4b9c]
              22 mono_runtime_invoke + 126 (libmonosgen-2.0.dylib) [0x11c4a2e]
                22 mono_jit_runtime_invoke + 741 (libmonosgen-2.0.dylib) [0x100d805]
                  22 ??? [0x27bcd7d]
                    22 ??? [0x741cfd0]
                      22 ??? [0x11a8562c]
                        22 ??? [0x11a85858]
                          22 ??? [0x11a85924]
                            22 ves_icall_System_Threading_Thread_Sleep_internal + 88 (libmonosgen-2.0.dylib) [0x1198118]
                              22 SleepEx + 309 (libmonosgen-2.0.dylib) [0x12393a5]
                                22 __semwait_signal + 10 (libsystem_kernel.dylib) [0x906e9c72]
                                 *22 semaphore_wait_continue + 0 (mach_kernel) [0xffffff8000234040]

  Thread 0x140ef    priority 47        
  22 thread_start + 34 (libsystem_c.dylib) [0x96ba2d4e]
    22 _pthread_start + 344 (libsystem_c.dylib) [0x96bb85b7]
      22 inner_start_thread + 65 (libmonosgen-2.0.dylib) [0x124ab01]
        22 thread_start_routine + 154 (libmonosgen-2.0.dylib) [0x123a13a]
          22 start_wrapper + 514 (libmonosgen-2.0.dylib) [0x1195142]
            22 mono_runtime_delegate_invoke + 140 (libmonosgen-2.0.dylib) [0x11c4b9c]
              22 mono_runtime_invoke + 126 (libmonosgen-2.0.dylib) [0x11c4a2e]
                22 mono_jit_runtime_invoke + 741 (libmonosgen-2.0.dylib) [0x100d805]
                  22 ??? [0x27bcd7d]
                    22 ??? [0x741cfd0]
                      22 ??? [0x11de34b0]
                        22 ??? [0x11de35a4]
                          22 ??? [0x11a8f220]
                            22 ??? [0x741da9c]
Comment 6 Jeffrey Stedfast 2013-07-28 12:58:02 UTC
native stack traces are unfortunately completely useless to me

I need a managed stack trace :-\
Comment 7 Jeffrey Stedfast 2013-07-29 14:37:56 UTC
hit a hang when adding a breakpoint earlier today and so managed to find the cause and fix it.

Gonna close as fixed, but if you hit this in a future version (4.1.19?) then there must be another case.
Comment 8 Atin 2014-01-22 07:43:00 UTC
Today, we have checked this issue with:

XS 4.2.3(build 154) -  4dca4a28d7ecc2c4df8a4d58e74b8902d0283b53
MT 7.0.7.64
ML 10.8.5

Now this issue is not exist, we are successfully able to set Breakpoint in XS.

Hence marking this as Verified