Skip to content

Instantly share code, notes, and snippets.

@Abhishekk360
Created April 18, 2016 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Abhishekk360/0991b7d1f167d2db580363b65f2752e1 to your computer and use it in GitHub Desktop.
Save Abhishekk360/0991b7d1f167d2db580363b65f2752e1 to your computer and use it in GitHub Desktop.
Last login: Mon Apr 18 19:21:32 on ttys000
800BC:~ xamarin23$ cd Desktop/
800BC:Desktop xamarin23$ mono Program.exe
Hello World!
Assertion failed: (sizeof(uint64)==8), function TIFFClientOpen, file tif_open.c, line 99.
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Drawing.GDIPlus.GdipSaveImageToFile (intptr,string,System.Guid&,intptr) <0x00012>
at System.Drawing.Image.Save (string,System.Drawing.Imaging.ImageCodecInfo,System.Drawing.Imaging.EncoderParameters) <0x0006f>
at System.Drawing.Image.Save (string,System.Drawing.Imaging.ImageFormat) <0x0005b>
at (wrapper remoting-invoke-with-check) System.Drawing.Image.Save (string,System.Drawing.Imaging.ImageFormat) <0x00073>
at ConsoleTester.MainClass.Main (string[]) <0x000a3>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0x000a0>
Native stacktrace:
0 mono 0x001378c6 mono_handle_native_sigsegv + 342
1 mono 0x0018a6f1 sigabrt_signal_handler + 145
2 libsystem_platform.dylib 0x9244d03b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 libsystem_c.dylib 0x93ec3dee abort + 156
5 libsystem_c.dylib 0x93e8c7c5 basename + 0
6 libtiff.5.dylib 0x007b0fd9 TIFFClientOpen + 185
7 libtiff.5.dylib 0x007c6237 TIFFFdOpen + 167
8 libtiff.5.dylib 0x007c6672 TIFFOpen + 338
9 libgdiplus.dylib 0x00614b54 gdip_save_tiff_image_to_file + 52
10 libgdiplus.dylib 0x005e2be1 GdipSaveImageToFile + 321
11 ??? 0x00480fe0 0x0 + 4722656
12 ??? 0x00480f00 0x0 + 4722432
13 ??? 0x0047fe7c 0x0 + 4718204
14 ??? 0x0047fdec 0x0 + 4718060
15 ??? 0x0047af7c 0x0 + 4697980
16 ??? 0x0047b089 0x0 + 4698249
17 mono 0x0007da67 mono_jit_runtime_invoke + 951
18 mono 0x00255e56 mono_runtime_invoke + 150
19 mono 0x0025be11 mono_runtime_exec_main + 401
20 mono 0x0025bbc8 mono_runtime_run_main + 632
21 mono 0x000fbdf5 mono_jit_exec + 213
22 mono 0x000fe28c mono_main + 8364
23 mono 0x0006ed1a main + 74
24 mono 0x0006ecc5 start + 53
Debug info from gdb:
(lldb) command source -s 0 '/tmp/mono-gdb-commands.JQStLR'
Executing commands in '/tmp/mono-gdb-commands.JQStLR'.
(lldb) process attach --pid 3709
warning: (i386) /Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Process 3709 stopped
* thread #1: tid = 0x2237d, 0x98b8ae16 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_50b', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x98b8ae16 libsystem_kernel.dylib`__wait4 + 10
libsystem_kernel.dylib`__wait4:
-> 0x98b8ae16 <+10>: jae 0x98b8ae26 ; <+26>
0x98b8ae18 <+12>: calll 0x98b8ae1d ; <+17>
0x98b8ae1d <+17>: popl %edx
0x98b8ae1e <+18>: movl 0x80c8207(%edx), %edx
Executable module set to "/usr/local/bin/mono".
Architecture set to: i386-apple-macosx.
(lldb) thread list
Process 3709 stopped
* thread #1: tid = 0x2237d, 0x98b8ae16 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_50b', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #2: tid = 0x22380, 0x98b8a512 libsystem_kernel.dylib`__psynch_cvwait + 10
thread #3: tid = 0x22381, 0x98b84a0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'tid_1003'
thread #4: tid = 0x22382, 0x98b8b8ce libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'
thread #5: tid = 0x22386, 0x98b8ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
thread #6: tid = 0x22387, 0x98b8ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
thread #7: tid = 0x22393, 0x98b8ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
(lldb) thread backtrace all
* thread #1: tid = 0x2237d, 0x98b8ae16 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_50b', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x98b8ae16 libsystem_kernel.dylib`__wait4 + 10
frame #1: 0x93ee3b19 libsystem_c.dylib`waitpid$UNIX2003 + 48
frame #2: 0x0013798d mono`mono_handle_native_sigsegv(signal=6, ctx=0xbff9445c, info=0xbff9441c) + 541 at mini-exceptions.c:2348 [opt]
frame #3: 0x0018a6f1 mono`sigabrt_signal_handler(_dummy=<unavailable>, _info=<unavailable>, context=<unavailable>) + 145 at mini-posix.c:218 [opt]
frame #4: 0x9244d03b libsystem_platform.dylib`_sigtramp + 43
thread #2: tid = 0x22380, 0x98b8a512 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #0: 0x98b8a512 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x9638d163 libsystem_pthread.dylib`_pthread_cond_wait + 726
frame #2: 0x96390528 libsystem_pthread.dylib`pthread_cond_wait$UNIX2003 + 71
frame #3: 0x002b781b mono`thread_func [inlined] mono_os_cond_wait(mutex=0xb00810b0) + 18 at mono-os-mutex.h:105 [opt]
frame #4: 0x002b7809 mono`thread_func(thread_data=0x00000000) + 457 at sgen-thread-pool.c:118 [opt]
frame #5: 0x9638cc25 libsystem_pthread.dylib`_pthread_body + 138
frame #6: 0x9638cb9b libsystem_pthread.dylib`_pthread_start + 162
frame #7: 0x96389e32 libsystem_pthread.dylib`thread_start + 34
thread #3: tid = 0x22381, 0x98b84a0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'tid_1003'
frame #0: 0x98b84a0a libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x0025373e mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 14 at mono-os-semaphore.h:72 [opt]
frame #2: 0x00253730 mono`finalizer_thread [inlined] mono_coop_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 10 at mono-coop-semaphore.h:40 [opt]
frame #3: 0x00253726 mono`finalizer_thread(unused=0x00000000) + 118 at gc.c:711 [opt]
frame #4: 0x0022cbb9 mono`start_wrapper [inlined] start_wrapper_internal + 540 at threads.c:717 [opt]
frame #5: 0x0022c99d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:764 [opt]
frame #6: 0x002e6b2d mono`inner_start_thread(arg=<unavailable>) + 349 at mono-threads-posix.c:92 [opt]
frame #7: 0x9638cc25 libsystem_pthread.dylib`_pthread_body + 138
frame #8: 0x9638cb9b libsystem_pthread.dylib`_pthread_start + 162
frame #9: 0x96389e32 libsystem_pthread.dylib`thread_start + 34
thread #4: tid = 0x22382, 0x98b8b8ce libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'
frame #0: 0x98b8b8ce libsystem_kernel.dylib`kevent64 + 10
frame #1: 0x93e3f73f libdispatch.dylib`_dispatch_mgr_invoke + 245
frame #2: 0x93e3f3a2 libdispatch.dylib`_dispatch_mgr_thread + 52
thread #5: tid = 0x22386, 0x98b8ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x98b8ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x9638c72a libsystem_pthread.dylib`_pthread_wqthread + 939
frame #2: 0x96389e0e libsystem_pthread.dylib`start_wqthread + 30
thread #6: tid = 0x22387, 0x98b8ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x98b8ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x9638c72a libsystem_pthread.dylib`_pthread_wqthread + 939
frame #2: 0x96389e0e libsystem_pthread.dylib`start_wqthread + 30
thread #7: tid = 0x22393, 0x98b8ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x98b8ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x9638c72a libsystem_pthread.dylib`_pthread_wqthread + 939
frame #2: 0x96389e0e libsystem_pthread.dylib`start_wqthread + 30
(lldb) detach
=================================================================
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.
=================================================================
Process 3709 detached
(lldb) quit
Abort trap: 6
800BC:Desktop xamarin23$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment