Skip to content

Instantly share code, notes, and snippets.

@filipnavara
Created March 26, 2019 21:35
Show Gist options
  • Save filipnavara/f653d01e5fe3b890bdbd42014af146ad to your computer and use it in GitHub Desktop.
Save filipnavara/f653d01e5fe3b890bdbd42014af146ad to your computer and use it in GitHub Desktop.
System.Threading.Threads.Tests.ExceptionTests.ThreadInterruptedException_ConstructorTest ...
System.Threading.Threads.Tests.ExceptionTests.ThreadStateException_ConstructorTest ...
System.Threading.Threads.Tests.ThreadExceptionEventArgsTests.ConstructorTest ...
System.Threading.Threads.Tests.ThreadTests.ConstructorTest ...
=================================================================
Native Crash Reporting
=================================================================
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.
=================================================================
=================================================================
Native stacktrace:
=================================================================
(No frames)
=================================================================
Telemetry Dumper:
=================================================================
Pkilling 0x113f155c0 from 0x700007343000
Pkilling 0x700007140000 from 0x700007343000
Entering thread summarizer pause from 0x700007343000
Finished thread summarizer pause from 0x700007343000.
Waiting for dumping threads to resume
=================================================================
External Debugger Dump:
=================================================================
(lldb) command source -s 0 '/tmp/mono-gdb-commands.81811'
Executing commands in '/tmp/mono-gdb-commands.81811'.
(lldb) process attach --pid 81811
Process 81811 stopped
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff5dc9b7de libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`__psynch_cvwait:
-> 0x7fff5dc9b7de <+10>: jae 0x7fff5dc9b7e8 ; <+20>
0x7fff5dc9b7e0 <+12>: movq %rax, %rdi
0x7fff5dc9b7e3 <+15>: jmp 0x7fff5dc983b7 ; cerror_nocancel
0x7fff5dc9b7e8 <+20>: retq
Target 0: (dotnet) stopped.
Executable module set to "/Users/filipnavara/Documents/mono/netcore/tests/System.Threading.Thread.Tests/../../dotnet".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread list
Process 81811 stopped
* thread #1: tid = 0x19fe0c, 0x00007fff5dc9b7de libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #2: tid = 0x19fe0f, 0x00007fff5dc9b7de libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
thread #3: tid = 0x19fe10, 0x00007fff5dc981b6 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
thread #4: tid = 0x19fe16, 0x00007fff5dc9d2d2 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_2813'
(lldb) thread backtrace all
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff5dc9b7de libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff5dd555c6 libsystem_pthread.dylib`_pthread_cond_wait + 775
frame #2: 0x000000010f4cb104 libcoreclr.dylib`mono_os_cond_timedwait(cond=0x00007ffee0adc980, mutex=0x000000010f5d3298, timeout_ms=29979) at mono-os-mutex.c:44 [opt]
frame #3: 0x000000010f4bc774 libcoreclr.dylib`mono_os_event_wait_multiple(events=0x00007ffee0adc9f8, nevents=1, waitall=1, timeout=30000, alertable=1) at os-event-unix.c:201 [opt]
frame #4: 0x000000010f4bc536 libcoreclr.dylib`mono_os_event_wait_one(event=0x00007fefa6f20e50, timeout=<unavailable>, alertable=<unavailable>) at os-event-unix.c:94 [opt]
frame #5: 0x000000010f4d795d libcoreclr.dylib`mono_thread_info_wait_one_handle(thread_handle=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) at mono-threads.c:1983 [opt]
frame #6: 0x000000010f40f810 libcoreclr.dylib`ves_icall_System_Threading_Thread_Join_internal at threads.c:2109 [opt]
frame #7: 0x000000010f40f7e5 libcoreclr.dylib`ves_icall_System_Threading_Thread_Join_internal(thread_handle=<unavailable>, ms=30000, error=0x00007ffee0adcb10) at threads.c:2165 [opt]
frame #8: 0x000000010f3ac52a libcoreclr.dylib`ves_icall_System_Threading_Thread_Join_internal_raw(a0=<unavailable>, a1=<unavailable>, error=0x00007ffee0adcb10) at icall-def.h:1111 [opt]
frame #9: 0x0000000111269b7d
frame #10: 0x000000010fbb8cb3
frame #11: 0x000000010f1ec896 libcoreclr.dylib`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00007ffee0add528, exc=0x00007ffee0add348, error=0x00007ffee0add568) at mini-runtime.c:3189 [opt]
frame #12: 0x000000010f3f10a8 libcoreclr.dylib`mono_runtime_invoke_checked [inlined] do_runtime_invoke(method=0x00007fefa6c34cd8, obj=0x0000000000000000, params=0x00007ffee0add528, exc=<unavailable>, error=0x00007ffee0add568) at object.c:3011 [opt]
frame #13: 0x000000010f3f1072 libcoreclr.dylib`mono_runtime_invoke_checked(method=0x00007fefa6c34cd8, obj=0x0000000000000000, params=0x00007ffee0add528, error=0x00007ffee0add568) at object.c:3179 [opt]
frame #14: 0x000000010f3f759e libcoreclr.dylib`mono_runtime_exec_main_checked [inlined] do_exec_main_checked(method=0x00007fefa6c34cd8, args=<unavailable>, error=0x00007ffee0add568) at object.c:0 [opt]
frame #15: 0x000000010f3f756a libcoreclr.dylib`mono_runtime_exec_main_checked(method=0x00007fefa6c34cd8, args=<unavailable>, error=0x00007ffee0add568) at object.c:5208 [opt]
frame #16: 0x000000010f247d80 libcoreclr.dylib`mono_jit_exec at driver.c:1320 [opt]
frame #17: 0x000000010f247d72 libcoreclr.dylib`mono_jit_exec(domain=<unavailable>, assembly=<unavailable>, argc=1, argv=0x00007fefa6e09e78) at driver.c:1265 [opt]
frame #18: 0x000000010f24ad53 libcoreclr.dylib`mono_main [inlined] main_thread_handler at driver.c:1397 [opt]
frame #19: 0x000000010f24ad1d libcoreclr.dylib`mono_main(argc=4, argv=<unavailable>) at driver.c:2613 [opt]
frame #20: 0x000000010f2eb794 libcoreclr.dylib`coreclr_execute_assembly(hostHandle=<unavailable>, domainId=<unavailable>, argc=0, argv=0x0000000000000000, managedAssemblyPath=<unavailable>, exitCode=0x00007ffee0addb14) at main-core.c:257 [opt]
frame #21: 0x000000010f1b0a00 libhostpolicy.dylib`___lldb_unnamed_symbol350$$libhostpolicy.dylib + 2640
frame #22: 0x000000010f1b1859 libhostpolicy.dylib`___lldb_unnamed_symbol356$$libhostpolicy.dylib + 153
frame #23: 0x000000010f16fb14 libhostfxr.dylib`___lldb_unnamed_symbol465$$libhostfxr.dylib + 4116
frame #24: 0x000000010f170eeb libhostfxr.dylib`___lldb_unnamed_symbol468$$libhostfxr.dylib + 251
frame #25: 0x000000010f170451 libhostfxr.dylib`___lldb_unnamed_symbol466$$libhostfxr.dylib + 321
frame #26: 0x000000010f164ce2 libhostfxr.dylib`___lldb_unnamed_symbol409$$libhostfxr.dylib + 130
frame #27: 0x000000010f12ac17 dotnet`___lldb_unnamed_symbol123$$dotnet + 1239
frame #28: 0x000000010f12ae8f dotnet`___lldb_unnamed_symbol124$$dotnet + 143
frame #29: 0x00007fff5db5eed9 libdyld.dylib`start + 1
thread #2, name = 'SGen worker'
frame #0: 0x00007fff5dc9b7de libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff5dd55593 libsystem_pthread.dylib`_pthread_cond_wait + 724
frame #2: 0x000000010f4b95f3 libcoreclr.dylib`thread_func [inlined] mono_os_cond_wait(cond=<unavailable>, mutex=<unavailable>) at mono-os-mutex.h:177 [opt]
frame #3: 0x000000010f4b95e0 libcoreclr.dylib`thread_func at sgen-thread-pool.c:165 [opt]
frame #4: 0x000000010f4b95cd libcoreclr.dylib`thread_func(data=0x0000000000000000) at sgen-thread-pool.c:196 [opt]
frame #5: 0x00007fff5dd52305 libsystem_pthread.dylib`_pthread_body + 126
frame #6: 0x00007fff5dd5526f libsystem_pthread.dylib`_pthread_start + 70
frame #7: 0x00007fff5dd51415 libsystem_pthread.dylib`thread_start + 13
thread #3, name = 'Finalizer'
frame #0: 0x00007fff5dc981b6 libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x000000010f462a46 libcoreclr.dylib`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:84 [opt]
frame #2: 0x000000010f462a3b libcoreclr.dylib`finalizer_thread at mono-coop-semaphore.h:41 [opt]
frame #3: 0x000000010f462a21 libcoreclr.dylib`finalizer_thread(unused=<unavailable>) at gc.c:969 [opt]
frame #4: 0x000000010f415e20 libcoreclr.dylib`start_wrapper_internal(start_info=<unavailable>, stack_ptr=<unavailable>) at threads.c:1220 [opt]
frame #5: 0x000000010f415c87 libcoreclr.dylib`start_wrapper(data=0x00007fefa6f06330) at threads.c:1293 [opt]
frame #6: 0x00007fff5dd52305 libsystem_pthread.dylib`_pthread_body + 126
frame #7: 0x00007fff5dd5526f libsystem_pthread.dylib`_pthread_start + 70
frame #8: 0x00007fff5dd51415 libsystem_pthread.dylib`thread_start + 13
thread #4, name = 'tid_2813'
frame #0: 0x00007fff5dc9d2d2 libsystem_kernel.dylib`__wait4 + 10
frame #1: 0x000000010f2ead0b libcoreclr.dylib`mono_dump_native_crash_info at mini-posix.c:1115 [opt]
frame #2: 0x000000010f2eaa69 libcoreclr.dylib`mono_dump_native_crash_info(signal="SIGSEGV", ctx=<unavailable>, info=<unavailable>) at mini-posix.c:1157 [opt]
frame #3: 0x000000010f289d65 libcoreclr.dylib`mono_handle_native_crash(signal="SIGSEGV", ctx=0x000000011127df48, info=0x000000011127dee0) at mini-exceptions.c:3336 [opt]
frame #4: 0x000000010f1e99b8 libcoreclr.dylib`mono_sigsegv_signal_handler_debug(_dummy=11, _info=0x000000011127dee0, context=0x000000011127df48, debug_fault_addr=0x0000700006352b58) at mini-runtime.c:3367 [opt]
frame #5: 0x00007fff5dd49b3d libsystem_platform.dylib`_sigtramp + 29
frame #6: 0x0000000111269eac
frame #7: 0x000000011126a431
(lldb) detach
Process 81811 detached
(lldb) quit
=================================================================
Basic Fault Adddress Reporting
=================================================================
Memory around native instruction pointer (0x111269eab):0x111269e9b 2d 48 8b 45 d0 48 83 c0 0f 48 83 e0 f0 48 2b e0 -H.E.H...H...H+.
0x111269eab 51 57 48 c1 e8 03 48 8b c8 48 33 c0 48 8d 7c 24 QWH...H..H3.H.|$
0x111269ebb 10 fc f3 48 ab 5f 59 48 8b c4 48 89 45 d0 4c 8b ...H._YH..H.E.L.
0x111269ecb 6d d0 45 33 e4 e9 47 00 00 00 66 66 90 48 b8 28 m.E3..G...ff.H.(
=================================================================
Managed Stacktrace:
=================================================================
at <>c__DisplayClass2_0:<ConstructorTest>b__1 <0x0008b>
at <>c__DisplayClass2_0:<ConstructorTest>b__5 <0x00050>
at System.Threading.Thread:StartCallback <0x000c1>
at System.Object:runtime_invoke_void__this__ <0x000b0>
=================================================================
/bin/sh: line 1: 81811 Abort trap: 6 MONO_PATH=bin/Debug/netcoreapp3.0 MONO_ENV_OPTIONS="--debug --explicit-null-checks" COMPlus_DebugWriteToStdErr=1 ../../dotnet bin/Debug/netcoreapp3.0/System.Threading.Thread.Tests-runner.dll
make: *** [run-System.Threading.Thread.Tests] Error 134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment