Bug 23038 - Mono Crashes in Application of Multiple AppDomain (SGEN not BOEHM)
Summary: Mono Crashes in Application of Multiple AppDomain (SGEN not BOEHM)
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Runtime
Classification: Mono
Component: GC ()
Version: 4.0.0
Hardware: Other Linux
: --- normal
Target Milestone: ---
Assignee: Mark Probst
URL:
Depends on:
Blocks:
 
Reported: 2014-09-16 06:02 UTC by Narinder
Modified: 2017-09-07 08:36 UTC (History)
6 users (show)

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


Attachments
Stacktrace from Mono 3.6.0 (33.82 KB, text/plain)
2014-09-18 05:12 UTC, Narinder
Details
Stacktrace from Mono 3.8.0 (31.32 KB, text/plain)
2014-09-18 05:13 UTC, Narinder
Details
Stacktrace from Mono commit 80b14d3 (33.59 KB, text/plain)
2014-09-18 05:13 UTC, Narinder
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 NOT_REPRODUCIBLE

Description Narinder 2014-09-16 06:02:06 UTC
Hello,

I have a program that consists of multiple AppDomains each behaving like a worker. When I run the program with 2 AppDomains it crashes but with one it does not. I'm afraid I am struggling with extracting a minimal piece of code that replicates the crash at this stage. However the stackttrace is as follows :
 
Native stacktrace:

	mono() [0x4b03a8]
	mono() [0x508b5f]
	mono() [0x421e27]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0xf030) [0x7fc671f8d030]
	mono() [0x5a85fb]
	mono() [0x581996]
	[0x40efcb4d]

Debug info from gdb:

Mono support loaded.
[New LWP 28381]
[New LWP 28380]
[New LWP 28379]
[New LWP 28378]
[New LWP 28377]
[New LWP 28376]
[New LWP 28375]
[New LWP 28371]
[New LWP 28367]
[New LWP 28365]
[New LWP 28363]
[New LWP 28361]
[New LWP 28358]
[New LWP 28353]
[New LWP 28352]
[New LWP 28351]
[New LWP 28350]
[New LWP 28349]
[New LWP 28348]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fc671f8964b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  Id   Target Id         Frame 
  20   Thread 0x7fc66f4ad700 (LWP 28348) "Finalizer" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  19   Thread 0x7fc66e87b700 (LWP 28349) "mono" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  18   Thread 0x7fc66e56b700 (LWP 28350) "mono" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  17   Thread 0x7fc66e36a700 (LWP 28351) "mono" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  16   Thread 0x7fc66e169700 (LWP 28352) "mono" 0x00007fc671ccf863 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6
  15   Thread 0x7fc66e128700 (LWP 28353) "IO Threadpool w" 0x00007fc671f8b511 in sem_timedwait () from /lib/x86_64-linux-gnu/libpthread.so.0
  14   Thread 0x7fc66e0e7700 (LWP 28358) "Threadpool moni" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  13   Thread 0x7fc66d6ff700 (LWP 28361) "Threadpool work" 0x00007fc671f8cc1d in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0
  12   Thread 0x7fc66d4fe700 (LWP 28363) "Threadpool work" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  11   Thread 0x7fc66d1fc700 (LWP 28365) "Threadpool work" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  10   Thread 0x7fc66cefa700 (LWP 28367) "Threadpool work" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  9    Thread 0x7fc66c3d6700 (LWP 28371) "Threadpool work" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  8    Thread 0x7fc667fff700 (LWP 28375) "Threadpool work" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  7    Thread 0x7fc666ed6700 (LWP 28376) "Threadpool work" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  6    Thread 0x7fc666ad3700 (LWP 28377) "Threadpool work" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  5    Thread 0x7fc6668d2700 (LWP 28378) "Threadpool work" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  4    Thread 0x7fc6665d0700 (LWP 28379) "Threadpool work" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  3    Thread 0x7fc66c5ff700 (LWP 28380) "Threadpool work" 0x00007fc671f8b420 in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
  2    Thread 0x7fc66e0a6700 (LWP 28381) "Threadpool work" 0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
* 1    Thread 0x7fc672a2d780 (LWP 28347) "mono" 0x00007fc671f8964b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

Thread 20 (Thread 0x7fc66f4ad700 (LWP 28348)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc66f4ac900, info=0x1bbe2e0) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc66f4ac900) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f8b41e in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x000000000062c048 in mono_sem_wait (sem=sem@entry=0x978c40 <finalizer_sem>, alertable=alertable@entry=1) at mono-semaphore.c:101
#6  0x00000000005a44fa in finalizer_thread (unused=<optimized out>) at gc.c:1073
#7  0x0000000000587014 in start_wrapper_internal (data=<optimized out>) at threads.c:660
#8  start_wrapper (data=<optimized out>) at threads.c:707
#9  0x0000000000630cb6 in inner_start_thread (arg=0x7ffffe441840) at mono-threads-posix.c:100
#10 0x00007fc671f84b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007fc671ccf20d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 19 (Thread 0x7fc66e87b700 (LWP 28349)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc66e87a2c0, info=0x24c22e0) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc66e87a2c0) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f8964b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x000000000060b352 in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x411, timeout=timeout@entry=0x7fc66e87a800, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1594
#6  0x000000000061e8fc in WaitForSingleObjectEx (handle=0x411, timeout=timeout@entry=500, alertable=alertable@entry=1) at wait.c:196
#7  0x00000000005855ae in mono_wait_uninterrupted (thread=thread@entry=0x7fc671889a30, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=handles@entry=0x7fc66e87a8a8, waitall=waitall@entry=0, ms=ms@entry=500, alertable=1) at threads.c:1356
#8  0x0000000000586949 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=<optimized out>, handle=0x411, ms=500, exitContext=<optimized out>) at threads.c:1488
#9  0x00000000408736a8 in ?? ()
#10 0x00000000024be9a0 in ?? ()
#11 0x00007fc66eb2aec8 in ?? ()
#12 0xffffffff80000000 in ?? ()
#13 0x00007fc66e87a960 in ?? ()
#14 0x00007fc66e87a8d0 in ?? ()
#15 0x0000000000000000 in ?? ()

Thread 18 (Thread 0x7fc66e56b700 (LWP 28350)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc66e56a2c0, info=0x1d5e510) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc66e56a2c0) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f892d2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x000000000060b56b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x4a0, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1596
#6  0x000000000060b59b in _wapi_handle_wait_signal_handle (handle=handle@entry=0x4a0, alertable=alertable@entry=1) at handles.c:1541
#7  0x000000000061eacb in WaitForSingleObjectEx (handle=0x4a0, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x00000000005855ae in mono_wait_uninterrupted (thread=thread@entry=0x7fc66e610dd0, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=handles@entry=0x7fc66e56a878, waitall=waitall@entry=0, ms=ms@entry=-1, alertable=1) at threads.c:1356
#9  0x0000000000586949 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=<optimized out>, handle=0x4a0, ms=-1, exitContext=<optimized out>) at threads.c:1488
#10 0x0000000040686db8 in ?? ()
#11 0x00000000022561e0 in ?? ()
#12 0x00007fc67161ed20 in ?? ()
#13 0x00000000020ff3f0 in ?? ()
#14 0x00007fc66e56a930 in ?? ()
#15 0x00007fc66e56a8a0 in ?? ()
#16 0x00007fc66e56add0 in ?? ()
#17 0x00007fc67161ecf8 in ?? ()
#18 0x00007fc67161ec28 in ?? ()
#19 0xffffffffffffffff in ?? ()
#20 0x0000000040686a9b in ?? ()
#21 0x00007fc67161ecf8 in ?? ()
#22 0x0000000000000000 in ?? ()

Thread 17 (Thread 0x7fc66e36a700 (LWP 28351)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc66e3692c0, info=0x24e4270) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc66e3692c0) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f892d2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x000000000060b56b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x4aa, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1596
#6  0x000000000060b59b in _wapi_handle_wait_signal_handle (handle=handle@entry=0x4aa, alertable=alertable@entry=1) at handles.c:1541
#7  0x000000000061eacb in WaitForSingleObjectEx (handle=0x4aa, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x00000000005855ae in mono_wait_uninterrupted (thread=thread@entry=0x7fc66e611cf0, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=handles@entry=0x7fc66e369878, waitall=waitall@entry=0, ms=ms@entry=-1, alertable=1) at threads.c:1356
#9  0x0000000000586949 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=<optimized out>, handle=0x4aa, ms=-1, exitContext=<optimized out>) at threads.c:1488
#10 0x0000000040f4ddc8 in ?? ()
#11 0x000000000238bed0 in ?? ()
#12 0x00007fc6716baf50 in ?? ()
#13 0x00000000024e41d0 in ?? ()
#14 0x00007fc66e369930 in ?? ()
#15 0x00007fc66e3698a0 in ?? ()
#16 0x00007fc66e369dd0 in ?? ()
#17 0x00007fc6716baf28 in ?? ()
#18 0x00007fc6716bae58 in ?? ()
#19 0xffffffffffffffff in ?? ()
#20 0x0000000040f4daab in ?? ()
#21 0x00007fc6716baf28 in ?? ()
#22 0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7fc66e169700 (LWP 28352)):
#0  0x00007fc671ccf863 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x000000000058a784 in tp_epoll_wait (p=0x9786e0 <socket_io_data>) at ../../mono/metadata/tpool-epoll.c:118
#2  0x0000000000587014 in start_wrapper_internal (data=<optimized out>) at threads.c:660
#3  start_wrapper (data=<optimized out>) at threads.c:707
#4  0x0000000000630cb6 in inner_start_thread (arg=0x7ffffe440eb0) at mono-threads-posix.c:100
#5  0x00007fc671f84b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007fc671ccf20d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7fc66e128700 (LWP 28353)):
#0  0x00007fc671f8b511 in sem_timedwait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x000000000062c12b in mono_sem_timedwait (sem=sem@entry=0x978788 <async_io_tp+40>, timeout_ms=timeout_ms@entry=2000, alertable=alertable@entry=1) at mono-semaphore.c:64
#2  0x000000000058c3aa in async_invoke_thread (data=0x0) at threadpool.c:1566
#3  0x0000000000587014 in start_wrapper_internal (data=<optimized out>) at threads.c:660
#4  start_wrapper (data=<optimized out>) at threads.c:707
#5  0x0000000000630cb6 in inner_start_thread (arg=0x7ffffe440e90) at mono-threads-posix.c:100
#6  0x00007fc671f84b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007fc671ccf20d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7fc66e0e7700 (LWP 28358)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc66e0e6880, info=0x23da0e0) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc66e0e6880) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc6723a1fd4 in clock_nanosleep () from /lib/x86_64-linux-gnu/librt.so.1
#5  0x000000000061fd4a in SleepEx (ms=ms@entry=500, alertable=alertable@entry=1) at wthreads.c:277
#6  0x0000000000589843 in monitor_thread (unused=<optimized out>) at threadpool.c:779
#7  0x0000000000587014 in start_wrapper_internal (data=<optimized out>) at threads.c:660
#8  start_wrapper (data=<optimized out>) at threads.c:707
#9  0x0000000000630cb6 in inner_start_thread (arg=0x7fc66e127be0) at mono-threads-posix.c:100
#10 0x00007fc671f84b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007fc671ccf20d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7fc66d6ff700 (LWP 28361)):
#0  0x00007fc671f8cc1d in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000004b0430 in mono_handle_native_sigsegv (signal=signal@entry=11, ctx=ctx@entry=0x7fc66ea87c40) at mini-exceptions.c:2305
#2  0x0000000000508b5f in mono_arch_handle_altstack_exception (sigctx=sigctx@entry=0x7fc66ea87c40, fault_addr=<optimized out>, stack_ovf=stack_ovf@entry=0) at exceptions-amd64.c:905
#3  0x0000000000421e27 in mono_sigsegv_signal_handler (_dummy=11, info=0x7fc66ea87d70, context=0x7fc66ea87c40) at mini.c:6842
#4  <signal handler called>
#5  mono_string_is_interned_lookup (str="", insert=insert@entry=1) at object.c:5411
#6  0x00000000005afcca in mono_string_intern (str=<optimized out>) at object.c:5467
#7  0x0000000000581996 in ves_icall_System_String_InternalIntern (str=<optimized out>) at string-icalls.c:49
#8  0x0000000040efcb4d in ?? ()
#9  0x0000000002534270 in ?? ()
#10 0x00007fc671624ff0 in ?? ()
#11 0x0000000000000001 in ?? ()
#12 0x00007fc66d6fe240 in ?? ()
#13 0x00007fc66d6fe0e0 in ?? ()
#14 0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7fc66d4fe700 (LWP 28363)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc66d4fd280, info=0x25562e0) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc66d4fd280) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f8c541 in recvfrom () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x0000000000619c48 in _wapi_recvfrom (fd=fd@entry=8, buf=buf@entry=0x7fc66d1fd038, len=len@entry=1048576, recv_flags=0, from=from@entry=0x0, fromlen=fromlen@entry=0x0) at sockets.c:580
#6  0x0000000000619d0b in _wapi_recv (fd=fd@entry=8, buf=buf@entry=0x7fc66d1fd038, len=len@entry=1048576, recv_flags=<optimized out>) at sockets.c:558
#7  0x000000000057abd9 in ves_icall_System_Net_Sockets_Socket_Receive_internal (sock=8, buffer=<optimized out>, offset=0, count=1048576, flags=0, error=0x7fc66d4fd808) at socket-io.c:1481
#8  0x0000000040f5e9ee in ?? ()
#9  0x00000000025561a0 in ?? ()
#10 0x0000000040f5f5ee in ?? ()
#11 0x00007fc671419a50 in ?? ()
#12 0x00007fc671419a50 in ?? ()
#13 0x00007fc66d4fd7a0 in ?? ()
#14 0x00007fc66d1fd018 in ?? ()
#15 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7fc66d1fc700 (LWP 28365)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc66d1fb000, info=0x251d140) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc66d1fb000) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f892d2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x000000000060b56b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x498, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1596
#6  0x000000000060b59b in _wapi_handle_wait_signal_handle (handle=handle@entry=0x498, alertable=alertable@entry=1) at handles.c:1541
#7  0x000000000061eacb in WaitForSingleObjectEx (handle=0x498, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x00000000005855ae in mono_wait_uninterrupted (thread=thread@entry=0x7fc66e612690, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=handles@entry=0x7fc66d1fb5a8, waitall=waitall@entry=0, ms=ms@entry=-1, alertable=1) at threads.c:1356
#9  0x0000000000586949 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=<optimized out>, handle=0x498, ms=-1, exitContext=<optimized out>) at threads.c:1488
#10 0x0000000040686db8 in ?? ()
#11 0x000000000255cce0 in ?? ()
#12 0x00007fc6714ef7c0 in ?? ()
#13 0x0000000002544b60 in ?? ()
#14 0x00007fc66d1fb660 in ?? ()
#15 0x00007fc66d1fb5d0 in ?? ()
#16 0x00007fc66d1fbd68 in ?? ()
#17 0x00007fc6714ef798 in ?? ()
#18 0x00007fc671461eb0 in ?? ()
#19 0xffffffffffffffff in ?? ()
#20 0x0000000040686a9b in ?? ()
#21 0x00007fc6714ef798 in ?? ()
#22 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7fc66cefa700 (LWP 28367)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc66cef9000, info=0x2540d70) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc66cef9000) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f892d2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x000000000060b56b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x48e, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1596
#6  0x000000000060b59b in _wapi_handle_wait_signal_handle (handle=handle@entry=0x48e, alertable=alertable@entry=1) at handles.c:1541
#7  0x000000000061eacb in WaitForSingleObjectEx (handle=0x48e, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x00000000005855ae in mono_wait_uninterrupted (thread=thread@entry=0x7fc66e6127f0, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=handles@entry=0x7fc66cef95a8, waitall=waitall@entry=0, ms=ms@entry=-1, alertable=1) at threads.c:1356
#9  0x0000000000586949 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=<optimized out>, handle=0x48e, ms=-1, exitContext=<optimized out>) at threads.c:1488
#10 0x0000000040f4ddc8 in ?? ()
#11 0x000000000255b2b0 in ?? ()
#12 0x00007fc671404d50 in ?? ()
#13 0x0000000001fde310 in ?? ()
#14 0x00007fc66cef9660 in ?? ()
#15 0x00007fc66cef95d0 in ?? ()
#16 0x00007fc66cef9d68 in ?? ()
#17 0x00007fc671404d28 in ?? ()
#18 0x00007fc67141ade8 in ?? ()
#19 0xffffffffffffffff in ?? ()
#20 0x0000000040f4daab in ?? ()
#21 0x00007fc671404d28 in ?? ()
#22 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7fc66c3d6700 (LWP 28371)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc66c3d5280, info=0x2329a40) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc66c3d5280) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f8c541 in recvfrom () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x0000000000619c48 in _wapi_recvfrom (fd=fd@entry=6, buf=buf@entry=0x7fc665e73038, len=len@entry=1048576, recv_flags=0, from=from@entry=0x0, fromlen=fromlen@entry=0x0) at sockets.c:580
#6  0x0000000000619d0b in _wapi_recv (fd=fd@entry=6, buf=buf@entry=0x7fc665e73038, len=len@entry=1048576, recv_flags=<optimized out>) at sockets.c:558
#7  0x000000000057abd9 in ves_icall_System_Net_Sockets_Socket_Receive_internal (sock=6, buffer=<optimized out>, offset=0, count=1048576, flags=0, error=0x7fc66c3d5808) at socket-io.c:1481
#8  0x000000004069767e in ?? ()
#9  0x00000000025419c0 in ?? ()
#10 0x000000004069827e in ?? ()
#11 0x00007fc671461b28 in ?? ()
#12 0x00007fc671461b28 in ?? ()
#13 0x00007fc66c3d57a0 in ?? ()
#14 0x00007fc665e73018 in ?? ()
#15 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fc667fff700 (LWP 28375)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc667ffe000, info=0x25f0430) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc667ffe000) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f892d2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x000000000060b56b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x4b6, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1596
#6  0x000000000060b59b in _wapi_handle_wait_signal_handle (handle=handle@entry=0x4b6, alertable=alertable@entry=1) at handles.c:1541
#7  0x000000000061eacb in WaitForSingleObjectEx (handle=0x4b6, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x00000000005855ae in mono_wait_uninterrupted (thread=thread@entry=0x7fc66c79cc70, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=handles@entry=0x7fc667ffe5a8, waitall=waitall@entry=0, ms=ms@entry=-1, alertable=1) at threads.c:1356
#9  0x0000000000586949 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=<optimized out>, handle=0x4b6, ms=-1, exitContext=<optimized out>) at threads.c:1488
#10 0x0000000040686db8 in ?? ()
#11 0x00000000025d9180 in ?? ()
#12 0x00007fc671571cc0 in ?? ()
#13 0x0000000002544b60 in ?? ()
#14 0x00007fc667ffe660 in ?? ()
#15 0x00007fc667ffe5d0 in ?? ()
#16 0x00007fc667ffed68 in ?? ()
#17 0x00007fc671571c98 in ?? ()
#18 0x00007fc6714eab18 in ?? ()
#19 0xffffffffffffffff in ?? ()
#20 0x0000000040686a9b in ?? ()
#21 0x00007fc671571c98 in ?? ()
#22 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fc666ed6700 (LWP 28376)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc666ed5280, info=0x26c7710) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc666ed5280) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f8c541 in recvfrom () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x0000000000619c48 in _wapi_recvfrom (fd=fd@entry=11, buf=buf@entry=0x7fc66757b038, len=len@entry=1048576, recv_flags=0, from=from@entry=0x0, fromlen=fromlen@entry=0x0) at sockets.c:580
#6  0x0000000000619d0b in _wapi_recv (fd=fd@entry=11, buf=buf@entry=0x7fc66757b038, len=len@entry=1048576, recv_flags=<optimized out>) at sockets.c:558
#7  0x000000000057abd9 in ves_icall_System_Net_Sockets_Socket_Receive_internal (sock=11, buffer=<optimized out>, offset=0, count=1048576, flags=0, error=0x7fc666ed5808) at socket-io.c:1481
#8  0x000000004069767e in ?? ()
#9  0x00000000026bc130 in ?? ()
#10 0x000000004069827e in ?? ()
#11 0x00007fc6714ea790 in ?? ()
#12 0x00007fc6714ea790 in ?? ()
#13 0x00007fc666ed57a0 in ?? ()
#14 0x00007fc66757b018 in ?? ()
#15 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fc666ad3700 (LWP 28377)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc666ad2000, info=0x26c0210) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc666ad2000) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f892d2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x000000000060b56b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x4ab, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1596
#6  0x000000000060b59b in _wapi_handle_wait_signal_handle (handle=handle@entry=0x4ab, alertable=alertable@entry=1) at handles.c:1541
#7  0x000000000061eacb in WaitForSingleObjectEx (handle=0x4ab, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x00000000005855ae in mono_wait_uninterrupted (thread=thread@entry=0x7fc671888590, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=handles@entry=0x7fc666ad25a8, waitall=waitall@entry=0, ms=ms@entry=-1, alertable=1) at threads.c:1356
#9  0x0000000000586949 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=<optimized out>, handle=0x4ab, ms=-1, exitContext=<optimized out>) at threads.c:1488
#10 0x0000000040f4ddc8 in ?? ()
#11 0x00000000026bc0a0 in ?? ()
#12 0x00007fc67144fe40 in ?? ()
#13 0x0000000001fde310 in ?? ()
#14 0x00007fc666ad2660 in ?? ()
#15 0x00007fc666ad25d0 in ?? ()
#16 0x00007fc666ad2d68 in ?? ()
#17 0x00007fc67144fe18 in ?? ()
#18 0x00007fc67158c528 in ?? ()
#19 0xffffffffffffffff in ?? ()
#20 0x0000000040f4daab in ?? ()
#21 0x00007fc67144fe18 in ?? ()
#22 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fc6668d2700 (LWP 28378)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc6668d1000, info=0x26c17f0) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc6668d1000) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f892d2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x000000000060b56b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x47c, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1596
#6  0x000000000060b59b in _wapi_handle_wait_signal_handle (handle=handle@entry=0x47c, alertable=alertable@entry=1) at handles.c:1541
#7  0x000000000061eacb in WaitForSingleObjectEx (handle=0x47c, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x00000000005855ae in mono_wait_uninterrupted (thread=thread@entry=0x7fc6678f1cf0, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=handles@entry=0x7fc6668d15a8, waitall=waitall@entry=0, ms=ms@entry=-1, alertable=1) at threads.c:1356
#9  0x0000000000586949 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=<optimized out>, handle=0x47c, ms=-1, exitContext=<optimized out>) at threads.c:1488
#10 0x0000000040686db8 in ?? ()
#11 0x00000000026c1630 in ?? ()
#12 0x00007fc6716924c0 in ?? ()
#13 0x0000000002544b60 in ?? ()
#14 0x00007fc6668d1660 in ?? ()
#15 0x00007fc6668d15d0 in ?? ()
#16 0x00007fc6668d1d68 in ?? ()
#17 0x00007fc671692498 in ?? ()
#18 0x00007fc671442818 in ?? ()
#19 0xffffffffffffffff in ?? ()
#20 0x0000000040686a9b in ?? ()
#21 0x00007fc671692498 in ?? ()
#22 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fc6665d0700 (LWP 28379)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc6665cf280, info=0x26c0da0) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc6665cf280) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f8c541 in recvfrom () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x0000000000619c48 in _wapi_recvfrom (fd=fd@entry=19, buf=buf@entry=0x7fc6665d1038, len=len@entry=1048576, recv_flags=0, from=from@entry=0x0, fromlen=fromlen@entry=0x0) at sockets.c:580
#6  0x0000000000619d0b in _wapi_recv (fd=fd@entry=19, buf=buf@entry=0x7fc6665d1038, len=len@entry=1048576, recv_flags=<optimized out>) at sockets.c:558
#7  0x000000000057abd9 in ves_icall_System_Net_Sockets_Socket_Receive_internal (sock=19, buffer=<optimized out>, offset=0, count=1048576, flags=0, error=0x7fc6665cf808) at socket-io.c:1481
#8  0x000000004069767e in ?? ()
#9  0x00000000026c9650 in ?? ()
#10 0x000000004069827e in ?? ()
#11 0x00007fc671442480 in ?? ()
#12 0x00007fc671442480 in ?? ()
#13 0x00007fc6665cf7a0 in ?? ()
#14 0x00007fc6665d1018 in ?? ()
#15 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fc66c5ff700 (LWP 28380)):
#0  0x00007fc671f8b420 in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x000000000062c048 in mono_sem_wait (sem=0x979120 <suspend_ack_semaphore>, alertable=alertable@entry=0) at mono-semaphore.c:101
#2  0x00000000005cb741 in sgen_wait_for_suspend_ack (count=count@entry=17) at sgen-os-posix.c:175
#3  0x00000000005cb869 in sgen_thread_handshake (suspend=suspend@entry=1) at sgen-os-posix.c:209
#4  0x00000000005fec89 in sgen_stop_world (generation=generation@entry=0) at sgen-stw.c:228
#5  0x00000000005d3eb2 in sgen_perform_collection (requested_size=4096, generation_to_collect=0, reason=0x7081cc "Nursery full", wait_to_finish=0) at sgen-gc.c:3154
#6  0x00000000005f0010 in mono_gc_alloc_obj_nolock (vtable=vtable@entry=vtable(%s), size=size@entry=48) at sgen-alloc.c:314
#7  0x00000000005f01fb in mono_gc_alloc_vector (vtable=vtable(%s), size=48, max_length=2) at sgen-alloc.c:520
#8  0x00000000407f92e9 in ?? ()
#9  0x00000000026f8620 in ?? ()
#10 0x000000000000000f in ?? ()
#11 0x00007fc67141ac80 in ?? ()
#12 0x00007fc66c5fdee0 in ?? ()
#13 0x00007fc66c5fde40 in ?? ()
#14 0x00007fc66c5ff6d8 in ?? ()
#15 0x0000000000000030 in ?? ()
#16 0x000000000207fb50 in ?? ()
#17 0x0000000000000002 in ?? ()
#18 0x0000000040595294 in ?? ()
#19 0x00007fc67141acb0 in ?? ()
#20 0x00007fc66c0f07f8 in ?? ()
#21 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fc66e0a6700 (LWP 28381)):
#0  0x00007fc671c258f4 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005cb594 in suspend_thread (context=0x7fc66e0a5280, info=0x2177090) at sgen-os-posix.c:113
#2  suspend_handler (sig=<optimized out>, siginfo=<optimized out>, context=0x7fc66e0a5280) at sgen-os-posix.c:140
#3  <signal handler called>
#4  0x00007fc671f8c541 in recvfrom () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x0000000000619c48 in _wapi_recvfrom (fd=fd@entry=9, buf=buf@entry=0x7fc66772b038, len=len@entry=1048576, recv_flags=0, from=from@entry=0x0, fromlen=fromlen@entry=0x0) at sockets.c:580
#6  0x0000000000619d0b in _wapi_recv (fd=fd@entry=9, buf=buf@entry=0x7fc66772b038, len=len@entry=1048576, recv_flags=<optimized out>) at sockets.c:558
#7  0x000000000057abd9 in ves_icall_System_Net_Sockets_Socket_Receive_internal (sock=9, buffer=<optimized out>, offset=0, count=1048576, flags=0, error=0x7fc66e0a5808) at socket-io.c:1481
#8  0x0000000040f5e9ee in ?? ()
#9  0x0000000002756e00 in ?? ()
#10 0x0000000040f5f5ee in ?? ()
#11 0x00007fc67158c1a0 in ?? ()
#12 0x00007fc67158c1a0 in ?? ()
#13 0x00007fc66e0a57a0 in ?? ()
#14 0x00007fc66772b018 in ?? ()
#15 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc672a2d780 (LWP 28347)):
#0  0x00007fc671f8964b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x000000000060b352 in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x423, timeout=timeout@entry=0x7ffffe441030, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1594
#2  0x000000000061e8fc in WaitForSingleObjectEx (handle=0x423, timeout=timeout@entry=500, alertable=alertable@entry=1) at wait.c:196
#3  0x00000000005855ae in mono_wait_uninterrupted (thread=thread@entry=0x7fc671888010, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=handles@entry=0x7ffffe4410d8, waitall=waitall@entry=0, ms=ms@entry=500, alertable=1) at threads.c:1356
#4  0x0000000000586949 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=<optimized out>, handle=0x423, ms=500, exitContext=<optimized out>) at threads.c:1488
#5  0x00000000408736a8 in ?? ()
#6  0x0000000001bbc4b0 in ?? ()
#7  0x00007fc66e57b760 in ?? ()
#8  0xffffffff80000009 in ?? ()
#9  0x00007ffffe441190 in ?? ()
#10 0x00007ffffe441100 in ?? ()
#11 0x0000000000000000 in ?? ()

=================================================================
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.
=================================================================

Aborted


I am using Mono 3.6.0 on Debian :
Mono JIT compiler version 3.6.0 (mono-3.6.0-branch/370cb22 Tue Aug 26 18:36:03 BST 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen


Could this be related to :

https://bugzilla.xamarin.com/show_bug.cgi?id=15695 



Regards
N
Comment 1 Narinder 2014-09-16 07:01:36 UTC
Hi,

An update.
If I use Boehm via :

   --gc=boehm 

The crash doesn't occur.

Regards
N
Comment 2 Zoltan Varga 2014-09-17 14:53:29 UTC
Please try a newer mono release, 3.8.0 is available for debian:
http://www.mono-project.com/download
Comment 3 Narinder 2014-09-18 05:12:45 UTC
Created attachment 8097 [details]
Stacktrace from  Mono 3.6.0
Comment 4 Narinder 2014-09-18 05:13:07 UTC
Created attachment 8098 [details]
Stacktrace from Mono 3.8.0
Comment 5 Narinder 2014-09-18 05:13:45 UTC
Created attachment 8099 [details]
Stacktrace from  Mono commit 80b14d3
Comment 6 Narinder 2014-09-18 05:16:31 UTC
Hi,

I tried with Mono-3.8.0 (built from git source) & also master as of a couple of days ago.

I observe the same issue, a crash, SIGSEGV. 
I have attached all the stacktraces.

In each case if I use --gc=boehm I no longer have a crash.


Rgds
N
Comment 7 Zoltan Varga 2014-09-18 13:31:32 UTC
So in each case, the crash happens here:

Thread 13 (Thread 0x7fc66d6ff700 (LWP 28361)):
#0  0x00007fc671f8cc1d in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000004b0430 in mono_handle_native_sigsegv (signal=signal@entry=11,
ctx=ctx@entry=0x7fc66ea87c40) at mini-exceptions.c:2305
#2  0x0000000000508b5f in mono_arch_handle_altstack_exception
(sigctx=sigctx@entry=0x7fc66ea87c40, fault_addr=<optimized out>,
stack_ovf=stack_ovf@entry=0) at exceptions-amd64.c:905
#3  0x0000000000421e27 in mono_sigsegv_signal_handler (_dummy=11,
info=0x7fc66ea87d70, context=0x7fc66ea87c40) at mini.c:6842
#4  <signal handler called>
#5  mono_string_is_interned_lookup (str="", insert=insert@entry=1) at
object.c:5411
#6  0x00000000005afcca in mono_string_intern (str=<optimized out>) at
object.c:5467
#7  0x0000000000581996 in ves_icall_System_String_InternalIntern
(str=<optimized out>) at string-icalls.c:49
Comment 8 Narinder 2014-09-18 15:03:32 UTC
That's interesting because initially I was getting exceptions of type NullReferenceException but at non-deterministic locations in my code. On attempting to debug I saw that it always seemed to occur when setting/getting values in a Dictionary<string,*>. Although I could see that the key was a string not equal to a null reference it would always throw a NullReferenceException, very bizarre. Moreover, if I recollect correctly I think the keys were all const strings. As I continued to tweak the code in an effort to hunt down more precisely the cause of the error I eventually hit a full blown SIGSEGV at which point I realised it was somewhat intractable for me and hence the bug report.

If I ran the same code with only one appdomain the crash or the original NullReferenceExceptions failed to occur. This observation, along with the observation that there was no undesired behaviour when choosing to use boehm confirmed to me that I needed to file a bug report.

I'll also add that in my code I do manually intern a collection of strings that are known only at runtime. 


Regards
N
Comment 9 Mark Probst 2014-09-26 13:06:00 UTC
Can you post a test case?
Comment 10 Narinder 2014-10-06 07:31:29 UTC
Hi,
Sorry for the delayed response. 
I am unable to extract a test case and not for the lack of trying. 
I am however willing to build a custom Mono Build and post back the results if that helps.

Rgds
N
Comment 11 Mark Probst 2014-10-06 12:14:56 UTC
Can you provide us with access to a machine on which we can debug?
Comment 12 Narinder 2014-11-26 08:38:06 UTC
Hi,
Are there any intentions to replace the Mono GC with the Microsoft .NET GC ?
Currently we use the workaround by resorting to the use of Boehm.

Thanks
N
Comment 14 Mark Probst 2014-11-26 14:12:26 UTC
How long does the program have to run until it crashes?

Would you be able to do a debugging session with screen sharing with us, via GoToMeeting, or Skype?
Comment 15 Narinder 2015-06-25 05:31:14 UTC
Hi 
I have recently compiled Mono :
Mono JIT compiler version 4.0.2 ((no/c99aa0c Wed Jun 24 13:31:28 BST 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

On Debian :
Linux eqdr-504767 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u2 x86_64 GNU/Linux

I run my code with --gc=bohem and everything works fine. Using the default GC (SGEN) I have the following :

Native stacktrace:

	mono() [0x4aeb08]
	mono() [0x503fbe]
	mono() [0x426f5d]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0xf0a0) [0x7f634d63e0a0]
	mono(mono_string_intern+0x1e) [0x5a502e]
	mono() [0x57b646]
	[0x40e1f552]

Debug info from gdb:

Mono support loaded.
[New LWP 6663]
[New LWP 6651]
[New LWP 6649]
[New LWP 6645]
[New LWP 6644]
[New LWP 6642]
[New LWP 6633]
[New LWP 6629]
[New LWP 6363]
[New LWP 6358]
[New LWP 6357]
[New LWP 6356]
[New LWP 6355]
[New LWP 6354]
[New LWP 6353]
[New LWP 6352]
[New LWP 6351]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f634d63a344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  Id   Target Id         Frame 
  18   Thread 0x7f634a9d3700 (LWP 6351) "Finalizer" 0x00007f634d63c490 in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
  17   Thread 0x7f63499ff700 (LWP 6352) "mono" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  16   Thread 0x7f63497fe700 (LWP 6353) "mono" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  15   Thread 0x7f634957b700 (LWP 6354) "mono" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  14   Thread 0x7f634937a700 (LWP 6355) "mono" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  13   Thread 0x7f6349179700 (LWP 6356) "mono" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  12   Thread 0x7f6349e54700 (LWP 6357) "mono" 0x00007f634d37ffb3 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6
  11   Thread 0x7f6349b73700 (LWP 6358) "IO Threadpool w" 0x00007f634d63c581 in sem_timedwait () from /lib/x86_64-linux-gnu/libpthread.so.0
  10   Thread 0x7f6348ef7700 (LWP 6363) "Threadpool moni" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  9    Thread 0x7f6348cad700 (LWP 6629) "Threadpool work" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  8    Thread 0x7f6348eb2700 (LWP 6633) "Threadpool work" 0x00007f634d63c581 in sem_timedwait () from /lib/x86_64-linux-gnu/libpthread.so.0
  7    Thread 0x7f6341cde700 (LWP 6642) "Threadpool work" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  6    Thread 0x7f6343d77700 (LWP 6644) "Threadpool work" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  5    Thread 0x7f63419dc700 (LWP 6645) "Threadpool work" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  4    Thread 0x7f63487aa700 (LWP 6649) "Threadpool work" 0x00007f634d63c490 in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
  3    Thread 0x7f6341074700 (LWP 6651) "Threadpool work" 0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
  2    Thread 0x7f63485a9700 (LWP 6663) "Threadpool work" 0x00007f634d63dc8d in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0
* 1    Thread 0x7f634e0de760 (LWP 6350) "mono" 0x00007f634d63a344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

Thread 18 (Thread 0x7f634a9d3700 (LWP 6351)):
#0  0x00007f634d63c490 in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x0000000000615138 in mono_sem_wait (sem=sem@entry=0x93b1e0 <finalizer_sem>, alertable=alertable@entry=1) at mono-semaphore.c:101
#2  0x000000000059a4fe in finalizer_thread (unused=<optimized out>) at gc.c:1074
#3  0x000000000057fe18 in start_wrapper_internal (data=<optimized out>) at threads.c:664
#4  start_wrapper (data=<optimized out>) at threads.c:711
#5  0x0000000000619e86 in inner_start_thread (arg=0x7ffedba8ee90) at mono-threads-posix.c:92
#6  0x00007f634d635b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007f634d37f95d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 17 (Thread 0x7f63499ff700 (LWP 6352)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f63499fe140, info=0x1f69760) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f63499fe140) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634d63a342 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x40d, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#6  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x40d, alertable=alertable@entry=1) at handles.c:1547
#7  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x40d, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634a010e30, ms=4294967295) at monitor.c:1089
#9  0x0000000041aff108 in ?? ()
#10 0x0000000001f54a10 in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x00007f6349f53200 in ?? ()
#13 0xffffffffffffffff in ?? ()
#14 0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7f63497fe700 (LWP 6353)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f63497fd1c0, info=0x2268e80) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f63497fd1c0) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634d63a342 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x449, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#6  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x449, alertable=alertable@entry=1) at handles.c:1547
#7  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x449, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634c5c6698, ms=4294967295) at monitor.c:1089
#9  0x0000000040e4c148 in ?? ()
#10 0x000000000000000a in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7f634957b700 (LWP 6354)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f634957a100, info=0x2275fe0) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f634957a100) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634d63a342 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x433, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#6  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x433, alertable=alertable@entry=1) at handles.c:1547
#7  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x433, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634a012c70, ms=4294967295) at monitor.c:1089
#9  0x000000004049d148 in ?? ()
#10 0x00000000022725b0 in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x00007f6349b79bc0 in ?? ()
#13 0x00007f634a012c70 in ?? ()
#14 0xffffffffffffffff in ?? ()
#15 0x00000000022912a0 in ?? ()
#16 0x00007f63407870c0 in ?? ()
#17 0x00007f634957a890 in ?? ()
#18 0x00007f634957a6d0 in ?? ()
#19 0x000000004049cfb1 in ?? ()
#20 0xffffffffffffffff in ?? ()
#21 0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7f634937a700 (LWP 6355)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f6349379100, info=0x1bc1aa0) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f6349379100) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634d63a342 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x43c, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#6  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x43c, alertable=alertable@entry=1) at handles.c:1547
#7  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x43c, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634a013760, ms=4294967295) at monitor.c:1089
#9  0x00000000415f6148 in ?? ()
#10 0x0000000001bc2640 in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x00007f63495b4980 in ?? ()
#13 0x00007f634a013760 in ?? ()
#14 0xffffffffffffffff in ?? ()
#15 0x0000000001bc18c0 in ?? ()
#16 0x00007f6342c7a300 in ?? ()
#17 0x00007f6349379890 in ?? ()
#18 0x00007f63493796d0 in ?? ()
#19 0x00000000415f5fb1 in ?? ()
#20 0xffffffffffffffff in ?? ()
#21 0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f6349179700 (LWP 6356)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f63491781c0, info=0x1d67b10) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f63491781c0) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634d63a342 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x444, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#6  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x444, alertable=alertable@entry=1) at handles.c:1547
#7  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x444, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634c450108, ms=4294967295) at monitor.c:1089
#9  0x000000004165b148 in ?? ()
#10 0x000000000000000a in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f6349e54700 (LWP 6357)):
#0  0x00007f634d37ffb3 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x0000000000583624 in tp_epoll_wait (p=0x93acc0 <socket_io_data>) at ../../mono/metadata/tpool-epoll.c:118
#2  0x000000000057fe18 in start_wrapper_internal (data=<optimized out>) at threads.c:664
#3  start_wrapper (data=<optimized out>) at threads.c:711
#4  0x0000000000619e86 in inner_start_thread (arg=0x7ffedba8e440) at mono-threads-posix.c:92
#5  0x00007f634d635b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f634d37f95d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f6349b73700 (LWP 6358)):
#0  0x00007f634d63c581 in sem_timedwait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x000000000061521b in mono_sem_timedwait (sem=sem@entry=0x93ad48 <async_io_tp+40>, timeout_ms=timeout_ms@entry=2000, alertable=alertable@entry=1) at mono-semaphore.c:64
#2  0x0000000000583caa in async_invoke_thread (data=0x0) at threadpool.c:1673
#3  0x000000000057fe18 in start_wrapper_internal (data=<optimized out>) at threads.c:664
#4  start_wrapper (data=<optimized out>) at threads.c:711
#5  0x0000000000619e86 in inner_start_thread (arg=0x7ffedba8e420) at mono-threads-posix.c:92
#6  0x00007f634d635b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007f634d37f95d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f6348ef7700 (LWP 6363)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f6348ef6880, info=0x229a690) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f6348ef6880) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634da52fd4 in clock_nanosleep () from /lib/x86_64-linux-gnu/librt.so.1
#5  0x000000000060893a in wapi_SleepEx (ms=ms@entry=500, alertable=alertable@entry=1) at wthreads.c:276
#6  0x00000000005821fd in monitor_thread (unused=<optimized out>) at threadpool.c:896
#7  0x000000000057fe18 in start_wrapper_internal (data=<optimized out>) at threads.c:664
#8  start_wrapper (data=<optimized out>) at threads.c:711
#9  0x0000000000619e86 in inner_start_thread (arg=0x7f6349b72c10) at mono-threads-posix.c:92
#10 0x00007f634d635b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007f634d37f95d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f6348cad700 (LWP 6629)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f6348cabf80, info=0x213e580) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f6348cabf80) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634d63a342 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x453, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#6  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x453, alertable=alertable@entry=1) at handles.c:1547
#7  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x453, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634c4dd570, ms=4294967295) at monitor.c:1089
#9  0x0000000040e4c148 in ?? ()
#10 0x000000000000000a in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f6348eb2700 (LWP 6633)):
#0  0x00007f634d63c581 in sem_timedwait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x000000000061521b in mono_sem_timedwait (sem=sem@entry=0x93ae08 <async_tp+40>, timeout_ms=timeout_ms@entry=2000, alertable=alertable@entry=1) at mono-semaphore.c:64
#2  0x0000000000583caa in async_invoke_thread (data=0x0) at threadpool.c:1673
#3  0x000000000057fe18 in start_wrapper_internal (data=<optimized out>) at threads.c:664
#4  start_wrapper (data=<optimized out>) at threads.c:711
#5  0x0000000000619e86 in inner_start_thread (arg=0x7f6348ef6c30) at mono-threads-posix.c:92
#6  0x00007f634d635b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007f634d37f95d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f6341cde700 (LWP 6642)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f6341cdcf80, info=0x20f3910) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f6341cdcf80) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634d63a342 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x4b9, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#6  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x4b9, alertable=alertable@entry=1) at handles.c:1547
#7  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x4b9, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634c7820f0, ms=4294967295) at monitor.c:1089
#9  0x0000000040e4c148 in ?? ()
#10 0x000000000000000a in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f6343d77700 (LWP 6644)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f6343d75f80, info=0x22b66d0) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f6343d75f80) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634d63a342 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x445, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#6  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x445, alertable=alertable@entry=1) at handles.c:1547
#7  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x445, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634c46c310, ms=4294967295) at monitor.c:1089
#9  0x000000004165b148 in ?? ()
#10 0x000000000000000a in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f63419dc700 (LWP 6645)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f63419daf80, info=0x262ac20) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f63419daf80) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634d63a342 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x4dc, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#6  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x4dc, alertable=alertable@entry=1) at handles.c:1547
#7  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x4dc, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634c40a6e8, ms=4294967295) at monitor.c:1089
#9  0x0000000040e4c148 in ?? ()
#10 0x000000000000000a in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f63487aa700 (LWP 6649)):
#0  0x00007f634d63c490 in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x0000000000615138 in mono_sem_wait (sem=0x93b660 <suspend_ack_semaphore>, alertable=alertable@entry=0) at mono-semaphore.c:101
#2  0x00000000005c0571 in sgen_wait_for_suspend_ack (count=count@entry=13) at sgen-os-posix.c:188
#3  0x00000000005c0699 in sgen_thread_handshake (suspend=suspend@entry=1) at sgen-os-posix.c:222
#4  0x00000000005e8db9 in sgen_stop_world (generation=generation@entry=0) at sgen-stw.c:227
#5  0x00000000005c7d91 in sgen_perform_collection (requested_size=2080, generation_to_collect=0, reason=0x6ca40c "Nursery full", wait_to_finish=0) at sgen-gc.c:3210
#6  0x00000000005de1c8 in mono_gc_alloc_obj_nolock (vtable=vtable@entry=vtable(%s), size=size@entry=2080) at sgen-alloc.c:312
#7  0x00000000005de47b in mono_gc_alloc_vector (vtable=vtable(%s), size=2080, max_length=2048) at sgen-alloc.c:534
#8  0x0000000041a813ae in ?? ()
#9  0x00007f634c5834e8 in ?? ()
#10 0x00007f63487aa6d8 in ?? ()
#11 0x0000000000000820 in ?? ()
#12 0x000000000187b160 in ?? ()
#13 0x0000000000000800 in ?? ()
#14 0x00007f63487a8910 in ?? ()
#15 0x00000000000003f4 in ?? ()
#16 0x00007f63487a8520 in ?? ()
#17 0x00007f63487a8480 in ?? ()
#18 0x000000004196b2c8 in ?? ()
#19 0x00007f634c583d08 in ?? ()
#20 0x00007f634c640b90 in ?? ()
#21 0x00007f634c76f278 in ?? ()
#22 0x000000004196ce52 in ?? ()
#23 0x00007f63487a8598 in ?? ()
#24 0x0000000000000402 in ?? ()
#25 0x00007f634c589888 in ?? ()
#26 0x0000000000000800 in ?? ()
#27 0x00007f634c589888 in ?? ()
#28 0x0000000000000800 in ?? ()
#29 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f6341074700 (LWP 6651)):
#0  0x00007f634d2d6514 in sigsuspend () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000005c03e4 in suspend_thread (context=0x7f6341072f80, info=0x243eed0) at sgen-os-posix.c:126
#2  suspend_handler (_dummy=<optimized out>, _info=<optimized out>, context=0x7f6341072f80) at sgen-os-posix.c:153
#3  <signal handler called>
#4  0x00007f634d63a342 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x41b, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#6  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x41b, alertable=alertable@entry=1) at handles.c:1547
#7  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x41b, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#8  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634c759338, ms=4294967295) at monitor.c:1089
#9  0x0000000040e4c148 in ?? ()
#10 0x000000000000000a in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f63485a9700 (LWP 6663)):
#0  0x00007f634d63dc8d in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000004aeb90 in mono_handle_native_sigsegv (signal=signal@entry=11, ctx=ctx@entry=0x7f6348cb1c40, info=info@entry=0x7f6348cb1d70) at mini-exceptions.c:2347
#2  0x0000000000503fbe in mono_arch_handle_altstack_exception (sigctx=sigctx@entry=0x7f6348cb1c40, siginfo=siginfo@entry=0x7f6348cb1d70, fault_addr=<optimized out>, stack_ovf=stack_ovf@entry=0) at exceptions-amd64.c:851
#3  0x0000000000426f5d in mono_sigsegv_signal_handler (_dummy=11, _info=0x7f6348cb1d70, context=0x7f6348cb1c40) at mini.c:6810
#4  <signal handler called>
#5  mono_string_is_interned_lookup (insert=1, str="") at object.c:5462
#6  mono_string_intern (str="") at object.c:5517
#7  0x000000000057b646 in ves_icall_System_String_InternalIntern (str=<optimized out>) at string-icalls.c:47
#8  0x0000000040e1f552 in ?? ()
#9  0x00007f634c4c8f28 in ?? ()
#10 0x00007f634c4c91e0 in ?? ()
#11 0x00007f634c4c8fa0 in ?? ()
#12 0x00007f634c4bb458 in ?? ()
#13 0x00007f6340db4a00 in ?? ()
#14 0x0000000002630fb0 in ?? ()
#15 0x00007f634c4bb458 in ?? ()
#16 0x00007f63485a8210 in ?? ()
#17 0x00007f63485a80a0 in ?? ()
#18 0x0000000040e1f4c0 in ?? ()
#19 0x00007f63495a5dc0 in ?? ()
#20 0x0000000040f28b77 in ?? ()
#21 0x00007f634c4ff2b8 in ?? ()
#22 0x00007f634c743388 in ?? ()
#23 0x40e46d4000000000 in ?? ()
#24 0x00007f634c743388 in ?? ()
#25 0x00007f634c743388 in ?? ()
#26 0x00007f634c4c8fa0 in ?? ()
#27 0x00007f634c4c9018 in ?? ()
#28 0x00007f634c4c8fe8 in ?? ()
#29 0x00007f634c4c8f88 in ?? ()
#30 0x00007f634c4c91e0 in ?? ()
#31 0x00007f6340cb0550 in ?? ()
#32 0x00007f634c728ad8 in ?? ()
#33 0x00007f634c4ec6a0 in ?? ()
#34 0x00007f6343767750 in ?? ()
#35 0x00007f6340c7c890 in ?? ()
#36 0x00007f6343767750 in ?? ()
#37 0x00007f6340c7c890 in ?? ()
#38 0x0000000041c81477 in ?? ()
#39 0x00007f634c4ff3b8 in ?? ()
#40 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f634e0de760 (LWP 6350)):
#0  0x00007f634d63a344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000005f4c4b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x44b, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1602
#2  0x00000000005f4ccb in _wapi_handle_wait_signal_handle (handle=handle@entry=0x44b, alertable=alertable@entry=1) at handles.c:1547
#3  0x000000000060768b in wapi_WaitForSingleObjectEx (handle=handle@entry=0x44b, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#4  0x000000000059d20a in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x7f634a010e40, ms=4294967295) at monitor.c:1089
#5  0x0000000041aff108 in ?? ()
#6  0x00007f6349ca7b38 in ?? ()
#7  0xffffffffffffffff in ?? ()
#8  0x00007f6349f53280 in ?? ()
#9  0xffffffffffffffff in ?? ()
#10 0x0000000000000000 in ?? ()

=================================================================
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.
=================================================================

Aborted
[mono] ~/citrd-csharp/gnp/bin/Debug @
Comment 21 Narinder 2015-06-25 18:09:32 UTC
Well .. that as well of course.
Comment 22 Ludovic Henry 2017-07-12 23:01:00 UTC
Can you still reproduce with latest version of mono? If you can, please reopen and we can maybe schedule a call to come to the bottom of this. Thank you
Comment 23 Narinder 2017-09-07 08:36:47 UTC
I'll try in the next few days to reproduce the problem