Bug 11889 - Runtime crash on mono_thread_exit
Summary: Runtime crash on mono_thread_exit
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-04-22 13:16 UTC by Sean Reque
Modified: 2013-05-17 12:00 UTC (History)
3 users (show)

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

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

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

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

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

Related Links:

Description Sean Reque 2013-04-22 13:16:07 UTC
I encountered a crash in the runtime with a gdb stacktrace similar or identical to that reported in This Novell bug: https://bugzilla.novell.com/show_bug.cgi?id=641931. However, I do not see any activity in this bug or a corresponding entry in the Xamarin bug tracker. Is this issue known or being tracked? I would be happy to attach the mono exe if needed.

Here is my stacktrace for reference:

0  x86_64_fallback_frame_state (context=0x7f60171bcd80, fs=0x7f60171bcc00) at ../../../gcc/config/i386/linux-unwind.h:47
#1  uw_frame_state_for (context=0x7f60171bcd80, fs=0x7f60171bcc00) at ../../../gcc/unwind-dw2.c:1145
#2  0x000000334e2100b9 in _Unwind_Backtrace (trace=0x33422fd560 <backtrace_helper>, trace_argument=0x7f60171bcec0) at ../../../gcc/unwind.inc:290
#3  0x00000033422fd69e in __backtrace (array=<value optimized out>, size=256) at ../sysdeps/ia64/backtrace.c:91
#4  0x000000000048d7ab in mono_handle_native_sigsegv ()
#5  0x0000000000414ee7 in mono_sigsegv_signal_handler ()
#6  <signal handler called>
#7  x86_64_fallback_frame_state (context=0x7f60171be490, fs=0x7f60171be2d0) at ../../../gcc/config/i386/linux-unwind.h:47
#8  uw_frame_state_for (context=0x7f60171be490, fs=0x7f60171be2d0) at ../../../gcc/unwind-dw2.c:1145
#9  0x000000334e210190 in _Unwind_ForcedUnwind_Phase2 (exc=0x7f60171bfd70, context=0x7f60171be490) at ../../../gcc/unwind.inc:155
#10 0x000000334e210254 in _Unwind_ForcedUnwind (exc=0x7f60171bfd70, stop=0x334260dcc0 <unwind_stop>, stop_argument=<value optimized out>) at ../../../gcc/unwind.inc:207
#11 0x000000334260dc80 in __pthread_unwind (buf=<value optimized out>) at unwind.c:130
#12 0x0000003342607f25 in __do_cancel (value=<value optimized out>) at pthreadP.h:265
#13 __pthread_exit (value=<value optimized out>) at pthread_exit.c:30
#14 0x00000000005abba6 in ExitThread ()
#15 0x000000000058ec55 in mono_thread_exit ()
#16 0x000000000048ea05 in mono_handle_exception_internal.clone.0 ()
#17 0x00000000004e2502 in handle_signal_exception ()
#18 0xffffffffffffffff in ?? ()
#19 0x0000000000000000 in ?? ()
Comment 1 Rodrigo Kumpera 2013-05-17 12:00:23 UTC
This is a bug in libgcc that tries to decompile code pointed from the stack. During shutdown mono might have released the memory for that code and libgcc will crash due to that.

Nothing much we can do here.