core dump occasionally in method openssl_add_all_ciphers

2008-03-22 Thread Krishna Puttaswamy
sorry for the typo in my last mail's subject.
Also, just wanted to mention that the problem below is on a linux box
running CentOS.

Thanks

On Fri, Mar 21, 2008 at 4:48 PM, Krishna Puttaswamy 
[EMAIL PROTECTED] wrote:

 Hello all,

 I have written some code to encrypt/decrypt data and to generate digest of
 a message using openssl.
 I am using the openssl version OpenSSL 0.9.7a Feb 19 2003, and
 occasionally my program dumps core,
 always inside the method openssl_add_all_ciphers.
 The result of the stack trace from the core is below... can someone please
 give me some suggestions as to
 how to fix this problem? Note that this crash happens occasionally and I
 am not able to figure out when it happens.
 These crashes are driving me nuts... is this a bug in this version of the
 library or is there a more stable version
 that i should be using or something? I did a lot of google search and
 found nothing on this one...

 here is the stack trace:
 #0  0x004927a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
 #1  0x004d3815 in raise () from /lib/tls/libc.so.6
 #2  0x004d53d1 in abort () from /lib/tls/libc.so.6
 #3  0x00507cca in __libc_message () from /lib/tls/libc.so.6
 #4  0x0050e55f in _int_free () from /lib/tls/libc.so.6
 #5  0x0050ff01 in _int_realloc () from /lib/tls/libc.so.6
 #6  0x005110fc in realloc () from /lib/tls/libc.so.6
 #7  0x05a774e9 in CRYPTO_get_new_dynlockid () from /lib/libcrypto.so.4
 #8  0x05a77b6a in CRYPTO_realloc () from /lib/libcrypto.so.4
 #9  0x05abe770 in lh_insert () from /lib/libcrypto.so.4
 #10 0x05ac2135 in OBJ_NAME_add () from /lib/libcrypto.so.4
 #11 0x05ac9788 in OpenSSL_add_all_ciphers () from /lib/libcrypto.so.4
 #12 address of my code...

 Thanks,
 -KP




-- 
Thanks,
-KP


Re: core dump occasionally in method openssl_add_all_ciphers

2008-03-22 Thread jimmy bahuleyan

Krishna Puttaswamy wrote:

sorry for the typo in my last mail's subject.
Also, just wanted to mention that the problem below is on a linux box 
running CentOS.


Thanks

On Fri, Mar 21, 2008 at 4:48 PM, Krishna Puttaswamy 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:


Hello all,

I have written some code to encrypt/decrypt data and to generate
digest of a message using openssl.
I am using the openssl version OpenSSL 0.9.7a Feb 19 2003, and
occasionally my program dumps core,
always inside the method openssl_add_all_ciphers.
The result of the stack trace from the core is below... can someone
please give me some suggestions as to
how to fix this problem? Note that this crash happens occasionally
and I am not able to figure out when it happens.
These crashes are driving me nuts... is this a bug in this version
of the library or is there a more stable version
that i should be using or something? I did a lot of google search
and found nothing on this one...



Is it possible to valgrind your application? Or run with environment 
variable MALLOC_CHECK_=2? It is possible that the heap could have been 
corrupted earlier and the effects are showing up just now.


As for a newer version, both 0.9.7 and 0.9.8 series are available.


here is the stack trace:
#0  0x004927a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x004d3815 in raise () from /lib/tls/libc.so.6
#2  0x004d53d1 in abort () from /lib/tls/libc.so.6
#3  0x00507cca in __libc_message () from /lib/tls/libc.so.6
#4  0x0050e55f in _int_free () from /lib/tls/libc.so.6
#5  0x0050ff01 in _int_realloc () from /lib/tls/libc.so.6
#6  0x005110fc in realloc () from /lib/tls/libc.so.6
#7  0x05a774e9 in CRYPTO_get_new_dynlockid () from /lib/libcrypto.so.4
#8  0x05a77b6a in CRYPTO_realloc () from /lib/libcrypto.so.4
#9  0x05abe770 in lh_insert () from /lib/libcrypto.so.4
#10 0x05ac2135 in OBJ_NAME_add () from /lib/libcrypto.so.4
#11 0x05ac9788 in OpenSSL_add_all_ciphers () from /lib/libcrypto.so.4
#12 address of my code...
 
Thanks,
-KP 





--
Thanks,
-KP


-jb
--
I used to think I was indecisive, but now I'm not so sure.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]