Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native crash when debugging with exception watchpoint #10412

Closed
baulig opened this issue Aug 31, 2018 · 1 comment

Comments

@baulig
Copy link
Member

@baulig baulig commented Aug 31, 2018

Using latest master, debugging a simple console application with an exception catchpoint crashes.

To reproduce, create a simple Console project in VSMac and make it throw an exception like for instance

using System;

namespace ExceptionTest
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			Console.WriteLine ("Hello World!");
			throw new InvalidTimeZoneException ("Which time is it on the moon?");
		}
	}
}

Then do Run / New Exception Catchpoint in VSMac, add a catch for "System.Exception".

Then hit run.

You will get this:

Loaded assembly: /Users/martin/Projects/ExceptionTest/bin/Debug/ExceptionTest.exe
Hello World!
* Assertion at debugger-agent.c:1641, condition `*endbuf <= limit' not met

Stacktrace:

Memory around native instruction pointer (0x7fff64dc4b6e):
0x7fff64dc4b5e  ff ff c3 90 90 90 b8 48 01 00 02 49 89 ca 0f 05  .......H...I....
0x7fff64dc4b6e  73 08 48 89 c7 e9 88 6f ff ff c3 90 90 90 b8 4c  s.H....o.......L
0x7fff64dc4b7e  01 00 02 49 89 ca 0f 05 73 08 48 89 c7 e9 70 6f  ...I....s.H...po
0x7fff64dc4b8e  ff ff c3 90 90 90 b8 49 01 00 02 49 89 ca 0f 05  .......I...I....

Native stacktrace:

	0   mono                                0x00000001020f4c2b mono_dump_native_crash_info + 923
	1   mono                                0x000000010209ab33 mono_handle_native_crash + 195
	2   libsystem_platform.dylib            0x00007fff64f82f5a _sigtramp + 26
	3   ???                                 0x000000010f7a7778 0x0 + 4554651512
	4   libsystem_c.dylib                   0x00007fff64d201ae abort + 127
	5   mono                                0x00000001022c7b10 mono_log_close_logfile + 0
	6   mono                                0x00000001022e3982 monoeg_assertion_message + 194
	7   mono                                0x0000000102140405 type_commands_internal + 10901
	8   mono                                0x0000000102134b7f debugger_thread + 4159
	9   mono                                0x000000010221532a start_wrapper + 810
	10  libsystem_pthread.dylib             0x00007fff64f8c661 _pthread_body + 340
	11  libsystem_pthread.dylib             0x00007fff64f8c50d _pthread_body + 0
	12  libsystem_pthread.dylib             0x00007fff64f8bbf9 thread_start + 13
Entering thread summarizer from 700004142000
Entering thread summarizer from 7fff9d2a1380
Self-reporting for thread 7fff9d2a1380. Registered summarizing thread right now is 7fff9d2a1380
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_MUTATE_SHARED
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_MUTATE_SHARED
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_MUTATE_SHARED
. Thread state: 0x0
Waiting for signalled thread 7fff9d2a1380 to collect stacktrace. Status: MONO_SUMMARY_MUTATE_SHARED
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXPECT
. Thread state: 0x0
Entering thread summarizer from 700003f3f000
Self-reporting for thread 700003f3f000. Registered summarizing thread right now is 700003f3f000
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EXAMINE
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_MUTATE_SHARED
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_MUTATE_SHARED
. Thread state: 0x0
Waiting for signalled thread 700003f3f000 to collect stacktrace. Status: MONO_SUMMARY_EMPTY
. Thread state: 0x0
Self-reporting for thread 700004142000. Registered summarizing thread right now is 700004142000

Debug info from gdb:

(lldb) command source -s 0 '/tmp/mono-gdb-commands.WObf4C'
Executing commands in '/tmp/mono-gdb-commands.WObf4C'.
(lldb) process attach --pid 92342
Process 92342 stopped
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff64dc4d8a libsystem_kernel.dylib`__semwait_signal + 10
libsystem_kernel.dylib`__semwait_signal:
->  0x7fff64dc4d8a <+10>: jae    0x7fff64dc4d94            ; <+20>
    0x7fff64dc4d8c <+12>: movq   %rax, %rdi
    0x7fff64dc4d8f <+15>: jmp    0x7fff64dbbb25            ; cerror
    0x7fff64dc4d94 <+20>: retq   
Target 0: (mono) stopped.

Executable module set to "/Workspace/MASTER/bin/mono".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread list
Process 92342 stopped
* thread #1: tid = 0x8cdd48, 0x00007fff64dc4d8a libsystem_kernel.dylib`__semwait_signal + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  thread #2: tid = 0x8cdd4a, 0x00007fff64dc4a1e libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
  thread #3: tid = 0x8cdd4c, 0x00007fff64dc4d8a libsystem_kernel.dylib`__semwait_signal + 10, name = 'Finalizer'
  thread #4: tid = 0x8cdd4d, 0x00007fff64dc5232 libsystem_kernel.dylib`__wait4 + 10, name = 'Debugger agent'
  thread #5: tid = 0x8cdd51, 0x00007fff64dc5292 libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #6: tid = 0x8cdd52, 0x00007fff64dc5292 libsystem_kernel.dylib`__workq_kernreturn + 10
(lldb) thread backtrace all
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff64dc4d8a libsystem_kernel.dylib`__semwait_signal + 10
    frame #1: 0x00007fff64d3f724 libsystem_c.dylib`nanosleep + 199
    frame #2: 0x00007fff64d3f586 libsystem_c.dylib`sleep + 41
    frame #3: 0x0000000102214dda mono`mono_threads_summarize(ctx=<unavailable>, out=0x00007ffeedc198a8, hashes=0x00007ffeedc19898) at threads.c:6296 [opt]
    frame #4: 0x00000001020f3ad5 mono`sigterm_signal_handler(_dummy=15, _info=0x00007ffeedc19d08, context=0x00007ffeedc19d70) at mini-posix.c:240 [opt]
    frame #5: 0x00007fff64f82f5a libsystem_platform.dylib`_sigtramp + 26
    frame #6: 0x00007fff64dc4a1f libsystem_kernel.dylib`__psynch_cvwait + 11
    frame #7: 0x00007fff64f8d589 libsystem_pthread.dylib`_pthread_cond_wait + 732
    frame #8: 0x000000010212d79b mono`suspend_current [inlined] mono_os_cond_wait(cond=0x00000001023b7ac0, mutex=0x00000001023b7a78) at mono-os-mutex.h:173 [opt]
    frame #9: 0x000000010212d790 mono`suspend_current at mono-coop-mutex.h:90 [opt]
    frame #10: 0x000000010212d767 mono`suspend_current at debugger-agent.c:2984 [opt]
    frame #11: 0x00000001021337c1 mono`process_event(event=<unavailable>, arg=<unavailable>, il_offset=<unavailable>, ctx=0x000000000000002a, events=<unavailable>, suspend_policy=2) at debugger-agent.c:3849 [opt]
    frame #12: 0x000000010212b626 mono`debugger_agent_handle_exception(exc=0x00007fd7d090b610, throw_ctx=0x00007ffeedc1ac10, catch_ctx=0x00007ffeedc1a6b0, catch_frame=0x00007ffeedc1a450) at debugger-agent.c:5029 [opt]
    frame #13: 0x000000010209a0fe mono`mono_handle_exception_internal(ctx=<unavailable>, obj=0x0000000102807d98, resume=<unavailable>, out_ji=<unavailable>) at mini-exceptions.c:0 [opt]
    frame #14: 0x0000000102098759 mono`mono_handle_exception(ctx=<unavailable>, obj=<unavailable>) at mini-exceptions.c:2728 [opt]
    frame #15: 0x00000001020eea23 mono`mono_amd64_throw_exception(dummy1=<unavailable>, dummy2=<unavailable>, dummy3=<unavailable>, dummy4=<unavailable>, dummy5=<unavailable>, dummy6=<unavailable>, mctx=0x00007ffeedc1ae40, exc=0x0000000102807d98, rethrow=0) at exceptions-amd64.c:401 [opt]
    frame #16: 0x0000000102512827
    frame #17: 0x0000000101ff5ad6 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00007ffeedc1b298, exc=0x0000000000000000, error=0x00007ffeedc1b2d0) at mini-runtime.c:3137 [opt]
    frame #18: 0x00000001021e94f8 mono`mono_runtime_invoke_checked [inlined] do_runtime_invoke(method=0x00007fd7cf50d648, obj=0x0000000000000000, params=0x00007ffeedc1b298, exc=<unavailable>, error=0x00007ffeedc1b2d0) at object.c:2961 [opt]
    frame #19: 0x00000001021e94c2 mono`mono_runtime_invoke_checked(method=0x00007fd7cf50d648, obj=0x0000000000000000, params=0x00007ffeedc1b298, error=0x00007ffeedc1b2d0) at object.c:3129 [opt]
    frame #20: 0x00000001021f0b2e mono`mono_runtime_exec_main_checked at object.c:4967 [opt]
    frame #21: 0x00000001021f0afa mono`mono_runtime_exec_main_checked(method=0x00007fd7cf50d648, args=<unavailable>, error=0x00007ffeedc1b2d0) at object.c:5070 [opt]
    frame #22: 0x000000010205948d mono`mono_jit_exec at driver.c:1231 [opt]
    frame #23: 0x000000010205947f mono`mono_jit_exec(domain=<unavailable>, assembly=<unavailable>, argc=1, argv=0x00007ffeedc1b688) at driver.c:1190 [opt]
    frame #24: 0x000000010205c6ec mono`mono_main [inlined] main_thread_handler at driver.c:1308 [opt]
    frame #25: 0x000000010205c6b8 mono`mono_main(argc=<unavailable>, argv=<unavailable>) at driver.c:2452 [opt]
    frame #26: 0x0000000101fe540a mono`main [inlined] mono_main_with_options(argc=<unavailable>, argv=<unavailable>) at main.c:50 [opt]
    frame #27: 0x0000000101fe53f6 mono`main(argc=4, argv=<unavailable>) at main.c:405 [opt]
    frame #28: 0x00007fff64c74015 libdyld.dylib`start + 1
  thread #2, name = 'SGen worker'
    frame #0: 0x00007fff64dc4a1e libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff64f8d589 libsystem_pthread.dylib`_pthread_cond_wait + 732
    frame #2: 0x00000001022be76e mono`thread_func [inlined] mono_os_cond_wait(mutex=<unavailable>) at mono-os-mutex.h:173 [opt]
    frame #3: 0x00000001022be75b mono`thread_func at sgen-thread-pool.c:165 [opt]
    frame #4: 0x00000001022be605 mono`thread_func(data=0x0000000000000000) at sgen-thread-pool.c:196 [opt]
    frame #5: 0x00007fff64f8c661 libsystem_pthread.dylib`_pthread_body + 340
    frame #6: 0x00007fff64f8c50d libsystem_pthread.dylib`_pthread_start + 377
    frame #7: 0x00007fff64f8bbf9 libsystem_pthread.dylib`thread_start + 13
  thread #3, name = 'Finalizer'
    frame #0: 0x00007fff64dc4d8a libsystem_kernel.dylib`__semwait_signal + 10
    frame #1: 0x00007fff64d3f724 libsystem_c.dylib`nanosleep + 199
    frame #2: 0x00007fff64d3f586 libsystem_c.dylib`sleep + 41
    frame #3: 0x0000000102214dda mono`mono_threads_summarize(ctx=<unavailable>, out=0x0000700003f3e7f8, hashes=0x0000700003f3e7e8) at threads.c:6296 [opt]
    frame #4: 0x00000001020f3ad5 mono`sigterm_signal_handler(_dummy=15, _info=0x0000700003f3ec58, context=0x0000700003f3ecc0) at mini-posix.c:240 [opt]
    frame #5: 0x00007fff64f82f5a libsystem_platform.dylib`_sigtramp + 26
    frame #6: 0x00007fff64dbb247 libsystem_kernel.dylib`semaphore_wait_trap + 11
    frame #7: 0x0000000102267976 mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:90 [opt]
    frame #8: 0x000000010226796b mono`finalizer_thread at mono-coop-semaphore.h:43 [opt]
    frame #9: 0x0000000102267951 mono`finalizer_thread(unused=<unavailable>) at gc.c:921 [opt]
    frame #10: 0x000000010221532a mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1176 [opt]
    frame #11: 0x0000000102215223 mono`start_wrapper(data=<unavailable>) at threads.c:1236 [opt]
    frame #12: 0x00007fff64f8c661 libsystem_pthread.dylib`_pthread_body + 340
    frame #13: 0x00007fff64f8c50d libsystem_pthread.dylib`_pthread_start + 377
    frame #14: 0x00007fff64f8bbf9 libsystem_pthread.dylib`thread_start + 13
  thread #4, name = 'Debugger agent'
    frame #0: 0x00007fff64dc5232 libsystem_kernel.dylib`__wait4 + 10
    frame #1: 0x00000001020f4d47 mono`mono_dump_native_crash_info at mini-posix.c:1080 [opt]
    frame #2: 0x00000001020f4bfd mono`mono_dump_native_crash_info(signal="SIGABRT", ctx=0x0000700004141680, info=<unavailable>) at mini-posix.c:1103 [opt]
    frame #3: 0x000000010209ab33 mono`mono_handle_native_crash(signal="SIGABRT", ctx=0x0000700004141680, info=0x0000700004141618) at mini-exceptions.c:3008 [opt]
    frame #4: 0x00007fff64f82f5a libsystem_platform.dylib`_sigtramp + 26
    frame #5: 0x00007fff64dc4b6f libsystem_kernel.dylib`__pthread_kill + 11
    frame #6: 0x00007fff64f8f080 libsystem_pthread.dylib`pthread_kill + 333
    frame #7: 0x00007fff64d201ae libsystem_c.dylib`abort + 127
    frame #8: 0x00000001022c7b10 mono`mono_log_write_logfile(log_domain=<unavailable>, level=<unavailable>, hdr=<unavailable>, message=<unavailable>) at mono-log-common.c:135 [opt]
    frame #9: 0x00000001022e3982 mono`monoeg_assertion_message [inlined] monoeg_g_logstr(log_domain=<unavailable>, log_level=G_LOG_LEVEL_ERROR, msg=<unavailable>) at goutput.c:117 [opt]
    frame #10: 0x00000001022e3958 mono`monoeg_assertion_message [inlined] monoeg_g_logv_nofree(log_domain=<unavailable>, log_level=G_LOG_LEVEL_ERROR, format=<unavailable>, args=0x0000003000000020) at goutput.c:128 [opt]
    frame #11: 0x00000001022e3944 mono`monoeg_assertion_message(format=<unavailable>) at goutput.c:163 [opt]
    frame #12: 0x0000000102140405 mono`type_commands_internal [inlined] decode_int(buf=<unavailable>, limit=<unavailable>) at debugger-agent.c:1641 [opt]
    frame #13: 0x00000001021403e4 mono`type_commands_internal [inlined] decode_id at debugger-agent.c:1660 [opt]
    frame #14: 0x00000001021403e4 mono`type_commands_internal [inlined] decode_objid at debugger-agent.c:2083 [opt]
    frame #15: 0x00000001021403e4 mono`type_commands_internal(command=8, klass=0x00007fd7cf811610, domain=0x00007fd7d091c3b0, p="", end=<unavailable>, buf=0x00007fd7d091c3b4) at debugger-agent.c:7717 [opt]
    frame #16: 0x0000000102134b7f mono`debugger_thread [inlined] type_commands(command=<unavailable>, p=<unavailable>, end=<unavailable>, buf=0x00007fd7d091c2a0) at debugger-agent.c:7987 [opt]
    frame #17: 0x0000000102134ad6 mono`debugger_thread(arg=<unavailable>) at debugger-agent.c:9562 [opt]
    frame #18: 0x000000010221532a mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1176 [opt]
    frame #19: 0x0000000102215223 mono`start_wrapper(data=<unavailable>) at threads.c:1236 [opt]
    frame #20: 0x00007fff64f8c661 libsystem_pthread.dylib`_pthread_body + 340
    frame #21: 0x00007fff64f8c50d libsystem_pthread.dylib`_pthread_start + 377
    frame #22: 0x00007fff64f8bbf9 libsystem_pthread.dylib`thread_start + 13
  thread #5
    frame #0: 0x00007fff64dc5292 libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff64f8c009 libsystem_pthread.dylib`_pthread_wqthread + 1035
    frame #2: 0x00007fff64f8bbe9 libsystem_pthread.dylib`start_wqthread + 13
  thread #6
    frame #0: 0x00007fff64dc5292 libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff64f8c20e libsystem_pthread.dylib`_pthread_wqthread + 1552
    frame #2: 0x00007fff64f8bbe9 libsystem_pthread.dylib`start_wqthread + 13
(lldb) detach
Process 92342 detached
(lldb) quit

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Mono.Debugger.Soft.VMDisconnectedException: Exception of type 'Mono.Debugger.Soft.VMDisconnectedException' was thrown.
  at Mono.Debugger.Soft.Connection.SendReceive (Mono.Debugger.Soft.Connection+CommandSet command_set, System.Int32 command, Mono.Debugger.Soft.Connection+PacketWriter packet) [0x000f4] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs:1568 
  at Mono.Debugger.Soft.Connection.Type_GetMethodsByNameFlags (System.Int64 id, System.String name, System.Int32 flags, System.Boolean ignoreCase) [0x00010] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs:2265 
  at Mono.Debugger.Soft.TypeMirror.GetMethodsByNameFlags (System.String name, System.Reflection.BindingFlags flags, System.Boolean ignoreCase) [0x00019] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeMirror.cs:733 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.GetMethodsByName (Mono.Debugging.Soft.SoftEvaluationContext ctx, Mono.Debugger.Soft.TypeMirror type, System.String methodName) [0x00055] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:2414 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.OverloadResolveMulti (Mono.Debugging.Soft.SoftEvaluationContext ctx, Mono.Debugger.Soft.TypeMirror type, System.String methodName, Mono.Debugging.Soft.SoftDebuggerAdaptor+ArgumentType[] genericTypeArgs, Mono.Debugger.Soft.TypeMirror returnType, Mono.Debugging.Soft.SoftDebuggerAdaptor+ArgumentType[] argTypes, System.Boolean allowInstance, System.Boolean allowStatic, System.Boolean throwIfNotFound, System.Boolean tryCasting) [0x0000d] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:2435 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.OverloadResolve (Mono.Debugging.Soft.SoftEvaluationContext ctx, Mono.Debugger.Soft.TypeMirror type, System.String methodName, Mono.Debugging.Soft.SoftDebuggerAdaptor+ArgumentType[] genericTypeArgs, Mono.Debugger.Soft.TypeMirror returnType, Mono.Debugging.Soft.SoftDebuggerAdaptor+ArgumentType[] argTypes, System.Boolean allowInstance, System.Boolean allowStatic, System.Boolean throwIfNotFound, System.Boolean tryCasting) [0x00000] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:2396 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.OverloadResolve (Mono.Debugging.Soft.SoftEvaluationContext ctx, Mono.Debugger.Soft.TypeMirror type, System.String methodName, Mono.Debugging.Soft.SoftDebuggerAdaptor+ArgumentType[] genericTypeArgs, Mono.Debugging.Soft.SoftDebuggerAdaptor+ArgumentType[] argTypes, System.Boolean allowInstance, System.Boolean allowStatic, System.Boolean throwIfNotFound, System.Boolean tryCasting) [0x00000] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:2391 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.CallToString (Mono.Debugging.Evaluation.EvaluationContext ctx, System.Object obj) [0x000d2] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:165 
  at Mono.Debugging.Evaluation.ObjectValueAdaptor.TargetObjectToObject (Mono.Debugging.Evaluation.EvaluationContext ctx, System.Object obj) [0x00348] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging/Mono.Debugging.Evaluation/ObjectValueAdaptor.cs:1171 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.TargetObjectToObject (Mono.Debugging.Evaluation.EvaluationContext ctx, System.Object obj) [0x001f8] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:2696 
  at Mono.Debugging.Evaluation.ExpressionEvaluator.TargetObjectToExpression (Mono.Debugging.Evaluation.EvaluationContext ctx, System.Object obj) [0x00000] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging/Mono.Debugging.Evaluation/ExpressionEvaluator.cs:86 
  at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValueImpl (Mono.Debugging.Evaluation.EvaluationContext ctx, Mono.Debugging.Backend.IObjectValueSource source, Mono.Debugging.Client.ObjectPath path, System.Object obj, Mono.Debugging.Client.ObjectValueFlags flags) [0x00194] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging/Mono.Debugging.Evaluation/ObjectValueAdaptor.cs:514 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.CreateObjectValueImpl (Mono.Debugging.Evaluation.EvaluationContext ctx, Mono.Debugging.Backend.IObjectValueSource source, Mono.Debugging.Client.ObjectPath path, System.Object obj, Mono.Debugging.Client.ObjectValueFlags flags) [0x00000] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:1507 
  at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValue (Mono.Debugging.Evaluation.EvaluationContext ctx, Mono.Debugging.Backend.IObjectValueSource source, Mono.Debugging.Client.ObjectPath path, System.Object obj, Mono.Debugging.Client.ObjectValueFlags flags) [0x00000] in /Users/vsts/agent/2.136.1/work/1/s/monodevelop/main/external/debugger-libs/Mono.Debugging/Mono.Debugging.Evaluation/ObjectValueAdaptor.cs:96 
baulig added a commit to baulig/mono that referenced this issue Aug 31, 2018
This adds proper versioning to the wire change that was introduced in mono#9762.

Fixes mono#10412.
@steveisok

This comment has been minimized.

Copy link
Contributor

@steveisok steveisok commented Sep 4, 2018

Sorry - I didn't realize I needed to version it :-).

marek-safar added a commit that referenced this issue Sep 6, 2018
This adds proper versioning to the wire change that was introduced in #9762.

Fixes #10412.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.