"Random" errors in openssl apps

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

"Random" errors in openssl apps

Diffenderfer, Randy
"Random" errors in openssl apps

Folks,

Using RedHat ES3.0 stock openssl RPM, for which "openssl version" yields 'OpensSSL 0.9.7a Fed 19 2003", I get "random" SEGVs while doing pk7out or verify operations using "openssl smime -pk7out" or "openssl smime -verify".  The discouraging thing about this is that repeating the failed operation has not reproduced the failure -- the message is processed successfully.

I have enabled the capture of core files, and get at least a hint of the problem, as below.  However, the RH binaries are not symbol laden, so a hint is all I get.

I'm hoping someone has seen something like this and has an answer in hand.  I suspect that my only option is to get the RH source, build with symbols and wait for something bad to happen for me to look at.

Anybody have other suggestions?

Thanks,
rnd

=====> cut here <=====
[ verify operation ]

$ gdb openssl corefile
...
Core was generated by `/usr/bin/openssl smime -verify -in entity.verify -inform SMIME'.
Program terminated with signal 11, Segmentation fault.
...
(gdb) where
#0  0x00f3c4ec in memcpy () from /lib/tls/libc.so.6
#1  0x009901a1 in BIO_new_mem_buf () from /lib/libcrypto.so.4
#2  0x0098f136 in BIO_write () from /lib/libcrypto.so.4
#3  0x009dc4cd in SMIME_text () from /lib/libcrypto.so.4
#4  0x009dbe5d in SMIME_read_PKCS7 () from /lib/libcrypto.so.4
#5  0x08082302 in msg_cb ()
#6  0x08054bbc in ?? ()
#7  0x0000000a in ?? ()
#8  0xbfffd148 in ?? ()
#9  0xbfffcbb8 in ?? ()
#10 0x08055062 in ?? ()
#11 0xbfffd070 in ?? ()
#12 0x08097684 in ?? ()
#13 0xbfffcbe8 in ?? ()
#14 0x00997994 in lh_doall_arg () from /lib/libcrypto.so.4
#15 0x08054930 in ?? ()
#16 0x0a04fb48 in ?? ()
#17 0x0000000a in ?? ()
#18 0xbfffd148 in ?? ()
#19 0x00ff6240 in _IO_wide_data_2 () from /lib/tls/libc.so.6
#20 0x00cf11ec in _rtld_local () from /lib/ld-linux.so.2
#21 0x00cf1d90 in ?? ()
#22 0x00cf11ec in _rtld_local () from /lib/ld-linux.so.2
#23 0x00cf11ec in _rtld_local () from /lib/ld-linux.so.2
#24 0x00ed3084 in ?? () from /lib/tls/libc.so.6
#25 0x00ed44f8 in ?? () from /lib/tls/libc.so.6
#26 0x00000000 in ?? ()

[ pk7out operation ]

$ gdb openssl corefile
...
Core was generated by `/usr/bin/openssl smime -pk7out -in entity.decrypt -inform SMIME'.
Program terminated with signal 11, Segmentation fault.
...
(gdb) where
#0  0x0037e4ec in memcpy () from /lib/tls/libc.so.6
#1  0x0027f1a1 in BIO_new_mem_buf () from /lib/libcrypto.so.4
#2  0x0027e136 in BIO_write () from /lib/libcrypto.so.4
#3  0x002cb4cd in SMIME_text () from /lib/libcrypto.so.4
#4  0x002cae5d in SMIME_read_PKCS7 () from /lib/libcrypto.so.4
#5  0x08082302 in msg_cb ()
#6  0x08054bbc in ?? ()
#7  0x0000000a in ?? ()
#8  0xbfff92a8 in ?? ()
#9  0xbfff8d18 in ?? ()
#10 0x08055062 in ?? ()
#11 0xbfff91d0 in ?? ()
#12 0x08097684 in ?? ()
#13 0xbfff8d48 in ?? ()
#14 0x00286994 in lh_doall_arg () from /lib/libcrypto.so.4
#15 0x08054930 in ?? ()
#16 0x0a01eb48 in ?? ()
#17 0x0000000a in ?? ()
#18 0xbfff92a8 in ?? ()
#19 0x00438240 in _IO_wide_data_2 () from /lib/tls/libc.so.6
#20 0x005d71ec in _rtld_local () from /lib/ld-linux.so.2
#21 0x005d7d90 in ?? ()
#22 0x005d71ec in _rtld_local () from /lib/ld-linux.so.2
#23 0x005d71ec in _rtld_local () from /lib/ld-linux.so.2
#24 0x00315084 in ?? () from /lib/tls/libc.so.6
#25 0x003164f8 in ?? () from /lib/tls/libc.so.6
#26 0x00000000 in ?? ()