I tried many things, but I'm not sure if I did the most elementary - to reboot the virtual machine. But If the problem is gone this way, we cannot reproduce the problem anymore
On Thu, Oct 10, 2013 at 7:54 PM, Angelin Lalev <lalev.ange...@gmail.com> wrote: > (gdb) r > Starting program: /home/ventsi/fing/fing > > Program received signal SIGSEGV, Segmentation fault. > 0x000000000086d1fc in read () > (gdb) info threads > Id Target Id Frame > * 1 process 13262 "fing" 0x000000000086d1fc in read () > > On Thu, Oct 10, 2013 at 7:19 PM, Jeff Trawick <traw...@gmail.com> wrote: >> On Thu, Oct 10, 2013 at 11:50 AM, 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 () >> >> >> Run "info threads" and see what the other threads are doing. ("thread n" >> followed by "backtrace") Presumably the crash is on another thread since it >> is "hard" to make read() crash. >> >> >>> >>> #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 >> >> >> >> >> -- >> Born in Roswell... married an alien... >> http://emptyhammock.com/ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org