I forgot to state the version of OpenSSL I'm using. It's 1.0.1e
On Thu, Oct 10, 2013 at 6:50 PM, Angelin Lalev <lalev.ange...@gmail.com> wrote: > Greetings, > I could use some help. > > I'm getting segmentation fault from this code: > > /* Init the openssl library */ > SSL_load_error_strings(); > SSL_library_init(); > > ctx=SSL_CTX_new(SSLv3_client_method()); > > The backtrace looks like this: > > Program received signal SIGSEGV, Segmentation fault. > 0x000000000086d1fc in read () > (gdb) backtrace > #0 0x000000000086d1fc in read () > #1 0x00000000004eb3fe in RAND_poll () at rand_unix.c:347 > #2 0x00000000004eabed in ssleay_rand_bytes (buf=0x88ed00 "", num=16, > pseudo=1) > at md_rand.c:394 > #3 0x00000000004eb0b0 in ssleay_rand_pseudo_bytes (buf=0x88ed00 "", num=16) > at md_rand.c:543 > #4 0x000000000045d352 in RAND_pseudo_bytes (buf=0x88ed00 "", num=16) > at rand_lib.c:172 > #5 0x0000000000424163 in SSL_CTX_new (meth=0x5c4200) at ssl_lib.c:1808 > #6 0x0000000000402ca2 in main (argc=1, argv=0x7fffffffe718) at fing.c:253 > > My system is Ubuntu Server LTS 12.10 and it's currently installed in a > VirtualBox virtual machine. > I'm not at all proficient in C, even more in Linux development and I > cannot by myself determine what > I did to break things. Up to one moment, the program was working, at > the next recompilation/reboot it just > stopped :-) I do a binary which will be located on initramfs system, > so it is statically compiled. > OpenSSL is compiled with the following config options > > ./config -d no-dso no-shared ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org