I tried to compile 0.9.8a on a Redhat 6.2 box. I get this:
> LD_LIBRARY_PATH=/usr/src/redhat/BUILD/openssl-0.9.8a gdb test/rsa_test
GNU gdb 19991004
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run
Starting program: /usr/src/redhat/BUILD/openssl-0.9.8a/test/rsa_test
Program received signal SIGSEGV, Segmentation fault.
0x400c40f1 in bn_mul_add_words () from
/usr/src/redhat/BUILD/openssl-0.9.8a/libcrypto.so.6
(gdb) bt
#0 0x400c40f1 in bn_mul_add_words () from
/usr/src/redhat/BUILD/openssl-0.9.8a/libcrypto.so.6
#1 0x10 in ?? ()
Cannot access memory at address 0xbeb74600
I tried to add -g in the gcc options, but I still don't get any more
detailed backtrace.
OpenSSL 0.9.8a 11 Oct 2005
built on: Mon Jan 2 10:20:09 EET 2006
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long)
aes(partial)
+blowfish(idx)
compiler: gcc -g -I/scratch/linux/zlib-1.2.3 -fPIC -DOPENSSL_PIC -DZLIB
+-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -D HAVE_DLFCN_H -DSHA1_ASM -
DMD5_ASM
+-DRMD160_ASM -DAES_ASM -DL_ENDIAN -DTERMIO -Wall -
DOPENSSL_BN_ASM_PART_WORDS
+-DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
This happens with both gcc gcc-2.96-112.7.1 and gcc 3.3.
It happens on an Pentium 3 box and on a Pentium 75.
Also, if I compile openssh against that openssl version, I get
> gdb /usr/sbin/sshd
GNU gdb 19991004
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols
found)...
(gdb) run
Starting program: /usr/sbin/sshd
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x808f971 in BN_pseudo_rand ()
(gdb) bt
#0 0x808f971 in BN_pseudo_rand ()
Cannot access memory at address 0xbb913da
(gdb) quit
Some of the functions run fine, for example "openssl speed aes".
Openssl-0.9.8a compiled on a Fedora Core box with gcc-4.1.0-0.12 appears
to
run just fine.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager [EMAIL PROTECTED]