Bug 49321 - mono crash condition `jit_tls' not met
Summary: mono crash condition `jit_tls' not met
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: 4.6.0 (C8)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-12-08 15:41 UTC by Jean-Baptiste
Modified: 2017-10-03 09:28 UTC (History)
2 users (show)

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


Attachments
gdb thread_apply_all_bt (61.69 KB, text/plain)
2016-12-08 15:41 UTC, Jean-Baptiste
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 for Bug 49321 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Jean-Baptiste 2016-12-08 15:41:24 UTC
Created attachment 18833 [details]
gdb thread_apply_all_bt

Environnement :
mono-4.6.0.245
CentOS 7.2 x86_64
Server Dell PowerEdge R420

Crash in mono. seems reproductible with the test we run.

* Assertion at mini-exceptions.c:951, condition `jit_tls' not met

Stacktrace:

* Assertion at mini-exceptions.c:956, condition `unwind_options == MONO_UNWIND_NONE' not met



#0  0x00007f5e8aa485f7 in raise () from /lib64/libc.so.6
#1  0x00007f5e8aa49e28 in abort () from /lib64/libc.so.6
#2  0x0000000000665709 in monoeg_log_default_handler (log_domain=<optimized out>, log_level=G_LOG_LEVEL_ERROR, message=<optimized out>, unused_data=<optimized out>) at goutput.c:233
#3  0x000000000066597c in monoeg_g_logv (log_domain=log_domain@entry=0x0, log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7f5de3d98180) at goutput.c:113
#4  0x0000000000665b13 in monoeg_assertion_message (format=<optimized out>) at goutput.c:133
#5  0x00000000004afb6e in mono_walk_stack_full (func=func@entry=0x4adef0 <print_stack_frame_to_stderr>, start_ctx=0x7f5de3d98810, domain=0x1e78430, jit_tls=0x7f5d8414f310, lmf=0x7f5de3d9a098, unwind_options=MONO_UNWIND_LOOKUP_IL_OFFSET, user_data=user_data@entry=0x0) at mini-exceptions.c:956
#6  0x00000000004aff51 in mono_walk_stack_with_state (func=0x4adef0 <print_stack_frame_to_stderr>, state=<optimized out>, unwind_options=<optimized out>, user_data=0x0) at mini-exceptions.c:874
#7  0x00000000004b0048 in mono_walk_stack (func=func@entry=0x4adef0 <print_stack_frame_to_stderr>, options=options@entry=MONO_UNWIND_LOOKUP_IL_OFFSET, user_data=user_data@entry=0x0) at mini-exceptions.c:888
#8  0x00000000004b20b6 in mono_handle_native_sigsegv (signal=6, ctx=<optimized out>, info=<optimized out>) at mini-exceptions.c:2377
#9  <signal handler called>
#10 0x00007f5e8aa485f7 in raise () from /lib64/libc.so.6
#11 0x00007f5e8aa49ce8 in abort () from /lib64/libc.so.6
#12 0x0000000000665709 in monoeg_log_default_handler (log_domain=<optimized out>, log_level=G_LOG_LEVEL_ERROR, message=<optimized out>, unused_data=<optimized out>) at goutput.c:233
#13 0x000000000066597c in monoeg_g_logv (log_domain=log_domain@entry=0x0, log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7f5de3d998d0) at goutput.c:113
#14 0x0000000000665b13 in monoeg_assertion_message (format=<optimized out>) at goutput.c:133
#15 0x00000000004afb89 in mono_walk_stack_full (func=func@entry=0x59f220 <last_managed>, start_ctx=0x7f5d84037ca0, domain=0x1e78430, jit_tls=0x0, lmf=0x7f5d840377d0, unwind_options=MONO_UNWIND_NONE, user_data=user_data@entry=0x7f5de3d99f60) at mini-exceptions.c:951
#16 0x00000000004aff51 in mono_walk_stack_with_state (func=func@entry=0x59f220 <last_managed>, state=<optimized out>, unwind_options=unwind_options@entry=MONO_UNWIND_NONE, user_data=user_data@entry=0x7f5de3d99f60) at mini-exceptions.c:874
#17 0x000000000059f6e0 in mono_thread_info_get_last_managed (info=info@entry=0x7f5d84037ab0) at threads.c:4766
#18 0x000000000059fd03 in async_abort_critical (info=info@entry=0x7f5d84037ab0, ud=ud@entry=0x7f5de3d9a010) at threads.c:4796
#19 0x000000000065ca4e in mono_thread_info_safe_suspend_and_run (id=140038351349504, interrupt_kernel=interrupt_kernel@entry=1, callback=callback@entry=0x59fca0 <async_abort_critical>, user_data=user_data@entry=0x7f5de3d9a010) at mono-threads.c:982
#20 0x000000000059fe7d in async_abort_internal (thread=<optimized out>, install_async_abort=<optimized out>) at threads.c:4831
#21 0x00000000005a226e in ves_icall_System_Threading_Thread_Interrupt_internal (this_obj=<optimized out>) at threads.c:2186
#22 0x0000000040d2d3bb in ?? ()
#23 0x00007f5caaabbdd0 in ?? ()
#24 0x00007f5e841a4180 in ?? ()
#25 0x00007f5e84169780 in ?? ()
#26 0x00007f5e841ed608 in ?? ()
#27 0x00007f5e841ed628 in ?? ()
#28 0x00007f5d8409e4c0 in ?? ()
#29 0x0000000000000000 in ?? ()



(gdb) f 15
#15 0x00000000004afb89 in mono_walk_stack_full (func=func@entry=0x59f220 <last_managed>, start_ctx=0x7f5d84037ca0, domain=0x1e78430, jit_tls=0x0,
    lmf=0x7f5d840377d0, unwind_options=MONO_UNWIND_NONE, user_data=user_data@entry=0x7f5de3d99f60) at mini-exceptions.c:951
951             g_assert (jit_tls);


i have the coredump (18Mo) but it exceeds your file size limit.i'll upload it somewhere if you want
i can compile/test with the last mono 4.8.x if needed
sorry i can not provide any steps to reproduce it...

thanks for your help
Comment 1 Jean-Baptiste 2017-10-03 09:28:30 UTC
still crashing with mono 5.2.0.224

#0  0x00007f350262a1d7 in raise () from /lib64/libc.so.6
#1  0x00007f350262ba08 in abort () from /lib64/libc.so.6
#2  0x000000000067b469 in mono_log_write_logfile (log_domain=<optimized out>, level=<optimized out>, hdr=<optimized out>,
    message=0x7f346802e280 "* Assertion at mini-exceptions.c:1054, condition `unwind_options == MONO_UNWIND_NONE' not met\n") at mono-log-common.c:135
#3  0x000000000068faad in monoeg_g_logv (log_domain=log_domain@entry=0x0, log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=<optimized out>,
    args=args@entry=0x7f34f8ca9e40) at goutput.c:115
#4  0x000000000068fc43 in monoeg_assertion_message (format=<optimized out>) at goutput.c:135
#5  0x00000000004ac50e in mono_walk_stack_full (func=func@entry=0x4aa850 <print_stack_frame_to_stderr>, start_ctx=0x7f34f8caa4d0, domain=0x1b23420,
    jit_tls=0x7f34680341b0, lmf=0x7f34f8cabf78, unwind_options=MONO_UNWIND_LOOKUP_IL_OFFSET, user_data=user_data@entry=0x0) at mini-exceptions.c:1054
#6  0x00000000004ac8e1 in mono_walk_stack_with_state (func=0x4aa850 <print_stack_frame_to_stderr>, state=<optimized out>, unwind_options=<optimized out>,
    user_data=0x0) at mini-exceptions.c:973
#7  0x00000000004ac9d8 in mono_walk_stack (func=func@entry=0x4aa850 <print_stack_frame_to_stderr>, options=options@entry=MONO_UNWIND_LOOKUP_IL_OFFSET,
    user_data=user_data@entry=0x0) at mini-exceptions.c:987
#8  0x00000000004aeb5f in mono_handle_native_crash (signal=0x6b9986 "SIGABRT", ctx=<optimized out>, info=<optimized out>) at mini-exceptions.c:2494
#9  <signal handler called>
#10 0x00007f350262a1d7 in raise () from /lib64/libc.so.6
#11 0x00007f350262b8c8 in abort () from /lib64/libc.so.6
#12 0x000000000067b469 in mono_log_write_logfile (log_domain=<optimized out>, level=<optimized out>, hdr=<optimized out>,
    message=0x7f346802e210 "* Assertion at mini-exceptions.c:1049, condition `jit_tls' not met\n") at mono-log-common.c:135
#13 0x000000000068faad in monoeg_g_logv (log_domain=log_domain@entry=0x0, log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=<optimized out>,
    args=args@entry=0x7f34f8cab790) at goutput.c:115
#14 0x000000000068fc43 in monoeg_assertion_message (format=<optimized out>) at goutput.c:135
#15 0x00000000004ac529 in mono_walk_stack_full (func=func@entry=0x5c3bf0 <last_managed>, start_ctx=0x7f3460000ab0, domain=0x1b23420, jit_tls=0x0,
    lmf=0x7f34600233e0, unwind_options=MONO_UNWIND_NONE, user_data=user_data@entry=0x7f34f8cabe20) at mini-exceptions.c:1049
#16 0x00000000004ac8e1 in mono_walk_stack_with_state (func=func@entry=0x5c3bf0 <last_managed>, state=<optimized out>,
    unwind_options=unwind_options@entry=MONO_UNWIND_NONE, user_data=user_data@entry=0x7f34f8cabe20) at mini-exceptions.c:973
#17 0x00000000005c4400 in mono_thread_info_get_last_managed (info=info@entry=0x7f34600008c0) at threads.c:4760
#18 0x00000000005c4c74 in async_abort_critical (info=info@entry=0x7f34600008c0, ud=ud@entry=0x7f34f8cabed0) at threads.c:4788
#19 0x000000000068671e in mono_thread_info_safe_suspend_and_run (id=139865102956288, interrupt_kernel=interrupt_kernel@entry=1,
    callback=callback@entry=0x5c4c20 <async_abort_critical>, user_data=user_data@entry=0x7f34f8cabed0) at mono-threads.c:981
#20 0x00000000005c4bcc in async_abort_internal (thread=0x7f34b97735b8, install_async_abort=0) at threads.c:4823
#21 0x00000000005c7bb5 in ves_icall_System_Threading_Thread_Interrupt_internal (this_obj=<optimized out>) at threads.c:2344
#22 0x0000000040f9ba48 in ?? ()