This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

optimization/2122: Error in openssl



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]