From mboxrd@z Thu Jan 1 00:00:00 1970 From: ask@wisdom.weizmann.ac.il To: gcc-gnats@gcc.gnu.org Subject: optimization/2122: Error in openssl Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <20010228124233.4223.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q1/msg01817.html List-Id: >Number: 2122 >Category: optimization >Synopsis: Error in openssl >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Feb 28 04:46:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Alexander Klimov >Release: 3.1 20010226 (CVS) >Organization: >Environment: SunOS iridium 5.6 Generic_105181-20 sun4u sparc SUNW,Ultra-5_10 >Description: It is bug in optimisation, but I could not say exactly where it is, sorry. I bootstraped gcc: ../gcc/configure --prefix=/usr/local/gcc --with-cpu=ultrasparc --enable-languages=c++,objc,f77 &&\ make CFLAGS='-O2' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap && \ make install I build openssl-0.9.6 ( http://www.openssl.org/source/openssl-0.9.6.tar.gz ) Configure --openssldir=/tmp/ssl solaris-sparcv9-gcc && make and run tests (make test) many of them are OK, but one is failed with core dump: cd test ../apps/openssl verify -CApath ../certs ../certs/*.pem Backtrace is: (gdb) where #0 0xf7d74 in BN_mod_exp2_mont () #1 0x992ac in dsa_do_verify () #2 0x98bc0 in DSA_verify () #3 0xa9ba4 in EVP_VerifyFinal () #4 0xfc310 in ASN1_verify () #5 0xcaffc in internal_verify () #6 0xcab40 in X509_verify_cert () #7 0x31f38 in check () #8 0x31af0 in verify_main () #9 0x312d4 in do_cmd () #10 0x31054 in main () I changed in Makefile.ssl CFLAG= -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -mcpu=ultrasparc -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC -DMD5_ASM -O3 to -O2 and try make clean && make && make test now all tests are OK >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: