On Wednesday May 18th 2005 Eddy Tan wrote:

> Is it a bug on the kernel or openssl?
> 
> $ openssl smime -encrypt -in in.txt -out out.enc cert.pem 
> Segmentation fault

At any rate this is an application bug, not a kernel bug.
 
> I?m running debian linux (kernel 2.6.8-2-386) with openssl 0.9.7e-3
> (tried to upgrade openssl to 0.9.7g-1 did not help).

There was indeed this very bug in OpenSSL version 0.9.7d, which was
patched in 0.9.7e and even in later Debian packages of 0.9.7d. But it
should no longer be present in the versions you tested.
 
Try running 'type' openssl to determine where your exact application
lives:

$ type openssl
openssl is /usr/bin/openssl

And then verifying that it is indeed loading the libraries from the correct
locations (here on Debian 'sid):

$ ldd /usr/bin/openssl
        libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0xb7f98000)
        libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 (0xb7e95000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb7e92000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7d5d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000)

It could be that you are inadvertently using an older or mixed version
of openssl and/or libraries if you have remnants of pieces under
/usr/local say.

> the same command (same version of openssl) but on different linux
> kernel works.

Again suggesting some local mixup.
-- 
Marco Roeland
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to