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

SIGABRT "Likely a malformed PDB file" in basic Xamarin.Mac F# app with Suave #15137

Open
dalexsoto opened this issue Jun 14, 2019 · 1 comment
Labels
area-Debugger target-xamarin-mac if shared with iOS use target-xamarin-ios

Comments

@dalexsoto
Copy link
Member

Issue moved from xamarin/xamarin-macios#6296

From: @jwosty

Steps to Reproduce

  1. Create a new Cocoa F# app. Run & verify that it works.
  2. Update FSharp.Core to 4.6.2 as Nuget suggests to. Run & verify.
  3. Change runtime framework to Xamarin.Full framework (I used .Net Framework 1.7.2; also happens with 1.7.0) and retarget Nuget package(s). Run & verify. (not sure if this step is instrumental in reproducing the crash)
  4. Add Suave package via Nuget, and this to AppDelegate.fs: override this.DidFinishLaunching notification = Suave.startWebServer defaultConfig (Successful.OK "Hello World!")

Expected Behavior

App should launch and host a tiny HTTP server at localhost:8080.

Actual Behavior

App crashes with a SIGABRT complaining about malformed Suave.pdb.

Full crash log:

2019-06-13 23:23:34.914 PdbCrash[18212:1637468] error: Method idx 5271 is greater than number of rows (5271) in PPDB MethodDebugInformation table, for method <StartupCode$Suave>.$YoLo:.cctor in '/Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MonoBundle/Suave.pdb'. Likely a malformed PDB file.

=================================================================
	Native Crash Reporting
=================================================================
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.
=================================================================

=================================================================
	Basic Fault Adddress Reporting
=================================================================
Memory around native instruction pointer (0x7fff580742c6):0x7fff580742b6  ff ff c3 90 90 90 b8 48 01 00 02 49 89 ca 0f 05  .......H...I....
0x7fff580742c6  73 08 48 89 c7 e9 87 a1 ff ff c3 55 48 89 e5 41  s.H........UH..A
0x7fff580742d6  57 41 56 41 55 41 54 53 48 81 ec 88 00 00 00 4d  WAVAUATSH......M
0x7fff580742e6  89 cf 49 89 f4 48 8d 05 76 52 5b 36 48 8b 00 48  ..I..H..vR[6H..H

=================================================================
	Native stacktrace:
=================================================================
	0x104001504 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_dump_native_crash_info
	0x103ff54a5 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_handle_native_crash
	0x7fff58124b5d - /usr/lib/system/libsystem_platform.dylib : _sigtramp
	0x7ffeebd11720 - Unknown
	0x7fff57fde6a6 - /usr/lib/system/libsystem_c.dylib : abort
	0x103f18aa0 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : _ZL12log_callbackPKcS0_S0_iPv
	0x10422886e - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : monoeg_g_logv_nofree
	0x104228922 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : monoeg_g_log
	0x1040c05c8 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_ppdb_get_seq_points
	0x103f933df - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_method_to_ir
	0x1040152a2 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mini_method_compile
	0x10401846b - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_jit_compile_method_inner
	0x1040071ff - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_jit_compile_method_with_opt
	0x10400b1f1 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_jit_runtime_invoke
	0x104134534 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_runtime_try_invoke
	0x1041332b3 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_runtime_class_init_full
	0x103f7b56c - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_generic_class_init
	0x10704ed2c - Unknown
	0x10400b621 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_jit_runtime_invoke
	0x104132aa8 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_runtime_invoke_checked
	0x10413737e - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_runtime_invoke
	0x103f215aa - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : xamarin_invoke_trampoline
	0x103f22435 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : xamarin_arch_trampoline
	0x103f23831 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : xamarin_x86_64_common_trampoline
	0x7fff2bfd437a - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
	0x7fff2bfd42f4 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : ___CFXRegistrationPost_block_invoke
	0x7fff2bfd425e - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : _CFXRegistrationPost
	0x7fff2bfdc68d - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : ___CFXNotificationPost_block_invoke
	0x7fff2bf4576c - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : -[_CFXNotificationRegistrar find:object:observer:enumerator:]
	0x7fff2bf44a17 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : _CFXNotificationPost
	0x7fff2e1e806b - /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation : -[NSNotificationCenter postNotificationName:object:userInfo:]
	0x7fff295f01a8 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication _postDidFinishNotification]
	0x7fff295efafb - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication _sendFinishLaunchingNotification]
	0x7fff295edc4f - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]
	0x7fff295ed89f - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
	0x7fff2e231bec - /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation : -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
	0x7fff2e231a69 - /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation : _NSAppleEventManagerGenericHandler
	0x7fff2d1b3397 - /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE : _Z20aeDispatchAppleEventPK6AEDescPS_jPh
	0x7fff2d1b2c29 - /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE : _ZL25dispatchEventAndSendReplyPK6AEDescPS_
	0x7fff2d1b2b01 - /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE : aeProcessAppleEvent
	0x7fff2b258e97 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : AEProcessAppleEvent
	0x7fff295e9c7e - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : _DPSNextEvent
	0x7fff295e871f - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
	0x7fff295e283c - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication run]
	0x7fff295d1d7c - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : NSApplicationMain
	0x1072ac882 - Unknown
	0x1072ac5ab - Unknown
	0x10400b621 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_jit_runtime_invoke
	0x104132aa8 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_runtime_invoke_checked
	0x104139c7d - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_runtime_exec_main_checked
	0x103f67337 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_jit_exec
	0x103f6a5c3 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : mono_main
	0x103f241ff - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : xamarin_main
	0x103f250b4 - /Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash : main
	0x7fff57f393d5 - /usr/lib/system/libdyld.dylib : start

=================================================================
	Telemetry Dumper:
=================================================================
Pkilling 0x70000f8e7000 from 0x1075095c0
Pkilling 0x70000faea000 from 0x1075095c0
Entering thread summarizer pause from 0x1075095c0
Finished thread summarizer pause from 0x1075095c0.

Waiting for dumping threads to resume

Debug info from gdb:


=================================================================
	External Debugger Dump:
=================================================================
(lldb) command source -s 0 '/tmp/mono-gdb-commands.18212'
Executing commands in '/tmp/mono-gdb-commands.18212'.
(lldb) process attach --pid 18212
Process 18212 stopped
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff58073356 libsystem_kernel.dylib`__wait4 + 10
libsystem_kernel.dylib`__wait4:
->  0x7fff58073356 <+10>: jae    0x7fff58073360            ; <+20>
    0x7fff58073358 <+12>: movq   %rax, %rdi
    0x7fff5807335b <+15>: jmp    0x7fff5806e421            ; cerror
    0x7fff58073360 <+20>: retq   
Target 0: (PdbCrash) stopped.

Executable module set to "/Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MacOS/PdbCrash".
Architecture set to: x86_64-apple-macosx-.
(lldb) thread list
Process 18212 stopped
* thread #1: tid = 0x18fc5c, 0x00007fff58073356 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  thread #2: tid = 0x18fc69, 0x00007fff5806fbfe libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #3: tid = 0x18fc6a, 0x00007fff5806fbfe libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #4: tid = 0x18fc6c, 0x00007fff5807186a libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
  thread #5: tid = 0x18fc6e, 0x00007fff5806e266 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
  thread #6: tid = 0x18fc6f, 0x00007fff58071472 libsystem_kernel.dylib`__recvfrom + 10, name = 'Debugger agent'
  thread #7: tid = 0x18fc79, 0x00007fff5806fbfe libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #8: tid = 0x18fc7a, 0x00007fff5806fbfe libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #9: tid = 0x18fc90, 0x00007fff5806fbfe libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #10: tid = 0x18fc91, 0x00007fff5806fbfe libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #11: tid = 0x18fc94, 0x00007fff5806fbfe libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #12: tid = 0x18fc95, 0x0000000000000000
(lldb) thread backtrace all

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at System.Object:__icall_wrapper_mono_generic_class_init <0x0008b>
	  at UTF8:get_utf8 <0x0007a>
	  at Suave.Successful:OK <0x0006a>
	  at PdbCrash.AppDelegate:DidFinishLaunching <0x000a2>
	  at <Module>:runtime_invoke_void__this___object <0x00183>
	  at <unknown> <0xffffffff>
	  at AppKit.NSApplication:NSApplicationMain <0x001f1>
	  at AppKit.NSApplication:Main <0x0028a>
	  at PdbCrash.main:main <0x00092>
	  at <Module>:runtime_invoke_int_object <0x001a8>
=================================================================
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff58073356 libsystem_kernel.dylib`__wait4 + 10
    frame #1: 0x000000010400178a PdbCrash`mono_dump_native_crash_info at mini-posix.c:1112:3 [opt]
    frame #2: 0x0000000104001656 PdbCrash`mono_dump_native_crash_info(signal="SIGABRT", ctx=0x00007ffeebd11b10, info=<unavailable>) at mini-posix.c:1149 [opt]
    frame #3: 0x0000000103ff54a5 PdbCrash`mono_handle_native_crash(signal="SIGABRT", ctx=0x00007ffeebd11b10, info=0x00007ffeebd11aa8) at mini-exceptions.c:3219:2 [opt]
    frame #4: 0x00007fff58124b5d libsystem_platform.dylib`_sigtramp + 29
    frame #5: 0x00007fff580742c7 libsystem_kernel.dylib`__pthread_kill + 11
    frame #6: 0x00007fff5812fbf1 libsystem_pthread.dylib`pthread_kill + 284
    frame #7: 0x00007fff57fde6a6 libsystem_c.dylib`abort + 127
    frame #8: 0x0000000103f18aa0 PdbCrash`log_callback(log_domain=0x0000000000000000, log_level="error", message="Method idx 5271 is greater than number of rows (5271) in PPDB MethodDebugInformation table, for method <StartupCode$Suave>.$YoLo:.cctor in '/Users/jwostenberg/Code/FSharp/PdbCrash/PdbCrash/bin/Debug/PdbCrash.app/Contents/MonoBundle/Suave.pdb'. Likely a malformed PDB file.", fatal=4, user_data=0x0000000000000000) at runtime.m:1246:3
    frame #9: 0x000000010422886e PdbCrash`monoeg_g_logv_nofree [inlined] monoeg_g_logstr(log_domain=0x0000000000000000, log_level=G_LOG_LEVEL_ERROR, msg=<unavailable>) at goutput.c:134:2 [opt]
    frame #10: 0x0000000104228845 PdbCrash`monoeg_g_logv_nofree(log_domain=<unavailable>, log_level=<unavailable>, format="Method idx %d is greater than number of rows (%d) in PPDB MethodDebugInformation table, for method %s in '%s'. Likely a malformed PDB file.", args=<unavailable>) at goutput.c:149 [opt]
    frame #11: 0x0000000104228922 PdbCrash`monoeg_g_log [inlined] monoeg_g_logv(log_domain=<unavailable>, log_level=<unavailable>, format=<unavailable>, args=0x0000003000000030) at goutput.c:156:10 [opt]
    frame #12: 0x000000010422891d PdbCrash`monoeg_g_log(log_domain=<unavailable>, log_level=<unavailable>, format=<unavailable>) at goutput.c:165 [opt]
    frame #13: 0x00000001040c05c8 PdbCrash`mono_ppdb_get_seq_points(minfo=<unavailable>, source_file=0x0000000000000000, source_file_list=<unavailable>, source_files=0x0000000000000000, seq_points=0x00007ffeebd12560, n_seq_points=0x00007ffeebd125e0) at debug-mono-ppdb.c:427:3 [opt]
    frame #14: 0x0000000103f933df PdbCrash`mono_method_to_ir(cfg=0x00007fd139083600, method=<unavailable>, start_bblock=0x0000000000000000, end_bblock=<unavailable>, return_var=0x0000000000000000, inline_args=0x0000000000000000, inline_offset=0, is_virtual_call=0) at method-to-ir.c:6674:4 [opt]
    frame #15: 0x00000001040152a2 PdbCrash`mini_method_compile(method=<unavailable>, opts=374434303, domain=0x00007fd137d01570, flags=<unavailable>, parts=0, aot_method_index=-1) at mini.c:3455:2 [opt]
    frame #16: 0x000000010401846b PdbCrash`mono_jit_compile_method_inner(method=0x00007fd139a35f28, target_domain=0x00007fd137d01570, opt=<unavailable>, error=0x00007ffeebd12b80) at mini.c:4043:8 [opt]
    frame #17: 0x00000001040071ff PdbCrash`mono_jit_compile_method_with_opt(method=0x00007fd139a35f28, opt=<unavailable>, jit_only=1, error=0x00007ffeebd12b80) at mini-runtime.c:2411:10 [opt]
    frame #18: 0x000000010400b1f1 PdbCrash`mono_jit_runtime_invoke [inlined] mono_jit_compile_method_jit_only(method=<unavailable>, error=<unavailable>) at mini-runtime.c:2471:9 [opt]
    frame #19: 0x000000010400b1ce PdbCrash`mono_jit_runtime_invoke(method=0x00007fd139a35f28, obj=<unavailable>, params=0x0000000000000000, exc=0x00007ffeebd12b30, error=<unavailable>) at mini-runtime.c:3011 [opt]
    frame #20: 0x0000000104134534 PdbCrash`mono_runtime_try_invoke [inlined] do_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, exc=<unavailable>, error=<unavailable>) at object.c:2960:11 [opt]
    frame #21: 0x00000001041344f9 PdbCrash`mono_runtime_try_invoke(method=0x00007fd139a35f28, obj=0x0000000000000000, params=0x0000000000000000, exc=0x00007ffeebd12b30, error=0x00007ffeebd12b80) at object.c:3069 [opt]
    frame #22: 0x00000001041332b3 PdbCrash`mono_runtime_class_init_full(vtable=0x00007fd1391c0df8, error=0x00007ffeebd12b80) at object.c:526:3 [opt]
    frame #23: 0x0000000103f7b56c PdbCrash`mono_generic_class_init(vtable=<unavailable>) at jit-icalls.c:1511:2 [opt]
    frame #24: 0x000000010704ed2c
    frame #25: 0x000000010400b621 PdbCrash`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00007ffeebd13020, exc=0x0000000000000000, error=<unavailable>) at mini-runtime.c:3148:12 [opt]
    frame #26: 0x0000000104132aa8 PdbCrash`mono_runtime_invoke_checked [inlined] do_runtime_invoke(method=0x00007fd13980f830, obj=0x000000010489c7f0, params=0x00007ffeebd13020, exc=<unavailable>, error=0x00007ffeebd12f70) at object.c:2960:11 [opt]
    frame #27: 0x0000000104132a72 PdbCrash`mono_runtime_invoke_checked(method=0x00007fd13980f830, obj=0x000000010489c7f0, params=0x00007ffeebd13020, error=0x00007ffeebd12f70) at object.c:3128 [opt]
    frame #28: 0x000000010413737e PdbCrash`mono_runtime_invoke(method=0x00007fd13980f830, obj=0x000000010489c7f0, params=0x00007ffeebd13020, exc=<unavailable>) at object.c:3015:9 [opt]
    frame #29: 0x0000000103f215aa PdbCrash`::xamarin_invoke_trampoline(type=Tramp_Default, self=0x0000600001b416e0, sel="applicationDidFinishLaunching:", iterator=(PdbCrash`param_iter_next(IteratorAction, void*, char const*, unsigned long, void*, unsigned int*) at trampolines-x86_64.m:238), marshal_return_value=(PdbCrash`marshal_return_value(void*, char const*, unsigned long, void*, _MonoType*, bool, _MonoMethod*, MethodDescription*, unsigned int*) at trampolines-x86_64.m:309), context=0x00007ffeebd13538) at trampolines-invoke.m:456:12
    frame #30: 0x0000000103f22435 PdbCrash`::xamarin_arch_trampoline(state=0x00007ffeebd13580) at trampolines-x86_64.m:547:2
    frame #31: 0x0000000103f23831 PdbCrash`xamarin_x86_64_common_trampoline + 110
    frame #32: 0x00007fff2bfd437a CoreFoundation`__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
    frame #33: 0x00007fff2bfd42f4 CoreFoundation`___CFXRegistrationPost_block_invoke + 63
    frame #34: 0x00007fff2bfd425e CoreFoundation`_CFXRegistrationPost + 404
    frame #35: 0x00007fff2bfdc68d CoreFoundation`___CFXNotificationPost_block_invoke + 87
    frame #36: 0x00007fff2bf4576c CoreFoundation`-[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1834
    frame #37: 0x00007fff2bf44a17 CoreFoundation`_CFXNotificationPost + 840
    frame #38: 0x00007fff2e1e806b Foundation`-[NSNotificationCenter postNotificationName:object:userInfo:] + 66
    frame #39: 0x00007fff295f01a8 AppKit`-[NSApplication _postDidFinishNotification] + 312
    frame #40: 0x00007fff295efafb AppKit`-[NSApplication _sendFinishLaunchingNotification] + 208
    frame #41: 0x00007fff295edc4f AppKit`-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 552
    frame #42: 0x00007fff295ed89f AppKit`-[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 688
    frame #43: 0x00007fff2e231bec Foundation`-[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 286
    frame #44: 0x00007fff2e231a69 Foundation`_NSAppleEventManagerGenericHandler + 102
    frame #45: 0x00007fff2d1b3397 AE`aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 1815
    frame #46: 0x00007fff2d1b2c29 AE`dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 41
    frame #47: 0x00007fff2d1b2b01 AE`aeProcessAppleEvent + 414
    frame #48: 0x00007fff2b258e97 HIToolbox`AEProcessAppleEvent + 54
    frame #49: 0x00007fff295e9c7e AppKit`_DPSNextEvent + 1724
    frame #50: 0x00007fff295e871f AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
    frame #51: 0x00007fff295e283c AppKit`-[NSApplication run] + 699
    frame #52: 0x00007fff295d1d7c AppKit`NSApplicationMain + 777
    frame #53: 0x00000001072ac882
    frame #54: 0x00000001072ac5ab
    frame #55: 0x000000010400b621 PdbCrash`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x0000000000000000, exc=0x0000000000000000, error=<unavailable>) at mini-runtime.c:3148:12 [opt]
    frame #56: 0x0000000104132aa8 PdbCrash`mono_runtime_invoke_checked [inlined] do_runtime_invoke(method=0x00007fd137d01ed8, obj=0x0000000000000000, params=0x00007ffeebd15138, exc=<unavailable>, error=0x00007ffeebd15170) at object.c:2960:11 [opt]
    frame #57: 0x0000000104132a72 PdbCrash`mono_runtime_invoke_checked(method=0x00007fd137d01ed8, obj=0x0000000000000000, params=0x00007ffeebd15138, error=0x00007ffeebd15170) at object.c:3128 [opt]
    frame #58: 0x0000000104139c7d PdbCrash`mono_runtime_exec_main_checked [inlined] do_exec_main_checked(method=0x00007fd137d01ed8, args=<unavailable>, error=0x00007ffeebd15170) at object.c:0 [opt]
    frame #59: 0x0000000104139c49 PdbCrash`mono_runtime_exec_main_checked(method=0x00007fd137d01ed8, args=<unavailable>, error=0x00007ffeebd15170) at object.c:5052 [opt]
    frame #60: 0x0000000103f67337 PdbCrash`mono_jit_exec at driver.g.c:1236:13 [opt]
    frame #61: 0x0000000103f67329 PdbCrash`mono_jit_exec(domain=<unavailable>, assembly=<unavailable>, argc=2, argv=0x000060000175d8a8) at driver.g.c:1195 [opt]
    frame #62: 0x0000000103f6a5c3 PdbCrash`mono_main [inlined] main_thread_handler(user_data=<unavailable>) at driver.g.c:1313:3 [opt]
    frame #63: 0x0000000103f6a58c PdbCrash`mono_main(argc=5, argv=<unavailable>) at driver.g.c:2483 [opt]
    frame #64: 0x0000000103f241ff PdbCrash`::xamarin_main(argc=2, argv=0x00007ffeebd154f8, launch_mode=XamarinLaunchModeApp) at launcher.m:661:9
    frame #65: 0x0000000103f250b4 PdbCrash`main(argc=2, argv=0x00007ffeebd154f8) at launcher.m:679:9
    frame #66: 0x00007fff57f393d5 libdyld.dylib`start + 1
    frame #67: 0x00007fff57f393d5 libdyld.dylib`start + 1
  thread #2
    frame #0: 0x00007fff5806fbfe libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff5812c6e6 libsystem_pthread.dylib`_pthread_wqthread + 634
    frame #2: 0x00007fff5812c3fd libsystem_pthread.dylib`start_wqthread + 13
  thread #3
    frame #0: 0x00007fff5806fbfe libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff5812c636 libsystem_pthread.dylib`_pthread_wqthread + 458
    frame #2: 0x00007fff5812c3fd libsystem_pthread.dylib`start_wqthread + 13
  thread #4, name = 'SGen worker'
    frame #0: 0x00007fff5807186a libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff5813056e libsystem_pthread.dylib`_pthread_cond_wait + 722
    frame #2: 0x00000001041fe031 PdbCrash`thread_func [inlined] mono_os_cond_wait(cond=<unavailable>, mutex=<unavailable>) at mono-os-mutex.h:173:8 [opt]
    frame #3: 0x00000001041fe01e PdbCrash`thread_func at sgen-thread-pool.c:165 [opt]
    frame #4: 0x00000001041fdf53 PdbCrash`thread_func(data=0x0000000000000000) at sgen-thread-pool.c:196 [opt]
    frame #5: 0x00007fff5812d2eb libsystem_pthread.dylib`_pthread_body + 126
    frame #6: 0x00007fff58130249 libsystem_pthread.dylib`_pthread_start + 66
    frame #7: 0x00007fff5812c40d libsystem_pthread.dylib`thread_start + 13
  thread #5, name = 'Finalizer'
    frame #0: 0x00007fff5806e266 libsystem_kernel.dylib`semaphore_wait_trap + 10
    frame #1: 0x00000001040cd6e0 PdbCrash`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:90:8 [opt]
    frame #2: 0x00000001040cd6d5 PdbCrash`finalizer_thread at mono-coop-semaphore.h:43 [opt]
    frame #3: 0x00000001040cd6bb PdbCrash`finalizer_thread(unused=<unavailable>) at gc.c:918 [opt]
    frame #4: 0x000000010418b767 PdbCrash`start_wrapper_internal(start_info=<unavailable>, stack_ptr=<unavailable>) at threads.c:1155:3 [opt]
    frame #5: 0x000000010418b5c7 PdbCrash`start_wrapper(data=0x0000600000c3c0c0) at threads.c:1215:8 [opt]
    frame #6: 0x00007fff5812d2eb libsystem_pthread.dylib`_pthread_body + 126
    frame #7: 0x00007fff58130249 libsystem_pthread.dylib`_pthread_start + 66
    frame #8: 0x00007fff5812c40d libsystem_pthread.dylib`thread_start + 13
  thread #6, name = 'Debugger agent'
    frame #0: 0x00007fff58071472 libsystem_kernel.dylib`__recvfrom + 10
    frame #1: 0x00000001040869ae PdbCrash`socket_transport_recv(buf=0x000070000fae9d6d, len=11) at debugger-agent.c:1108:9 [opt]
    frame #2: 0x0000000104076fa6 PdbCrash`debugger_thread [inlined] transport_recv(len=11) at debugger-agent.c:1518:9 [opt]
    frame #3: 0x0000000104076f83 PdbCrash`debugger_thread(arg=<unavailable>) at debugger-agent.c:9490 [opt]
    frame #4: 0x000000010418b767 PdbCrash`start_wrapper_internal(start_info=<unavailable>, stack_ptr=<unavailable>) at threads.c:1155:3 [opt]
    frame #5: 0x000000010418b5c7 PdbCrash`start_wrapper(data=0x0000600000c3c180) at threads.c:1215:8 [opt]
    frame #6: 0x00007fff5812d2eb libsystem_pthread.dylib`_pthread_body + 126
    frame #7: 0x00007fff58130249 libsystem_pthread.dylib`_pthread_start + 66
    frame #8: 0x00007fff5812c40d libsystem_pthread.dylib`thread_start + 13
  thread #7
    frame #0: 0x00007fff5812c3f0 libsystem_pthread.dylib`start_wqthread
  thread #8
    frame #0: 0x00007fff5812c3f0 libsystem_pthread.dylib`start_wqthread
  thread #9
    frame #0: 0x00007fff5812c3f0 libsystem_pthread.dylib`start_wqthread
  thread #10
    frame #0: 0x00007fff5806fbfe libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff5812c636 libsystem_pthread.dylib`_pthread_wqthread + 458
    frame #2: 0x00007fff5812c3fd libsystem_pthread.dylib`start_wqthread + 13
  thread #11
    frame #0: 0x00007fff5812c3f0 libsystem_pthread.dylib`start_wqthread
  thread #12
    frame #0: 0x0000000000000000
(lldb) detach
Process 18212 detached
(lldb) quit

Workaround

Add a post-build step to delete Suave.pdb, and the app functions fine.

Environment

Visual Studio Community 2019 for Mac
Version 8.0.8 (build 2)
Installation UUID: 290bbaa8-262e-4c8c-b800-82712d5961b9
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.6.0.2 (d16-0 / 040682909)

Package version: 518010003

Mono Framework MDK
Runtime:
Mono 5.18.1.3 (2018-08/fdb26b0a445) (64-bit)
Package version: 518010003

NuGet
Version: 4.8.2.5835

Example Project (If Possible)

Project archive:
PdbCrash.zip

@mushishi78
Copy link

Thanks for the workaround of deleting the pdb file 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Debugger target-xamarin-mac if shared with iOS use target-xamarin-ios
Projects
None yet
Development

No branches or pull requests

3 participants