Bug 4737 - SIGSEGV during debugging
Summary: SIGSEGV during debugging
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: PC Linux
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-04-30 09:46 UTC by Marek Safar
Modified: 2012-05-02 19:29 UTC (History)
3 users (show)

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


Attachments
test.cs (1.57 KB, text/x-csharp)
2012-04-30 09:53 UTC, Marek Safar
Details
test solution (10.29 KB, application/zip)
2012-05-02 09:07 UTC, Marek Safar
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 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:
Status:
RESOLVED FIXED

Description Marek Safar 2012-04-30 09:46:41 UTC
Stacktrace:


Native stacktrace:

	/home/marek/mono/bin/mono() [0x4987b7]
	/home/marek/mono/bin/mono() [0x4ecaaf]
	/home/marek/mono/bin/mono() [0x419a49]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0xfc60) [0x2b93353b5c60]
	/home/marek/mono/bin/mono() [0x4b9d9a]
	/home/marek/mono/bin/mono() [0x4ba322]
	/home/marek/mono/bin/mono() [0x4bb2b9]
	/home/marek/mono/bin/mono() [0x4c1319]
	/home/marek/mono/bin/mono() [0x5be8d3]
	/home/marek/mono/bin/mono() [0x5cfa89]
	/home/marek/mono/bin/mono() [0x5e99a9]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x6d8c) [0x2b93353acd8c]
	/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x2b93356aac2d]

Debug info from gdb:

Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Comment 1 Marek Safar 2012-04-30 09:53:17 UTC
This happens everytime. Here is the repro.

1. Set a breakpoint at line 36 "tt.Wait ();";
2. open file /git/mono/mcs/class/System/System.Net/WebAsyncResult.cs and set a breakpoint at line 148 "cb (this);"
3. Hit F5 everytime breakpoint is hit
Comment 2 Marek Safar 2012-04-30 09:53:52 UTC
Created attachment 1776 [details]
test.cs
Comment 3 Marek Safar 2012-04-30 10:15:00 UTC
The crash also happens when a breakpoint at step 2 is set at line with "Console.WriteLine ("hit");"
Comment 4 Zoltan Varga 2012-04-30 13:55:13 UTC
Can't reproduce this under osx.
Comment 5 Marek Safar 2012-05-01 13:01:29 UTC
Happens on OSX with mono master+MD master as well
Comment 6 Marek Safar 2012-05-01 13:03:58 UTC
Log from OSX


Debug info from gdb:

Attaching to process 30796.
Reading symbols for shared libraries . done
Reading symbols for shared libraries .................................... done
0x98a9283e in __psynch_cvwait ()
  21                                 0x98a9283e in __psynch_cvwait ()
  20                                 0x98a90c76 in semaphore_timedwait_trap ()
  19                                 0x98a90c76 in semaphore_timedwait_trap ()
  18                                 0x98a90c76 in semaphore_timedwait_trap ()
  17                                 0x98a90c76 in semaphore_timedwait_trap ()
  16                                 0x98a90c76 in semaphore_timedwait_trap ()
  15                                 0x98a90c76 in semaphore_timedwait_trap ()
  14                                 0x98a90c76 in semaphore_timedwait_trap ()
  13                                 0x98a90c76 in semaphore_timedwait_trap ()
  12                                 0x98a90c76 in semaphore_timedwait_trap ()
  11                                 0x98a90c76 in semaphore_timedwait_trap ()
  10                                 0x98a9283e in __psynch_cvwait ()
   9                                 0x98a90c76 in semaphore_timedwait_trap ()
   8                                 0x98a92bb2 in __semwait_signal ()
   7                                 0x98a90c76 in semaphore_timedwait_trap ()
   6                                 0x98a9390a in kevent ()
   5 "com.apple.libdispatch-manager" 0x98a9390a in kevent ()
   4                                 0x98a92fda in __wait4 ()
   3                                 0x98a90c5e in semaphore_wait_trap ()
   2                                 0x98a90c22 in mach_msg_trap ()
*  1 "com.apple.main-thread"         0x98a9283e in __psynch_cvwait ()

Thread 21 (process 30796):
#0  0x98a9283e in __psynch_cvwait ()
#1  0x90174e21 in _pthread_cond_wait ()
#2  0x9012542c in pthread_cond_wait$UNIX2003 ()
#3  0x00114f2e in suspend_current () at debugger-agent.c:2751
#4  0x00114813 in process_suspend (tls=0x38d61f0, ctx=0x38d6348) at debugger-agent.c:2575
#5  0x00119c08 in process_single_step_inner (tls=0x38d61f0) at debugger-agent.c:4530
#6  0x00119771 in process_signal_event (func=0x119bb0 <process_single_step_inner>) at debugger-agent.c:4401
#7  0x00119fea in process_single_step () at debugger-agent.c:4635
#8  0x039af505 in ?? ()
#9  0x039af41c in ?? ()
#10 0x039205d8 in ?? ()
#11 0x039201b4 in ?? ()
#12 0x0391fb20 in ?? ()
#13 0x0391f948 in ?? ()
#14 0x0391f844 in ?? ()
#15 0x0391e4a4 in ?? ()
#16 0x039be2b4 in ?? ()
#17 0x0391dcd6 in ?? ()
#18 0x0079bd1f in ?? ()
#19 0x00011581 in mono_jit_runtime_invoke (method=0x2c8f0ac, obj=0x36e2968, params=0xb1088d8c, exc=0xb1088d98) at mini.c:5891
#20 0x0023d6da in mono_runtime_invoke (method=0x2c8f0ac, obj=0x36e2968, params=0xb1088d8c, exc=0xb1088d98) at object.c:2808
#21 0x0023f012 in mono_runtime_delegate_invoke (delegate=0x36e2968, params=0xb1088d8c, exc=0xb1088d98) at object.c:3481
#22 0x00280111 in mono_async_invoke (tp=0x3f6fc0, ares=0x7e3840) at threadpool.c:633
#23 0x002829e9 in async_invoke_thread (data=0x7e3840) at threadpool.c:1440
#24 0x002842f1 in start_wrapper_internal (data=0x50bdd0) at threads.c:571
#25 0x00284407 in start_wrapper (data=0x50bdd0) at threads.c:619
#26 0x002ce709 in thread_start_routine (args=0x1beffa4) at wthreads.c:286
#27 0x002e3331 in inner_start_thread (arg=0x50bcd0) at mono-threads-posix.c:49
#28 0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#29 0x90170ed9 in _pthread_start ()
#30 0x901746de in thread_start ()

Thread 20 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x50cdf0) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x50cdf0) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1befeac) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x50bd90) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 19 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x50cdc0) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x50cdc0) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1befdb4) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x50cde0) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 18 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x50bdf0) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x50bdf0) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1befcbc) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x50bde0) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 17 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x50c590) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x50c590) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1befbc4) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x50ce10) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 16 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x50c530) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x50c530) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1befacc) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x50c550) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 15 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x38d4c80) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x38d4c80) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1bef9d4) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x38d4be0) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 14 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x50bf80) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x50bf80) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1bef8dc) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x50bfa0) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 13 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x50c4e0) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x50c4e0) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1bef7e4) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x50c500) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 12 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x38d3590) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x38d3590) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1bef6ec) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x38d35b0) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 11 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x38d4400) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x38d4400) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1bef5f4) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x38d4420) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 10 (process 30796):
#0  0x98a9283e in __psynch_cvwait ()
#1  0x90174e21 in _pthread_cond_wait ()
#2  0x901253e0 in pthread_cond_timedwait$UNIX2003 ()
#3  0x002b2a8c in _wapi_handle_timedwait_signal_handle (handle=0xa14, timeout=0xb0674ac0, alertable=1, poll=0) at handles.c:1583
#4  0x002cbf57 in WaitForSingleObjectEx (handle=0xa14, timeout=14995, alertable=1) at wait.c:197
#5  0x00286b38 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=0x36f01b0, handle=0xa14, ms=14995, exitContext=0) at threads.c:1473
#6  0x03774848 in ?? ()
#7  0x03773f20 in ?? ()
#8  0x03908615 in ?? ()
#9  0x03907805 in ?? ()
#10 0x03906396 in ?? ()
#11 0x017f4ec5 in ?? ()
#12 0x00011581 in mono_jit_runtime_invoke (method=0xca6764, obj=0x371e700, params=0xb0674e6c, exc=0x0) at mini.c:5891
#13 0x0023d6da in mono_runtime_invoke (method=0xca6764, obj=0x371e700, params=0xb0674e6c, exc=0x0) at object.c:2808
#14 0x0023f012 in mono_runtime_delegate_invoke (delegate=0x371e700, params=0xb0674e6c, exc=0x0) at object.c:3481
#15 0x00284351 in start_wrapper_internal (data=0x10b6a20) at threads.c:577
#16 0x00284407 in start_wrapper (data=0x10b6a20) at threads.c:619
#17 0x002ce709 in thread_start_routine (args=0x1bef4fc) at wthreads.c:286
#18 0x002e3331 in inner_start_thread (arg=0x10b6dc0) at mono-threads-posix.c:49
#19 0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#20 0x90170ed9 in _pthread_start ()
#21 0x901746de in thread_start ()

Thread 9 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6fc8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x38af9f0) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x38af9f0) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1bef214) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x38afd30) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 8 (process 30796):
#0  0x98a92bb2 in __semwait_signal ()
#1  0x901257b9 in nanosleep$UNIX2003 ()
#2  0x002cf5a0 in SleepEx (ms=500, alertable=1) at wthreads.c:834
#3  0x002805ca in monitor_thread (unused=0x0) at threadpool.c:784
#4  0x002842f1 in start_wrapper_internal (data=0x38afc90) at threads.c:571
#5  0x00284407 in start_wrapper (data=0x38afc90) at threads.c:619
#6  0x002ce709 in thread_start_routine (args=0x1bef198) at wthreads.c:286
#7  0x002e3331 in inner_start_thread (arg=0x38b0000) at mono-threads-posix.c:49
#8  0x0030fd58 in GC_start_routine (arg=0x17dbf00) at pthread_support.c:1473
#9  0x90170ed9 in _pthread_start ()
#10 0x901746de in thread_start ()

Thread 7 (process 30796):
#0  0x98a90c76 in semaphore_timedwait_trap ()
#1  0x002dffbd in mono_sem_timedwait (sem=0x3f6ee8, timeout_ms=2000, alertable=1) at mono-semaphore.c:76
#2  0x00282bda in async_invoke_thread (data=0x0) at threadpool.c:1491
#3  0x002842f1 in start_wrapper_internal (data=0x1630c60) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x1630c60) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1bef024) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x38565f0) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x17db9c0) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 6 (process 30796):
#0  0x98a9390a in kevent ()
#1  0x0027e5e1 in tp_kqueue_wait (p=0x3f6f60) at tpool-kqueue.c:99
#2  0x002842f1 in start_wrapper_internal (data=0x3856290) at threads.c:571
#3  0x00284407 in start_wrapper (data=0x3856290) at threads.c:619
#4  0x002ce709 in thread_start_routine (args=0x1beefa8) at wthreads.c:286
#5  0x002e3331 in inner_start_thread (arg=0x38563d0) at mono-threads-posix.c:49
#6  0x0030fd58 in GC_start_routine (arg=0x17db9c0) at pthread_support.c:1473
#7  0x90170ed9 in _pthread_start ()
#8  0x901746de in thread_start ()

Thread 5 (process 30796):
#0  0x98a9390a in kevent ()
#1  0x988d1c58 in _dispatch_mgr_invoke ()
#2  0x988d06a7 in _dispatch_mgr_thread ()

Thread 4 (process 30796):
#0  0x98a92fda in __wait4 ()
#1  0x901254ec in waitpid$UNIX2003 ()
#2  0x000e9ecb in mono_handle_native_sigsegv (signal=11, ctx=0x7f7fe0) at mini-exceptions.c:2266
#3  0x001637c9 in mono_arch_handle_altstack_exception (sigctx=0x7f7fe0, fault_addr=0xa5, stack_ovf=0) at exceptions-x86.c:1133
#4  0x00011905 in mono_sigsegv_signal_handler (_dummy=10, info=0x7f7fa0, context=0x7f7fe0) at mini.c:6009
#5  <signal handler called>
#6  0x0011b8e7 in buffer_add_value_full (buf=0xb0284e70, t=0x1c05bec, addr=0xbffff340, domain=0x639e00, as_vtype=1) at debugger-agent.c:5266
#7  0x0011cb91 in add_var (buf=0xb0284e70, t=0x1c05bec, var=0x38ee760, ctx=0x38ee32c, domain=0x639e00, as_vtype=1) at debugger-agent.c:5525
#8  0x001253d4 in frame_commands (command=2, p=0x38efef8 "\020", end=0x38efef8 "\020", buf=0xb0284e70) at debugger-agent.c:7999
#9  0x00126d70 in debugger_thread (arg=0x0) at debugger-agent.c:8490
#10 0x002ce709 in thread_start_routine (args=0x1beef2c) at wthreads.c:286
#11 0x002e3331 in inner_start_thread (arg=0x144c470) at mono-threads-posix.c:49
#12 0x0030fd58 in GC_start_routine (arg=0x635f60) at pthread_support.c:1473
#13 0x90170ed9 in _pthread_start ()
#14 0x901746de in thread_start ()

Thread 3 (process 30796):
#0  0x98a90c5e in semaphore_wait_trap ()
#1  0x002e0032 in mono_sem_wait (sem=0x3f6714, alertable=1) at mono-semaphore.c:115
#2  0x001b7c0d in finalizer_thread (unused=0x0) at gc.c:1074
#3  0x002842f1 in start_wrapper_internal (data=0x144b820) at threads.c:571
#4  0x00284407 in start_wrapper (data=0x144b820) at threads.c:619
#5  0x002ce709 in thread_start_routine (args=0x1beee34) at wthreads.c:286
#6  0x002e3331 in inner_start_thread (arg=0x144b840) at mono-threads-posix.c:49
#7  0x0030fd58 in GC_start_routine (arg=0x635f60) at pthread_support.c:1473
#8  0x90170ed9 in _pthread_start ()
#9  0x901746de in thread_start ()

Thread 2 (process 30796):
#0  0x98a90c22 in mach_msg_trap ()
#1  0x98a901f6 in mach_msg ()
#2  0x0016a561 in mach_exception_thread (arg=0x0) at mini-darwin.c:139
#3  0x0030fd58 in GC_start_routine (arg=0x635f60) at pthread_support.c:1473
#4  0x90170ed9 in _pthread_start ()
#5  0x901746de in thread_start ()

Thread 1 (process 30796):
#0  0x98a9283e in __psynch_cvwait ()
#1  0x90174e21 in _pthread_cond_wait ()
#2  0x9012542c in pthread_cond_wait$UNIX2003 ()
#3  0x00114f2e in suspend_current () at debugger-agent.c:2751
#4  0x00116e75 in process_event (event=EVENT_KIND_BREAKPOINT, arg=0x1bfca1c, il_offset=0, ctx=0x144b038, events=0x0, suspend_policy=2) at debugger-agent.c:3517
#5  0x00119635 in process_breakpoint_inner (tls=0x144aee0) at debugger-agent.c:4380
#6  0x00119771 in process_signal_event (func=0x119030 <process_breakpoint_inner>) at debugger-agent.c:4401
#7  0x0011985a in process_breakpoint () at debugger-agent.c:4413
#8  0x00000036 in ?? ()
#9  0x0079c497 in ?? ()
#10 0x00011581 in mono_jit_runtime_invoke (method=0x1bfca1c, obj=0x0, params=0xbffff568, exc=0x0) at mini.c:5891
#11 0x0023d6da in mono_runtime_invoke (method=0x1bfca1c, obj=0x0, params=0xbffff568, exc=0x0) at object.c:2808
#12 0x0024036c in mono_runtime_exec_main (method=0x1bfca1c, args=0x63cd80, exc=0x0) at object.c:3999
#13 0x0023f52c in mono_runtime_run_main (method=0x1bfca1c, argc=0, argv=0xbffff858, exc=0x0) at object.c:3621
#14 0x000b1b2f in mono_jit_exec (domain=0x639e00, assembly=0x1647740, argc=1, argv=0xbffff854) at driver.c:954
#15 0x000b1d80 in main_thread_handler (user_data=0xbffff770) at driver.c:1013
#16 0x000b44d2 in mono_main (argc=4, argv=0xbffff848) at driver.c:1926
#17 0x0000202f in mono_main_with_options (argc=4, argv=0xbffff848) at main.c:93
#18 0x000020c8 in main (argc=4, argv=0xbffff848) at main.c:124

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Comment 7 Zoltan Varga 2012-05-01 21:30:30 UTC
Still can't repro it, but at least the last stack trace is useful, the crash happens in thread 4, the debugger thread.
Comment 8 Marek Safar 2012-05-02 09:07:15 UTC
Created attachment 1792 [details]
test solution
Comment 9 Zoltan Varga 2012-05-02 19:29:34 UTC
Should be fixed in master. This will hopefully fix the other similar crashes as well.