Fiddler Ideas

The free web debugging proxy for any browser, system or platform.

Fiddler for Mac with mono 5.2.0 crashes with SIGSEGV

Can't use my freshly installed Fiddler + mono 5.2 on Yosemite. As Eric suggested over at https://groups.google.com/forum/#!topic/httpfiddler/7cR_NHbx5PE I'm posting my similar crash data here:

 

WARNING: The Carbon driver has not been ported to 64bits, nd very few parts of Windows.Forms will work properly, or at all

Stacktrace:

  at <unknown> <0xffffffff>

  at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.CGDisplayBounds (intptr) [0x00002] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.XplatUICarbon.get_WorkingArea () [0x00005] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.XplatUICarbon.get_VirtualScreen () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.XplatUI.get_VirtualScreen () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.Screen..cctor () [0x00034] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001e] in <48b95f3df5804531818f80e28ec60191>:0

  at <unknown> <0xffffffff>

  at System.Windows.Forms.Form.get_CreateParams () [0x00157] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.Control.CreateHandle () [0x0002a] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.Form.CreateHandle () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.Control.CreateControl () [0x00039] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.Control.SetVisibleCore (bool) [0x0003a] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.Form.SetVisibleCore (bool) [0x00065] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.Control.set_Visible (bool) [0x00009] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at System.Windows.Forms.Control.Show () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.Show () [0x00031] in <37dfd86a0d3248c0b8cd4af52ec71426>:0

  at Fiddler.frmViewer.‹• (string[]) [0x00081] in <09623c708fdb40a483cea147bbea7a7f>:0

  at Fiddler.frmViewer.‡• (string[]) [0x00016] in <09623c708fdb40a483cea147bbea7a7f>:0

  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) [0x0004e] in <09623c708fdb40a483cea147bbea7a7f>:0

 

Native stacktrace:

 

0   mono                                0x000000010bd4bc91 mono_handle_native_crash + 257

1   mono                                0x000000010bdb1af6 altstack_handle_and_restore + 70

2   CoreGraphics                        0x00007fff95d88f70 CGDisplayBounds + 50

3   ???                                 0x00000001143eaf6e 0x0 + 4634619758

4   ???                                 0x000000010c3cd41f 0x0 + 4500280351

5   mono                                0x000000010bca2135 mono_jit_runtime_invoke + 2245

6   mono                                0x000000010bea3948 do_runtime_invoke + 88

7   mono                                0x000000010be9f8dd mono_runtime_class_init_full + 1021

8   mono                                0x000000010bc9bb2a mono_jit_compile_method_inner + 2442

9   mono                                0x000000010bc9e47a mono_jit_compile_method_with_opt + 714

10  mono                                0x000000010bd4e29f common_call_trampoline + 1199

11  mono                                0x000000010bd4ddb9 mono_magic_trampoline + 73

12  ???                                 0x000000010c13239e 0x0 + 4497548190

13  ???                                 0x0000000110771fd5 0x0 + 4571209685

14  ???                                 0x000000011027e7b7 0x0 + 4566017975

15  ???                                 0x000000011027e480 0x0 + 4566017152

16  ???                                 0x000000010c3cd00c 0x0 + 4500279308

17  mono                                0x000000010bca2135 mono_jit_runtime_invoke + 2245

18  mono                                0x000000010bea3948 do_runtime_invoke + 88

19  mono                                0x000000010bea6dbc do_exec_main_checked + 140

20  mono                                0x000000010bd10f7e mono_jit_exec + 302

21  mono                                0x000000010bd13387 mono_main + 8167

22  mono                                0x000000010bc931ca main + 1690

23  mono                                0x000000010bc92b24 start + 52

24  ???                                 0x0000000000000002 0x0 + 2

 

Debug info from gdb:

 

(lldb) command source -s 0 '/tmp/mono-gdb-commands.kxxMs2'

Executing commands in '/tmp/mono-gdb-commands.kxxMs2'.

(lldb) process attach --pid 40479

warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.

warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/libglib-2.0.0.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.

Process 40479 stopped

* thread #1: tid = 0x75655f, 0x00007fff8bafd902 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_513', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP

    frame #0: 0x00007fff8bafd902 libsystem_kernel.dylib`__wait4 + 10

libsystem_kernel.dylib`__wait4:

->  0x7fff8bafd902 <+10>: jae    0x7fff8bafd90c            ; <+20>

    0x7fff8bafd904 <+12>: movq   %rax, %rdi

    0x7fff8bafd907 <+15>: jmp    0x7fff8baf8c78            ; cerror

    0x7fff8bafd90c <+20>: retq   

 

Executable module set to "/Library/Frameworks/Mono.framework/Commands/mono".

Architecture set to: x86_64h-apple-macosx.

(lldb) thread list

Process 40479 stopped

* thread #1: tid = 0x75655f, 0x00007fff8bafd902 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_513', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP

  thread #2: tid = 0x756561, 0x00007fff8bafd136 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'

  thread #3: tid = 0x756562, 0x00007fff8baf851a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'

  thread #4: tid = 0x756563, 0x00007fff8bafe232 libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'

  thread #5: tid = 0x756564, 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

  thread #6: tid = 0x756565, 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

  thread #7: tid = 0x75656d, 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

  thread #8: tid = 0x75656e, 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

  thread #9: tid = 0x756597, 0x00007fff8bafd136 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Timer-Scheduler'

(lldb) thread backtrace all

warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.

* thread #1: tid = 0x75655f, 0x00007fff8bafd902 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_513', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP

  * frame #0: 0x00007fff8bafd902 libsystem_kernel.dylib`__wait4 + 10

    frame #1: 0x000000010bd4bd1d mono`mono_handle_native_crash(signal="SIGSEGV", ctx=<unavailable>, info=<unavailable>) + 397 at mini-exceptions.c:2555 [opt]

    frame #2: 0x000000010bdb1af6 mono`altstack_handle_and_restore(ctx=0x00007fff53f6da50, obj=0x0000000000000000, stack_ovf=0) + 70 at exceptions-amd64.c:795 [opt]

    frame #3: 0x00007fff95d88f70 CoreGraphics`CGDisplayBounds + 50

    frame #4: 0x00000001143eaf6e

    frame #5: 0x000000010c3cd41f

    frame #6: 0x000000010bca2135 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=0x0000000000000000, params=<unavailable>, error=<unavailable>) + 2245 at mini-runtime.c:2549 [opt]

    frame #7: 0x000000010bea3948 mono`do_runtime_invoke(method=0x00007fb880929de8, obj=0x0000000000000000, params=0x0000000000000000, exc=0x00007fff53f6e328, error=0x00007fff53f6e528) + 88 at object.c:2829 [opt]

    frame #8: 0x000000010be9f8dd mono`mono_runtime_class_init_full [inlined] mono_runtime_try_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, error=0x00007fff53f6e528) + 1021 at object.c:2937 [opt]

    frame #9: 0x000000010be9f89c mono`mono_runtime_class_init_full(vtable=0x00007fb881827608, error=0x00007fff53f6e528) + 956 at object.c:471 [opt]

    frame #10: 0x000000010bc9bb2a mono`mono_jit_compile_method_inner(method=<unavailable>, target_domain=<unavailable>, opt=<unavailable>, error=0x00007fff53f6e528) + 2442 at mini.c:4365 [opt]

    frame #11: 0x000000010bc9e47a mono`mono_jit_compile_method_with_opt(method=<unavailable>, opt=<unavailable>, jit_only=0, error=<unavailable>) + 714 at mini-runtime.c:1889 [opt]

    frame #12: 0x000000010bd4e29f mono`common_call_trampoline(regs=0x00007fff53f6e608, code="H\x8b?H??\xa8H\x8b??8, m=<unavailable>, vt=0x0000000000000000, vtable_slot=0x0000000000000000, error=0x00007fff53f6e528) + 1199 at mini-trampolines.c:704 [opt]

    frame #13: 0x000000010bd4ddb9 mono`mono_magic_trampoline(regs=<unavailable>, code=<unavailable>, arg=<unavailable>, tramp=<unavailable>) + 73 at mini-trampolines.c:834 [opt]

    frame #14: 0x000000010c13239e

    frame #15: 0x0000000110771fd5

    frame #16: 0x000000011027e7b7

    frame #17: 0x000000011027e480

    frame #18: 0x000000010c3cd00c

    frame #19: 0x000000010bca2135 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=0x0000000000000000, params=<unavailable>, error=<unavailable>) + 2245 at mini-runtime.c:2549 [opt]

    frame #20: 0x000000010bea3948 mono`do_runtime_invoke(method=0x00007fb880500458, obj=0x0000000000000000, params=0x00007fff53f6f070, exc=0x0000000000000000, error=0x00007fff53f6f0c0) + 88 at object.c:2829 [opt]

    frame #21: 0x000000010bea6dbc mono`do_exec_main_checked [inlined] mono_runtime_invoke_checked(method=0x00007fb880500458, obj=<unavailable>, params=0x000000010c4003e8, error=0x00007fff53f6f0c0) + 65 at object.c:2983 [opt]

    f

=================================================================

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.

=================================================================

 

rame #22: 0x000000010bea6d7b mono`do_exec_main_checked(method=0x00007fb880500458, args=<unavailable>, error=0x00007fff53f6f0c0) + 75 at object.c:4623 [opt]

    frame #23: 0x000000010bd10f7e mono`mono_jit_exec(domain=<unavailable>, assembly=<unavailable>, argc=1, argv=0x00007fff53f6f4f8) + 302 at driver.g.c:1040 [opt]

    frame #24: 0x000000010bd13387 mono`mono_main [inlined] main_thread_handler + 8167 at driver.g.c:1109 [opt]

    frame #25: 0x000000010bd13350 mono`mono_main(argc=<unavailable>, argv=<unavailable>) + 8112 at driver.g.c:2247 [opt]

    frame #26: 0x000000010bc931ca mono`main [inlined] mono_main_with_options(argc=2, argc=2, argc=2, argv=0x00007fff53f6f4f0, argv=0x00007fff53f6f4f0, argv=0x00007fff53f6f4f0) + 17 at main.c:46 [opt]

    frame #27: 0x000000010bc931b9 mono`main(argc=2, argv=0x00007fff53f6f4f0) + 1673 at main.c:339 [opt]

    frame #28: 0x000000010bc92b24 mono`start + 52

 

  thread #2: tid = 0x756561, 0x00007fff8bafd136 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'

    frame #0: 0x00007fff8bafd136 libsystem_kernel.dylib`__psynch_cvwait + 10

    frame #1: 0x00007fff8f29d560 libsystem_pthread.dylib`_pthread_cond_wait + 693

    frame #2: 0x000000010bf1a755 mono`thread_func [inlined] mono_os_cond_wait(mutex=0x000000010c070848) + 15 at mono-os-mutex.h:173 [opt]

    frame #3: 0x000000010bf1a746 mono`thread_func(thread_data=0x000000010c1d0108) + 230 at sgen-thread-pool.c:130 [opt]

    frame #4: 0x00007fff8f29d05a libsystem_pthread.dylib`_pthread_body + 131

    frame #5: 0x00007fff8f29cfd7 libsystem_pthread.dylib`_pthread_start + 176

    frame #6: 0x00007fff8f29a3ed libsystem_pthread.dylib`thread_start + 13

 

  thread #3: tid = 0x756562, 0x00007fff8baf851a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'

    frame #0: 0x00007fff8baf851a libsystem_kernel.dylib`semaphore_wait_trap + 10

    frame #1: 0x000000010be9c293 mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 11 at mono-os-semaphore.h:91 [opt]

    frame #2: 0x000000010be9c288 mono`finalizer_thread [inlined] mono_coop_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 8 at mono-coop-semaphore.h:43 [opt]

    frame #3: 0x000000010be9c280 mono`finalizer_thread(unused=<unavailable>) + 176 at gc.c:866 [opt]

    frame #4: 0x000000010be6f69b mono`start_wrapper [inlined] start_wrapper_internal + 154 at threads.c:829 [opt]

    frame #5: 0x000000010be6f601 mono`start_wrapper(data=<unavailable>) + 561 at threads.c:891 [opt]

    frame #6: 0x00007fff8f29d05a libsystem_pthread.dylib`_pthread_body + 131

    frame #7: 0x00007fff8f29cfd7 libsystem_pthread.dylib`_pthread_start + 176

    frame #8: 0x00007fff8f29a3ed libsystem_pthread.dylib`thread_start + 13

 

  thread #4: tid = 0x756563, 0x00007fff8bafe232 libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'

    frame #0: 0x00007fff8bafe232 libsystem_kernel.dylib`kevent64 + 10

    frame #1: 0x00007fff96ae6615 libdispatch.dylib`_dispatch_mgr_invoke + 247

    frame #2: 0x00007fff96ae626e libdispatch.dylib`_dispatch_mgr_thread + 52

 

  thread #5: tid = 0x756564, 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

    frame #0: 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

    frame #1: 0x00007fff8f29cb29 libsystem_pthread.dylib`_pthread_wqthread + 869

    frame #2: 0x00007fff8f29a3dd libsystem_pthread.dylib`start_wqthread + 13

 

  thread #6: tid = 0x756565, 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

    frame #0: 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

    frame #1: 0x00007fff8f29cb29 libsystem_pthread.dylib`_pthread_wqthread + 869

    frame #2: 0x00007fff8f29a3dd libsystem_pthread.dylib`start_wqthread + 13

 

  thread #7: tid = 0x75656d, 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

    frame #0: 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

    frame #1: 0x00007fff8f29cb29 libsystem_pthread.dylib`_pthread_wqthread + 869

    frame #2: 0x00007fff8f29a3dd libsystem_pthread.dylib`start_wqthread + 13

 

  thread #8: tid = 0x75656e, 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

    frame #0: 0x00007fff8bafd94a libsystem_kernel.dylib`__workq_kernreturn + 10

    frame #1: 0x00007fff8f29cb29 libsystem_pthread.dylib`_pthread_wqthread + 869

    frame #2: 0x00007fff8f29a3dd libsystem_pthread.dylib`start_wqthread + 13

 

  thread #9: tid = 0x756597, 0x00007fff8bafd136 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Timer-Scheduler'

    frame #0: 0x00007fff8bafd136 libsystem_kernel.dylib`__psynch_cvwait + 10

    frame #1: 0x00007fff8f29d560 libsystem_pthread.dylib`_pthread_cond_wait + 693

    frame #2: 0x000000010be91d97 mono`mono_os_cond_timedwait(cond=0x00007fb88081f8d8, mutex=0x00007fb88081f898, timeout_ms=499) + 151 at mono-os-mutex.h:216 [opt]

    frame #3: 0x000000010be9091d mono`mono_w32handle_timedwait_signal_handle [inlined] mono_w32handle_timedwait_signal_naked(cond=<unavailable>, mutex=<unavailable>, timeout=499, poll=0, alerted=<unavailable>) + 8 at w32handle.c:976 [opt]

    frame #4: 0x000000010be90915 mono`mono_w32handle_timedwait_signal_handle(poll=0, handle=<unavailable>, timeout=<unavailable>, alerted=<unavailable>) + 213 at w32handle.c:1091 [opt]

    frame #5: 0x000000010be907bb mono`mono_w32handle_wait_one(handle=0x0000000000010001, timeout=499, alertable=<unavailable>) + 907 at w32handle.c:1210 [opt]

    frame #6: 0x000000010be90a9e mono`mono_w32handle_wait_multiple(handles=<unavailable>, nhandles=<unavailable>, waitall=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) + 190 at w32handle.c:1244 [opt]

    frame #7: 0x000000010be6a1e3 mono`mono_wait_uninterrupted(thread=<unavailable>, numhandles=<unavailable>, handles=<unavailable>, waitall=<unavailable>, ms=<unavailable>, error=<unavailable>) + 115 at threads.c:1892 [opt]

    frame #8: 0x000000010be6a500 mono`ves_icall_System_Threading_WaitHandle_WaitOne_internal(handle=0x0000000000010001, ms=-1) + 112 at threads.c:2017 [opt]

    frame #9: 0x00000001143e62ce

    frame #10: 0x000000010ddd6ff0 mscorlib.dll.dylib`System_Threading_WaitHandle_InternalWaitOne_System_Runtime_InteropServices_SafeHandle_long_bool_bool + 64

    frame #11: 0x000000010ddd6f9c mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_long_bool + 44

    frame #12: 0x000000010ddd6e03 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int_bool + 51

    frame #13: 0x000000010ddd6f2c mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int + 28

    frame #14: 0x000000010dddd807 mscorlib.dll.dylib`System_Threading_Timer_Scheduler_SchedulerThread + 2423

    frame #15: 0x000000010ddd0187 mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart_Context_object + 151

    frame #16: 0x000000010ddcdfbb mscorlib.dll.dylib`System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 395

    frame #17: 0x000000010ddcde21 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 33

    frame #18: 0x000000010ddcddb0 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 80

    frame #19: 0x000000010ddd02cf mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart + 47

    frame #20: 0x000000010c3d7b81

    frame #21: 0x000000010bca2135 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=0x000000010c44c1e0, params=<unavailable>, error=<unavailable>) + 2245 at mini-runtime.c:2549 [opt]

    frame #22: 0x000000010bea3948 mono`do_runtime_invoke(method=0x00007fb8809c4d00, obj=0x000000010c44c1e0, params=0x0000000114700e58, exc=0x0000000000000000, error=0x0000000114700e60) + 88 at object.c:2829 [opt]

    frame #23: 0x000000010be6f6ce mono`start_wrapper [inlined] start_wrapper_internal + 205 at threads.c:837 [opt]

    frame #24: 0x000000010be6f601 mono`start_wrapper(data=<unavailable>) + 561 at threads.c:891 [opt]

    frame #25: 0x00007fff8f29d05a libsystem_pthread.dylib`_pthread_body + 131

    frame #26: 0x00007fff8f29cfd7 libsystem_pthread.dylib`_pthread_start + 176

    frame #27: 0x00007fff8f29a3ed libsystem_pthread.dylib`thread_start + 13

(lldb) detach

Process 40479 stopped

* thread #1: tid = 0x75655f, 0x00007fff8bafd902 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_513', queue = 'com.apple.main-thread'

Process 40479 stopped

(lldb) quit

Process 40479 detached

/Users/vkleinschmidt/bin/fiddler: line 3: 40479 Illegal instruction: 4  mono Fiddler.exe

  • Guest
  • Oct 14 2017
  • Under review
Bug
  • Attach files
  • Shane Bishop commented
    20 Mar, 2018 09:17pm

    I had the same problem, if I ran Fiddler with this command it would run for me

    mono --arch=32 Fiddler.exe