lachesis / scallion

GPU-based Onion Hash generator
Other
1.25k stars 164 forks source link

Computation fails, macOS 10.13.4, homebrew mono #136

Open ctshh opened 5 years ago

ctshh commented 5 years ago

This is under macOS 10.13.4

The computation fails after about a minute and stops with the below error.

Info only, in case someone might get some useful debug info from it. Thanks for a cool tool, btw. ;)

$ mono Downloads/scallion-v2.0/scallion.exe -d 1 <some_key>
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Cooking up some delicions scallions...
Using kernel optimized from file kernel.cl (Optimized4)
Using work group size 32
Compiling kernel... done.
Testing SHA1 hash...
CPU SHA-1: d3486ae9136e7856bc42212385ea797094475802
GPU SHA-1: d3486ae9136e7856bc42212385ea797094475802
Looks good!
LoopIteration:39221  HashCount:658019,19MH  Speed:4077,5MH/s  Runtime:00:02:41  Predicted:51.03:12:50  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 <1e9f48e5e12b467fac5ee4c865427163>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <1e9f48e5e12b467fac5ee4c865427163>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <1e9f48e5e12b467fac5ee4c865427163>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x0002b] in <1e9f48e5e12b467fac5ee4c865427163>:0
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <1e9f48e5e12b467fac5ee4c865427163>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x0004d] in <1e9f48e5e12b467fac5ee4c865427163>:0

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper managed-to-native) OpenSSL.Core.Native.i2d_RSAPublicKey(intptr,byte**)
  at scallion.RSAWrapper.get_DER () [0x00033] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0 
  at scallion.OnionToolConfig.GetPublicKeyData (scallion.RSAWrapper rsa, System.Int32& exp_index) [0x00001] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0 
  at scallion.CLRuntime.CreateInput () [0x0013c] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <1e9f48e5e12b467fac5ee4c865427163>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <1e9f48e5e12b467fac5ee4c865427163>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1e9f48e5e12b467fac5ee4c865427163>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <1e9f48e5e12b467fac5ee4c865427163>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <1e9f48e5e12b467fac5ee4c865427163>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper managed-to-native) OpenSSL.Core.Native.i2d_RSAPublicKey(intptr,byte**)
  at scallion.RSAWrapper.get_DER () [0x00033] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0 
  at scallion.OnionToolConfig.GetPublicKeyData (scallion.RSAWrapper rsa, System.Int32& exp_index) [0x00001] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0 
  at scallion.CLRuntime.CreateInput () [0x0013c] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <1e9f48e5e12b467fac5ee4c865427163>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <1e9f48e5e12b467fac5ee4c865427163>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1e9f48e5e12b467fac5ee4c865427163>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <1e9f48e5e12b467fac5ee4c865427163>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <1e9f48e5e12b467fac5ee4c865427163>:0 
LoopIteration:39222  HashCount:658035,97MH  Speed:4077,5MH/s  Runtime:00:02:41  Predicted:51.03:12:47  
$

$ mono --version
Mono JIT compiler version 5.18.0.225 (tarball Thu Jan 10 03:09:05 GMT 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           
    SIGSEGV:       altstack
    Notification:  kqueue
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    Interpreter:   yes
    LLVM:          supported, not enabled.
    Suspend:       preemptive
    GC:            sgen (concurrent by default)
$ 

$ mono Downloads/scallion-v2.0/scallion.exe -l
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Id:0 Name:Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
    PreferredGroupSizeMultiple:1 ComputeUnits:8 ClockFrequency:3600
    MaxConstantBufferSize:65536 MaxConstantArgs:8 MaxMemAllocSize:8589934592

Id:1 Name:GeForce GTX 1080 Ti
    PreferredGroupSizeMultiple:32 ComputeUnits:28 ClockFrequency:1290
    MaxConstantBufferSize:65536 MaxConstantArgs:8 MaxMemAllocSize:2952790016

Id:2 Name:AMD Radeon Pro 560 Compute Engine
    PreferredGroupSizeMultiple:64 ComputeUnits:16 ClockFrequency:907
    MaxConstantBufferSize:65536 MaxConstantArgs:8 MaxMemAllocSize:1073741824

$