Re: Hi, I need help with initialization of OpenSSL

2013-10-10 Thread Angelin Lalev
Just to clear everything and finish up. I had global int variable named "read"... On Thu, Oct 10, 2013 at 8:33 PM, Angelin Lalev wrote: > SOLVED: The very basic thing that get's the whole thing broken seems > to be VERY BASIC understanding of C. I did cut out only the > initialization code in a s

Re: Hi, I need help with initialization of OpenSSL

2013-10-10 Thread Angelin Lalev
SOLVED: The very basic thing that get's the whole thing broken seems to be VERY BASIC understanding of C. I did cut out only the initialization code in a separate program and it worked fine. Somewhere in the program before the initialization of openssl I'm having pointer problems of some sort.

Re: Hi, I need help with initialization of OpenSSL

2013-10-10 Thread Jeff Trawick
On Thu, Oct 10, 2013 at 12:54 PM, Angelin Lalev wrote: > (gdb) r > Starting program: /home/ventsi/fing/fing > > Program received signal SIGSEGV, Segmentation fault. > 0x0086d1fc in read () > (gdb) info threads > Id Target Id Frame > * 1process 13262 "fing" 0x0086d1f

Re: Hi, I need help with initialization of OpenSSL

2013-10-10 Thread Angelin Lalev
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 wrote: > (gdb) r > Starting program: /home/ventsi/fing/fing > > Program r

Re: Hi, I need help with initialization of OpenSSL

2013-10-10 Thread Angelin Lalev
(gdb) r Starting program: /home/ventsi/fing/fing Program received signal SIGSEGV, Segmentation fault. 0x0086d1fc in read () (gdb) info threads Id Target Id Frame * 1process 13262 "fing" 0x0086d1fc in read () On Thu, Oct 10, 2013 at 7:19 PM, Jeff Trawick wrote: > O

Re: Hi, I need help with initialization of OpenSSL

2013-10-10 Thread Jeff Trawick
On Thu, Oct 10, 2013 at 11:50 AM, Angelin Lalev 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_metho

Hi, I need help with initialization of OpenSSL

2013-10-10 Thread Angelin Lalev
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, S

Re: Hi, I need help with initialization of OpenSSL

2013-10-10 Thread Angelin Lalev
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 wrote: > Greetings, > I could use some help. > > I'm getting segmentation fault from this code: > >/* Init the openssl library */ > SSL_load_error_strings(); > SS