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

libcrypto.so missing crash #18

Closed
FrederickGreat opened this issue Aug 26, 2013 · 10 comments
Closed

libcrypto.so missing crash #18

FrederickGreat opened this issue Aug 26, 2013 · 10 comments

Comments

@FrederickGreat
Copy link

I have OpenCL, OpenSSL and ATI graphics drivers installed. I extracted the zip to my desktop, opened the directory in terminal, ran xbuild scallion.sln with no error, then ran

sudo mono scallion/bin/Debug/scallion.exe -d 0 prefix

and got

Cooking up some delicions scallions...
Putting 1 patterns into 1 buckets.
Using kernel optimized from file kernel.cl (Optimized4_9)
Using work group size 64
Compiling kernel... done.

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for OpenSSL.Core.Native ---> System.DllNotFoundException: libcrypto.so
at (wrapper managed-to-native) OpenSSL.Core.Native:ERR_load_crypto_strings ()
at OpenSSL.Core.Native..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at OpenSSL.Crypto.RSA..ctor () [0x00000] in :0
at scallion.RSAWrapper..ctor () [0x00000] in :0
at scallion.CLRuntime+KernelInput..ctor (Int32 num_exps) [0x00000] in :0
at scallion.CLRuntime.CreateInput () [0x00000] in :0
at System.Threading.Thread.StartInternal () [0x00000] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for OpenSSL.Core.Native ---> System.DllNotFoundException: libcrypto.so
at (wrapper managed-to-native) OpenSSL.Core.Native:ERR_load_crypto_strings ()
at OpenSSL.Core.Native..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at OpenSSL.Crypto.RSA..ctor () [0x00000] in :0
at scallion.RSAWrapper..ctor () [0x00000] in :0
at scallion.CLRuntime+KernelInput..ctor (Int32 num_exps) [0x00000] in :0
at scallion.CLRuntime.CreateInput () [0x00000] in :0
at System.Threading.Thread.StartInternal () [0x00000] in :0

@pharaon
Copy link

pharaon commented Nov 14, 2013

OpenSSL.Core.Native ---> System.DllNotFoundException: libcrypto.so

is there "libcrypto.so" somewhere in your PC ?

@lachesis
Copy link
Owner

libcrypto.so is a part of openssl on my box.

$ locate libcrypto.so
/usr/lib/libcrypto.so
/usr/lib/libcrypto.so.1.0.0
/usr/lib32/libcrypto.so
/usr/lib32/libcrypto.so.1.0.0

It might be worth trying to install the 32-bit version of OpenSSL. I'm not sure if scallion depends on 32 bit or 64 bit libs on Linux.

@freethenation
Copy link
Collaborator

Cleaning up and closing this issue. Reopen if your still having issues.

@eduncan911
Copy link

I have the same problem.

I had Scallion working on Windows 8.1, an older Debian install, etc. I just did a fresh install of a machine I built to do this specifically:

Ubuntu 12.04 LTS Fresh install.
sudo apt-get install openssl
sudo apt-get install mono-complete
sudo apt-get install fglrx
AMD Catalyst 14.12 (trying the latest)
AMD APP SDK 2.9 (trying the latest)

Then I grab the default branch from git, which is "gpg", and do:
cd scallion/
xbuild scallion.sln
cd scallion/scallion/bin/Debug
~/code/scallion/scallion/bin/Debug$ mono ./scallion.exe -l

I also tried without mono prefix, -d, etc.

Error:

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for OpenSSL.Core.Native ---> System.DllNotFoundException: libcrypto.so
  at (wrapper managed-to-native) OpenSSL.Core.Native:ERR_load_crypto_strings ()
  at OpenSSL.Core.Native..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at OpenSSL.Core.ThreadInitialization.InitializeThreads () [0x00000] in <filename unknown>:0 
  at scallion.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for OpenSSL.Core.Native ---> System.DllNotFoundException: libcrypto.so
  at (wrapper managed-to-native) OpenSSL.Core.Native:ERR_load_crypto_strings ()
  at OpenSSL.Core.Native..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at OpenSSL.Core.ThreadInitialization.InitializeThreads () [0x00000] in <filename unknown>:0 
  at scallion.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 

Again, I've built from source 2 times earlier on existing machines (one mining rig, that seemed to work actually) and another Debian machine. But this new machine is giving me problems.

I'm more than happy to wipe it and start over using a specific Linux install (Debian?), specific AMD drivers (the old 11?) and SDK (2.7?), etc. Let me know.

@thebaer
Copy link

thebaer commented Apr 9, 2015

@eduncan911 I was having the same problem on a fresh install of Ubuntu 14.04. Doing sudo apt-get install libcurl4-openssl-dev solved it for me.

@theintern1
Copy link

Hi I am having a similar issue and installing libcurl4-openssl-dev sadly did not solve it. When I try to use scallion, it gives me this error:
~/Downloads/scallion/scallion/bin/Debug$ mono scallion.exe ipad

Unhandled Exception:
System.DllNotFoundException: libOpenCL.so
at (wrapper managed-to-native) OpenTK.Compute.CL10.CL/Core:GetPlatformIDs (uint,intptr_,uint_)
at OpenTK.Compute.CL10.CL.GetPlatformIDs (UInt32 num_entries, System.IntPtr* platforms, System.UInt32* num_platforms) [0x00000] in :0
at scallion.CLDeviceInfo.GetPlatformIds () [0x00000] in :0
at scallion.CLDeviceInfo.GetDeviceIds () [0x00000] in :0
at scallion.CLRuntime.GetDevices () [0x00000] in :0
at scallion.Program.Main (System.String[] args) [0x00000] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libOpenCL.so
at (wrapper managed-to-native) OpenTK.Compute.CL10.CL/Core:GetPlatformIDs (uint,intptr_,uint_)
at OpenTK.Compute.CL10.CL.GetPlatformIDs (UInt32 num_entries, System.IntPtr* platforms, System.UInt32* num_platforms) [0x00000] in :0
at scallion.CLDeviceInfo.GetPlatformIds () [0x00000] in :0
at scallion.CLDeviceInfo.GetDeviceIds () [0x00000] in :0
at scallion.CLRuntime.GetDevices () [0x00000] in :0
at scallion.Program.Main (System.String[] args) [0x00000] in :0

Does anyone know how to fix this?

@chris-gunawardena
Copy link

chris-gunawardena commented Aug 25, 2016

sudo yum install openssl-devel worked for me on Amazon Linux AMI with NVIDIA GRID GPU Driver. (Only got 459.1MH/s on a g2.2xlarge. )

@loning
Copy link

loning commented Nov 21, 2016

apt-get install libssl-dev, works for me

@jrruethe
Copy link

I can confirm that "apt-get install libssl-dev" worked for me as well.

@exploitagency
Copy link

Or on Kali this package...
apt-get install libssl1.0-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests