scallion icon indicating copy to clipboard operation
scallion copied to clipboard

mono random exception and crash my mac

Open ben-nsng opened this issue 7 years ago • 0 comments

GPU : Integrated Intel Iris Pro 1536 MB CPU : 2.2 GHz Intel Core i7 OS : macOS High Sierra 10.13.2

LoopIteration:259  HashCount:4345.30MH  Speed:123.4MH/s  Runtime:00:00:35  Predicted:00:00:00

Stacktrace:
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) OpenSSL.Core.Native.i2d_RSAPublicKey (intptr,byte**) [0x00002] in <38c0e4f76c27429fb3b78d7e3d807f68>:0
  at scallion.RSAWrapper.get_DER () [0x00033] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0
  at scallion.OnionToolConfig.GetPublicKeyData (scallion.RSAWrapper,int&) [0x00001] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0
  at scallion.CLRuntime.CreateInput () [0x0013c] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0
  at System.Threading.ThreadHelper.ThreadStart_Context (object) [0x00014] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x0002b] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x0004d] in <4fdc5ed61a074cafb49fa42deb20d521>:0

Native stacktrace:

    0   mono                                0x0000000107c8b3d1 mono_handle_native_crash + 257
    1   mono                                0x0000000107cf2e86 altstack_handle_and_restore + 70
    2   libcrypto.35.dylib                  0x00007fff583e8524 BN_num_bits + 68
    3   libcrypto.35.dylib                  0x00007fff583b7256 bn_i2c + 70
    4   libcrypto.35.dylib                  0x00007fff583b2851 asn1_ex_i2c + 113
    5   libcrypto.35.dylib                  0x00007fff583b2229 asn1_i2d_ex_primitive + 89
    6   libcrypto.35.dylib                  0x00007fff583b1910 ASN1_item_ex_i2d + 288
    7   libcrypto.35.dylib                  0x00007fff583b218e asn1_template_ex_i2d + 1006
    8   libcrypto.35.dylib                  0x00007fff583b1bc1 ASN1_item_ex_i2d + 977
    9   libcrypto.35.dylib                  0x00007fff583b1789 asn1_item_flags_i2d + 233
    10  libcrypto.35.dylib                  0x00007fff583b17e7 ASN1_item_i2d + 39
    11  libcrypto.35.dylib                  0x00007fff5849b00f i2d_RSAPublicKey + 47
    12  ???                                 0x000000010a96a895 0x0 + 4472613013
    13  mscorlib.dll.dylib                  0x0000000109ddac07 System_Threading_ThreadHelper_ThreadStart_Context_object + 151
    14  mscorlib.dll.dylib                  0x0000000109dd88a1 System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 33
    15  mono                                0x0000000107be55f4 mono_jit_runtime_invoke + 1316
    16  mono                                0x0000000107ddd238 do_runtime_invoke + 88
    17  mono                                0x0000000107da931e start_wrapper + 718
    18  libsystem_pthread.dylib             0x00007fff5a0e06c1 _pthread_body + 340
    19  libsystem_pthread.dylib             0x00007fff5a0e056d _pthread_body + 0
    20  libsystem_pthread.dylib             0x00007fff5a0dfc5d thread_start + 13

Debug info from gdb:

LoopIteration:263  HashCount:4412.41MH  Speed:123.5MH/s  Runtime:00:00:35  Predicted:00:00:00
(lldb) command source -s 0 '/tmp/mono-gdb-commands.7ihMZV'
Executing commands in '/tmp/mono-gdb-commands.7ihMZV'.
(lldb) process attach --pid 3792
LoopIteration:265  HashCount:4445.96MH  Speed:115.3MH/s  Runtime:00:00:38  Predicted:00:00:00 

cat /tmp/mono-gdb-commands.7ihMZV 
process attach --pid 3792
thread list
thread backtrace all
detach
quit

warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Process 3792 stopped
* thread #1, name = 'tid_307', queue = 'opencl_runtime', stop reason = signal SIGSTOP
    frame #0: 0x00007fff59f9b7c2 libsystem_kernel.dylib`mach_msg_trap + 10
libsystem_kernel.dylib`mach_msg_trap:
-> 0x7fff59f9b7c4 <+0>: movq %rcx, %r10
   0x7fff59f9b7c7 <+3>: movl $0x1000020, %eax ; imm = 0x1000020
Target 0: (mono) stopped

Executable module set to "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono".
Architecture set to: x86_64h-apple-macosx.
(lidb) thread list
Process 3792 stopped
* thread #1: tid = 0xf69d, 0x00007fff59f9b7c2 libsystem_kernel.dylib`mach_msg_trap + 10, name = 'tid_307', queue = 'opencl_runtime', stop reason = signal SIGSTOP
  thread #2: tid = 0xf69f, 0x00007fff59fa4cee libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
  thread #3: tid = 0xf6a0, 0x00007fff59fa4cee libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
  thread #4: tid = 0xf6a1, 0x00007fff59f9b7fe libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
  thread #5: tid = 0xf6a2, 0x00007fff59fa5562 libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #6: tid = 0xf6a3, 0x00007fff59fa5562 libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #7: tid = 0xf6c3, 0x00007fff59fa5562 libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #8: tid = 0xf6c4, 0x00007fff59fa5502 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_4803'
  thread #9: tid = 0xf6e5, 0x00007fff59fa5562 libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #10: tid = 0xf6e8, 0x00007fff59fa5562 libsystem_kernel.dylib`__workq_kernreturn + 10
(lldb) tread backtrace all

ben-nsng avatar Feb 13 '18 18:02 ben-nsng