Bug 2862 - crash in get_generic_info_from_stack_frame () during async exception handling.
Summary: crash in get_generic_info_from_stack_frame () during async exception handling.
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: GC ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-01-12 08:10 UTC by Jonathan Shore
Modified: 2012-01-28 04:29 UTC (History)
3 users (show)

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


Attachments
relevant classes (14.50 KB, application/x-tar)
2012-01-12 08:10 UTC, Jonathan Shore
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 Jonathan Shore 2012-01-12 08:10:21 UTC
Created attachment 1170 [details]
relevant classes

Description of Problem:

I have a simple unit test to test a "Future" class build on top of the parallel Task class.  The unit test creates a few hundred tasks and then tries to collect their evaluations.

It is not consistent, but in a run, mono failed with SIGSEGV in mono / std libraries C code.  I have no native code of my own involved here, so does look to be a mono runtime problem.

I was running 64bit compiled mono 2.10.6 on ubuntu 2.10 (in this case), on a 4 core / 8 thread machine.

Steps to reproduce the problem:
1. run unit test
2. may or may not fault


Actual Results:

(ignore the [exec] prefix, as was run in ant):
     [exec] Stacktrace:
     [exec] 
     [exec] 
     [exec] Native stacktrace:
     [exec] 
     [exec] 	/opt/mono-2.10/bin/mono() [0x49706b]
     [exec] 	/opt/mono-2.10/bin/mono() [0x4fa72f]
     [exec] 	/opt/mono-2.10/bin/mono() [0x41bd49]
     [exec] 	/lib/libpthread.so.0(+0xf8f0) [0x7f20004af8f0]
     [exec] 	/opt/mono-2.10/bin/mono() [0x49427a]
     [exec] 	/opt/mono-2.10/bin/mono() [0x495ee9]
     [exec] 	/opt/mono-2.10/bin/mono() [0x49855c]
     [exec] 	/opt/mono-2.10/bin/mono() [0x4faa62]
     [exec] 
     [exec] Debug info from gdb:
     [exec] 
     [exec] Mono support loaded.
     [exec] [Thread debugging using libthread_db enabled]
     [exec] [New Thread 0x7f1ff8b6a700 (LWP 28931)]
     [exec] [New Thread 0x7f1ff8d6f700 (LWP 28930)]
     [exec] [New Thread 0x7f1febfff700 (LWP 28929)]
     [exec] [New Thread 0x7f1ff0309700 (LWP 28928)]
     [exec] [New Thread 0x7f1ff050e700 (LWP 28927)]
     [exec] [New Thread 0x7f1ff0713700 (LWP 28926)]
     [exec] [New Thread 0x7f1ff0918700 (LWP 28925)]
     [exec] [New Thread 0x7f1ff0b1d700 (LWP 28924)]
     [exec] [New Thread 0x7f1ff0d22700 (LWP 28923)]
     [exec] [New Thread 0x7f1ff0f27700 (LWP 28922)]
     [exec] [New Thread 0x7f1ff112c700 (LWP 28921)]
     [exec] [New Thread 0x7f1ff1331700 (LWP 28920)]
     [exec] [New Thread 0x7f1ff8067700 (LWP 28919)]
     [exec] [New Thread 0x7f1ff952f700 (LWP 28915)]
     [exec] [New Thread 0x7f1ff9bc3700 (LWP 28914)]
     [exec] [New Thread 0x7f1ffaefb700 (LWP 28913)]
     [exec] [New Thread 0x7f1ffb6fc700 (LWP 28912)]
     [exec] [New Thread 0x7f1ffbefd700 (LWP 28911)]
     [exec] [New Thread 0x7f1ffc6fe700 (LWP 28910)]
     [exec] [New Thread 0x7f1ffceff700 (LWP 28909)]
     [exec] [New Thread 0x7f1ffd700700 (LWP 28908)]
     [exec] [New Thread 0x7f1ffdf01700 (LWP 28907)]
     [exec] [New Thread 0x7f1ffe702700 (LWP 28906)]
     [exec] [New Thread 0x7f1ffef03700 (LWP 28905)]
     [exec] [New Thread 0x7f1fff704700 (LWP 28904)]
     [exec] [New Thread 0x7f1ffff05700 (LWP 28903)]
     [exec] 0x00007f20004abbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec]   27 Thread 0x7f1ffff05700 (LWP 28903)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   26 Thread 0x7f1fff704700 (LWP 28904)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   25 Thread 0x7f1ffef03700 (LWP 28905)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   24 Thread 0x7f1ffe702700 (LWP 28906)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   23 Thread 0x7f1ffdf01700 (LWP 28907)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   22 Thread 0x7f1ffd700700 (LWP 28908)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   21 Thread 0x7f1ffceff700 (LWP 28909)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   20 Thread 0x7f1ffc6fe700 (LWP 28910)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   19 Thread 0x7f1ffbefd700 (LWP 28911)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   18 Thread 0x7f1ffb6fc700 (LWP 28912)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   17 Thread 0x7f1ffaefb700 (LWP 28913)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   16 Thread 0x7f1ff9bc3700 (LWP 28914)  0x00007f20004adb50 in sem_wait ()
     [exec]    from /lib/libpthread.so.0
     [exec]   15 Thread 0x7f1ff952f700 (LWP 28915)  0x00007f20004aec3d in accept ()
     [exec]    from /lib/libpthread.so.0
     [exec]   14 Thread 0x7f1ff8067700 (LWP 28919)  0x00007f20004af11d in nanosleep ()
     [exec]    from /lib/libpthread.so.0
     [exec]   13 Thread 0x7f1ff1331700 (LWP 28920)  0x00007f20004adc37 in sem_timedwait ()
     [exec]    from /lib/libpthread.so.0
     [exec]   12 Thread 0x7f1ff112c700 (LWP 28921)  0x00007f20004adc37 in sem_timedwait ()
     [exec]    from /lib/libpthread.so.0
     [exec]   11 Thread 0x7f1ff0f27700 (LWP 28922)  0x00007f20004ae93d in read ()
     [exec]    from /lib/libpthread.so.0
     [exec]   10 Thread 0x7f1ff0d22700 (LWP 28923)  0x00007f20004adc37 in sem_timedwait ()
     [exec]    from /lib/libpthread.so.0
     [exec]   9 Thread 0x7f1ff0b1d700 (LWP 28924)  0x00007f20004adc37 in sem_timedwait ()
     [exec]    from /lib/libpthread.so.0
     [exec]   8 Thread 0x7f1ff0918700 (LWP 28925)  0x00007f20004adc37 in sem_timedwait ()
     [exec]    from /lib/libpthread.so.0
     [exec]   7 Thread 0x7f1ff0713700 (LWP 28926)  0x00007f20004adc37 in sem_timedwait ()
     [exec]    from /lib/libpthread.so.0
     [exec]   6 Thread 0x7f1ff050e700 (LWP 28927)  0x00007f20004adc37 in sem_timedwait ()
     [exec]    from /lib/libpthread.so.0
     [exec]   5 Thread 0x7f1ff0309700 (LWP 28928)  0x00007f20004adc37 in sem_timedwait ()
     [exec]    from /lib/libpthread.so.0
     [exec]   4 Thread 0x7f1febfff700 (LWP 28929)  0x00007f20004adc37 in sem_timedwait ()
     [exec]    from /lib/libpthread.so.0
     [exec]   3 Thread 0x7f1ff8d6f700 (LWP 28930)  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec]   2 Thread 0x7f1ff8b6a700 (LWP 28931)  0x00007f20004abbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec] * 1 Thread 0x7f200125b760 (LWP 28896)  0x00007f20004abbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
     [exec] 
     [exec] Thread 27 (Thread 0x7f1ffff05700 (LWP 28903)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0x0) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 26 (Thread 0x7f1fff704700 (LWP 28904)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0x1) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 25 (Thread 0x7f1ffef03700 (LWP 28905)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0x2) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 24 (Thread 0x7f1ffe702700 (LWP 28906)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0x3) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 23 (Thread 0x7f1ffdf01700 (LWP 28907)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0x4) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 22 (Thread 0x7f1ffd700700 (LWP 28908)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0x5) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 21 (Thread 0x7f1ffceff700 (LWP 28909)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0x6) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 20 (Thread 0x7f1ffc6fe700 (LWP 28910)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0x7) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 19 (Thread 0x7f1ffbefd700 (LWP 28911)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0x8) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 18 (Thread 0x7f1ffb6fc700 (LWP 28912)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0x9) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 17 (Thread 0x7f1ffaefb700 (LWP 28913)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005f338c in GC_wait_marker () at pthread_support.c:1863
     [exec] #2  0x00000000005f76de in GC_help_marker (my_mark_no=66) at mark.c:1116
     [exec] #3  0x00000000005f2058 in GC_mark_thread (id=0xa) at pthread_support.c:552
     [exec] #4  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #5  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #6  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 16 (Thread 0x7f1ff9bc3700 (LWP 28914)):
     [exec] #0  0x00007f20004adb50 in sem_wait () from /lib/libpthread.so.0
     [exec] #1  0x00000000005dfa88 in mono_sem_wait (sem=0x12b6880, alertable=1)
     [exec]     at mono-semaphore.c:113
     [exec] #2  0x000000000058ddab in finalizer_thread (unused=<value optimized out>)
     [exec]     at gc.c:1066
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x1507490)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f20010bdfc0)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 15 (Thread 0x7f1ff952f700 (LWP 28915)):
     [exec] #0  0x00007f20004aec3d in accept () from /lib/libpthread.so.0
     [exec] #1  0x00000000005d7e3e in _wapi_accept (fd=3, addr=0x0, addrlen=0x0)
     [exec]     at sockets.c:225
     [exec] #2  0x0000000000591453 in ves_icall_System_Net_Sockets_Socket_Accept_internal (
     [exec]     sock=3, error=0x7f1ff952e9bc, blocking=<value optimized out>)
     [exec]     at socket-io.c:883
     [exec] #3  0x00000000413b0023 in ?? ()
     [exec] #4  0x00000000016aa4a0 in ?? ()
     [exec] #5  0x00007f20010d2cc0 in ?? ()
     [exec] #6  0x00007f1ff957f618 in ?? ()
     [exec] #7  0x00007f1ff957f618 in ?? ()
     [exec] #8  0x0000000001737eb0 in ?? ()
     [exec] #9  0x00007f1ff952e9f0 in ?? ()
     [exec] #10 0x00007f1ff952e8d0 in ?? ()
     [exec] #11 0x00007f20010d2cc0 in ?? ()
     [exec] #12 0x00007f1ff957f618 in ?? ()
     [exec] #13 0x00007f1ff957f618 in ?? ()
     [exec] #14 0x00007f1ff98cbcf8 in ?? ()
     [exec] #15 0x00000000413af870 in ?? ()
     [exec] #16 0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 14 (Thread 0x7f1ff8067700 (LWP 28919)):
     [exec] #0  0x00007f20004af11d in nanosleep () from /lib/libpthread.so.0
     [exec] #1  0x00000000005c2194 in SleepEx (ms=<value optimized out>, alertable=1)
     [exec]     at wthreads.c:1027
     [exec] #2  0x00000000005acaeb in monitor_thread (unused=<value optimized out>)
     [exec]     at threadpool.c:777
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x15114b8)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff9319fc0)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 13 (Thread 0x7f1ff1331700 (LWP 28920)):
     [exec] #0  0x00007f20004adc37 in sem_timedwait () from /lib/libpthread.so.0
     [exec] #1  0x00000000005dfb93 in mono_sem_timedwait (sem=0x12b6c68, 
     [exec]     timeout_ms=<value optimized out>, alertable=1) at mono-semaphore.c:76
     [exec] #2  0x00000000005ae3cf in async_invoke_thread (data=0x0) at threadpool.c:1483
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x1512c28)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff3303fc0)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 12 (Thread 0x7f1ff112c700 (LWP 28921)):
     [exec] #0  0x00007f20004adc37 in sem_timedwait () from /lib/libpthread.so.0
     [exec] #1  0x00000000005dfb93 in mono_sem_timedwait (sem=0x12b6c68, 
     [exec]     timeout_ms=<value optimized out>, alertable=1) at mono-semaphore.c:76
     [exec] #2  0x00000000005ae3cf in async_invoke_thread (data=0x0) at threadpool.c:1483
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x1508cc8)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff3f2bfc0)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 11 (Thread 0x7f1ff0f27700 (LWP 28922)):
     [exec] #0  0x00007f20004ae93d in read () from /lib/libpthread.so.0
     [exec] #1  0x00000000004971f7 in read (signal=<value optimized out>, 
     [exec]     ctx=<value optimized out>) at /usr/include/bits/unistd.h:45
     [exec] #2  mono_handle_native_sigsegv (signal=<value optimized out>, 
     [exec]     ctx=<value optimized out>) at mini-exceptions.c:2207
     [exec] #3  0x00000000004fa72f in mono_arch_handle_altstack_exception (sigctx=
     [exec]     0x7f1ff0d26c40, fault_addr=<value optimized out>, stack_ovf=0)
     [exec]     at exceptions-amd64.c:957
     [exec] #4  0x000000000041bd49 in mono_sigsegv_signal_handler (_dummy=11, info=
     [exec]     0x7f1ff0d26d70, context=0x7f1ff0d26c40) at mini.c:5882
     [exec] #5  <signal handler called>
     [exec] #6  0x000000000049427a in get_generic_info_from_stack_frame (ji=
     [exec]     0x7f1ff40fe838, ctx=<value optimized out>) at mini-exceptions.c:433
     [exec] #7  0x0000000000495ee9 in mono_handle_exception_internal_first_pass (ctx=
     [exec]     0x7f1ff0f26720, obj=<value optimized out>, 
     [exec]     original_ip=<value optimized out>, out_filter_idx=<value optimized out>, 
     [exec]     out_ji=<value optimized out>, non_exception=0x0) at mini-exceptions.c:1241
     [exec] #8  0x000000000049855c in mono_handle_exception_internal (ctx=0x7f1ff0f26860, 
     [exec]     obj=<value optimized out>, original_ip=<value optimized out>, resume=0, 
     [exec]     out_ji=<value optimized out>) at mini-exceptions.c:1470
     [exec] #9  0x00000000004faa62 in handle_signal_exception (obj=0x7f1ff8df57e0, 
     [exec]     test_only=0) at exceptions-amd64.c:743
     [exec] #10 0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 10 (Thread 0x7f1ff0d22700 (LWP 28923)):
     [exec] #0  0x00007f20004adc37 in sem_timedwait () from /lib/libpthread.so.0
     [exec] #1  0x00000000005dfb93 in mono_sem_timedwait (sem=0x12b6c68, 
     [exec]     timeout_ms=<value optimized out>, alertable=1) at mono-semaphore.c:76
     [exec] #2  0x00000000005ae3cf in async_invoke_thread (data=0x0) at threadpool.c:1483
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x150c378)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff9546ea8)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 9 (Thread 0x7f1ff0b1d700 (LWP 28924)):
     [exec] #0  0x00007f20004adc37 in sem_timedwait () from /lib/libpthread.so.0
     [exec] #1  0x00000000005dfb93 in mono_sem_timedwait (sem=0x12b6c68, 
     [exec]     timeout_ms=<value optimized out>, alertable=1) at mono-semaphore.c:76
     [exec] #2  0x00000000005ae3cf in async_invoke_thread (data=0x0) at threadpool.c:1483
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x150c440)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff9546ea8)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 8 (Thread 0x7f1ff0918700 (LWP 28925)):
     [exec] #0  0x00007f20004adc37 in sem_timedwait () from /lib/libpthread.so.0
     [exec] #1  0x00000000005dfb93 in mono_sem_timedwait (sem=0x12b6c68, 
     [exec]     timeout_ms=<value optimized out>, alertable=1) at mono-semaphore.c:76
     [exec] #2  0x00000000005ae3cf in async_invoke_thread (data=0x0) at threadpool.c:1483
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x150c508)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff9546ea8)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 7 (Thread 0x7f1ff0713700 (LWP 28926)):
     [exec] #0  0x00007f20004adc37 in sem_timedwait () from /lib/libpthread.so.0
     [exec] #1  0x00000000005dfb93 in mono_sem_timedwait (sem=0x12b6c68, 
     [exec]     timeout_ms=<value optimized out>, alertable=1) at mono-semaphore.c:76
     [exec] #2  0x00000000005ae3cf in async_invoke_thread (data=0x0) at threadpool.c:1483
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x150c760)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff9546ea8)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 6 (Thread 0x7f1ff050e700 (LWP 28927)):
     [exec] #0  0x00007f20004adc37 in sem_timedwait () from /lib/libpthread.so.0
     [exec] #1  0x00000000005dfb93 in mono_sem_timedwait (sem=0x12b6c68, 
     [exec]     timeout_ms=<value optimized out>, alertable=1) at mono-semaphore.c:76
     [exec] #2  0x00000000005ae3cf in async_invoke_thread (data=0x0) at threadpool.c:1483
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x150c828)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff9546ea8)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 5 (Thread 0x7f1ff0309700 (LWP 28928)):
     [exec] #0  0x00007f20004adc37 in sem_timedwait () from /lib/libpthread.so.0
     [exec] #1  0x00000000005dfb93 in mono_sem_timedwait (sem=0x12b6c68, 
     [exec]     timeout_ms=<value optimized out>, alertable=1) at mono-semaphore.c:76
     [exec] #2  0x00000000005ae3cf in async_invoke_thread (data=0x0) at threadpool.c:1483
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x150d570)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff9546ea8)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 4 (Thread 0x7f1febfff700 (LWP 28929)):
     [exec] #0  0x00007f20004adc37 in sem_timedwait () from /lib/libpthread.so.0
     [exec] #1  0x00000000005dfb93 in mono_sem_timedwait (sem=0x12b6c68, 
     [exec]     timeout_ms=<value optimized out>, alertable=1) at mono-semaphore.c:76
     [exec] #2  0x00000000005ae3cf in async_invoke_thread (data=0x0) at threadpool.c:1483
     [exec] #3  0x00000000005a951b in start_wrapper_internal (data=<value optimized out>)
     [exec]     at threads.c:783
     [exec] #4  start_wrapper (data=<value optimized out>) at threads.c:831
     [exec] #5  0x00000000005c31e4 in thread_start_routine (args=0x150e128)
     [exec]     at wthreads.c:287
     [exec] #6  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff9546ea8)
     [exec]     at pthread_support.c:1468
     [exec] #7  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #8  0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #9  0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 3 (Thread 0x7f1ff8d6f700 (LWP 28930)):
     [exec] #0  0x00007f20004ab85c in pthread_cond_wait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005d70fc in _wapi_handle_timedwait_signal_handle (handle=
     [exec]     0x10095, timeout=0x0, alertable=1, poll=-1) at handles.c:1654
     [exec] #2  0x00000000005c0f7d in WaitForSingleObjectEx (handle=<value optimized out>, 
     [exec]     timeout=<value optimized out>, alertable=<value optimized out>)
     [exec]     at wait.c:203
     [exec] #3  0x000000000054b2aa in mono_domain_try_unload (domain=0x7f1ff98cc990, exc=
     [exec]     0x7f1ff8d6e988) at appdomain.c:2445
     [exec] #4  0x000000000054b367 in mono_domain_unload (domain=0x150e354)
     [exec]     at appdomain.c:2348
     [exec] #5  0x0000000040c02e8a in ?? ()
     [exec] #6  0x00000000018b8970 in ?? ()
     [exec] #7  0x00007f20010d2cc0 in ?? ()
     [exec] #8  0x00007f1ff957f000 in ?? ()
     [exec] #9  0x00007f20010b0d80 in ?? ()
     [exec] #10 0x0000000001737eb0 in ?? ()
     [exec] #11 0x00007f1ff8d6eaa0 in ?? ()
     [exec] #12 0x00007f1ff8d6e9a0 in ?? ()
     [exec] #13 0x00007f20010d2cc0 in ?? ()
     [exec] #14 0x00007f1ff957f000 in ?? ()
     [exec] #15 0x00007f20010b0d80 in ?? ()
     [exec] #16 0x00007f1ff9321140 in ?? ()
     [exec] #17 0x0000000040c02a78 in ?? ()
     [exec] #18 0x00007f1ff8df1aa0 in ?? ()
     [exec] #19 0x0000000040c02594 in ?? ()
     [exec] #20 0x0000000001737eb0 in ?? ()
     [exec] #21 0x00007f1ff8d6e820 in ?? ()
     [exec] #22 0x00007f1ff8d6eb20 in ?? ()
     [exec] #23 0x00007f1ff8d6ed10 in ?? ()
     [exec] #24 0x00007f1ff957f000 in ?? ()
     [exec] #25 0x00007f20010d2cc8 in ?? ()
     [exec] #26 0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 2 (Thread 0x7f1ff8b6a700 (LWP 28931)):
     [exec] #0  0x00007f20004abbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005d703d in _wapi_handle_timedwait_signal_handle (handle=
     [exec]     0x10044, timeout=0x7f1ff8b696f0, alertable=1, poll=-1) at handles.c:1652
     [exec] #2  0x00000000005c0e75 in WaitForSingleObjectEx (handle=<value optimized out>, 
     [exec]     timeout=<value optimized out>, alertable=<value optimized out>)
     [exec]     at wait.c:205
     [exec] #3  0x00000000005c119a in WaitForMultipleObjectsEx (
     [exec]     numobjects=<value optimized out>, handles=<value optimized out>, 
     [exec]     waitall=<value optimized out>, timeout=<value optimized out>, 
     [exec]     alertable=<value optimized out>) at wait.c:579
     [exec] #4  0x00000000005a7488 in wait_for_tids (wait=0x7f1ff8b698b0, timeout=
     [exec]     4294967295) at threads.c:2747
     [exec] #5  0x00000000005aa437 in mono_threads_abort_appdomain_threads (domain=
     [exec]     0x7f1ff98cc990, timeout=-505) at threads.c:3493
     [exec] #6  0x0000000000549991 in unload_thread_main (arg=0x7f1ff8d6e940)
     [exec]     at appdomain.c:2273
     [exec] #7  0x00000000005c31e4 in thread_start_routine (args=0x150e380)
     [exec]     at wthreads.c:287
     [exec] #8  0x00000000005f2fef in GC_start_routine (arg=0x7f1ff9546e38)
     [exec]     at pthread_support.c:1468
     [exec] #9  0x00007f20004a69ca in start_thread () from /lib/libpthread.so.0
     [exec] #10 0x00007f1ffffec70d in clone () from /lib/libc.so.6
     [exec] #11 0x0000000000000000 in ?? ()
     [exec] 
     [exec] Thread 1 (Thread 0x7f200125b760 (LWP 28896)):
     [exec] #0  0x00007f20004abbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
     [exec]    from /lib/libpthread.so.0
     [exec] #1  0x00000000005d703d in _wapi_handle_timedwait_signal_handle (handle=
     [exec]     0x10094, timeout=0x7fffac0ec350, alertable=1, poll=-1) at handles.c:1652
     [exec] #2  0x00000000005c0e75 in WaitForSingleObjectEx (handle=<value optimized out>, 
     [exec]     timeout=<value optimized out>, alertable=<value optimized out>)
     [exec]     at wait.c:205
     [exec] #3  0x00000000005a7d11 in ves_icall_System_Threading_Thread_Join_internal (
     [exec]     this=0x7f1ff3d0e4e0, ms=30000, thread=0x10094) at threads.c:1521
     [exec] #4  0x0000000040c024b0 in ?? ()
     [exec] #5  0x000000000149c0b0 in ?? ()
     [exec] #6  0x00007f20010d2cc0 in ?? ()
     [exec] #7  0x00007f1ff9542840 in ?? ()
     [exec] #8  0x00007f1ff2c5a820 in ?? ()
     [exec] #9  0x00007f1ff9531e70 in ?? ()
     [exec] #10 0x00007fffac0ec4a0 in ?? ()
     [exec] #11 0x00007fffac0ec3c0 in ?? ()
     [exec] #12 0x00007f20010d2cc0 in ?? ()
     [exec] #13 0x00007f1ff9542840 in ?? ()
     [exec] #14 0x00007f1ff2c5a820 in ?? ()
     [exec] #15 0x0000000000007530 in ?? ()
     [exec] #16 0x0000000040c0240c in ?? ()
     [exec] #17 0x00007f1ff2eb8c60 in ?? ()
     [exec] #18 0x00007f1ff8df1aa0 in ?? ()
     [exec] #19 0x00007f1ff3d0e4e0 in ?? ()
     [exec] #20 0x0000000040c02314 in ?? ()
     [exec] #21 0x00007f1ff9581c60 in ?? ()
     [exec] #22 0x00007f1ff957f000 in ?? ()
     [exec] #23 0x00007f1ff2c5a820 in ?? ()
     [exec] #24 0x00007f20010d2cc0 in ?? ()
     [exec] #25 0x00007f1ff9542840 in ?? ()
     [exec] #26 0x0000000000000000 in ?? ()
     [exec] 
     [exec] =================================================================
     [exec] Got a SIGSEGV while executing native code. This usually indicates
     [exec] a fatal error in the mono runtime or one of the native libraries 
     [exec] used by your application.
     [exec] =================================================================
     [exec] 




Expected Results:

Not to crash

How often does this happen? 

Rarely, but a big problem if it happens during production for us.

Additional Information:
Comment 1 Jonathan Shore 2012-01-12 09:03:07 UTC
I should have indicated am running on ubuntu 10.4 (and not 2.10).
Comment 2 Zoltan Varga 2012-01-12 09:23:48 UTC
The crash is at:



#4  0x00000000004db732 in get_generic_info_from_stack_frame (ji=0x7f21d4230638, ctx=
    0x7f21d9805480) at mini-exceptions.c:449
449                     return this_obj->vtable->klass;

Because the method is interrupted too early before 'this_obj' is set.
Comment 3 Jonathan Shore 2012-01-12 09:30:48 UTC
is this a problem in the JIT or bytecode evaluator, interrupted by GC?
Comment 4 Zoltan Varga 2012-01-28 04:29:29 UTC
Fixed in HEAD.