public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/3771: Component of openssl fails with optimisation greater than -O1
@ 2001-08-12 9:11 rodrigc
0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2001-08-12 9:11 UTC (permalink / raw)
To: dave, gcc-bugs, gcc-prs, nobody, rodrigc
Synopsis: Component of openssl fails with optimisation greater than -O1
State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Sun Aug 12 09:11:04 2001
State-Changed-Why:
Can you follow the instructions at:
http://gcc.gnu.org/bugs.html and provide
preprocessed source code of the problem?
There have been some optimization bugs fixed in
gcc 3.0.1
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3771&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/3771: Component of openssl fails with optimisation greater than -O1
@ 2001-09-15 19:42 rodrigc
0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2001-09-15 19:42 UTC (permalink / raw)
To: dave, gcc-bugs, gcc-prs, nobody, rodrigc
Synopsis: Component of openssl fails with optimisation greater than -O1
State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Sep 15 19:42:23 2001
State-Changed-Why:
Preprocessed source not provided
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3771&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* c/3771: Component of openssl fails with optimisation greater than -O1
@ 2001-07-23 1:56 dave
0 siblings, 0 replies; 3+ messages in thread
From: dave @ 2001-07-23 1:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 3771
>Category: c
>Synopsis: Component of openssl fails with optimisation greater than -O1
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 23 01:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: dave@datatone.co.uk
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
The public domain software 'openssl-0.9.6b' fails when compiled with gcc-3.0 and gcc-3.0-20010615 when -O3 or -O2 optimisation is used. It works with -O0 and -O1.
The symptom is that:
openssl rsa -noout -text -in <key-file>
produces an error to the effect that the key file could not be read.
I discovered that this was due to the fact that some pointer arithmetic in the file:
openssl-0.9.6b/crypto/pem/pem_lib.c
was not working. A pointer to char is passed to the function: PEM_get_EVP_CIPHER_INFO. This pointer points to a buffer containing the header from the key file. the intention is to check various fields in the header. There is code thus:
header+=11;
if(*header=='4') ...
I found that header was being incremented by 11*2 characters, rather than by 11. I also found that the problem would come and go as I placed 'print' statements into the code to try to discover what the problem was. Because of this apparent dependence on the local code, I began to suspect problems introduced in optimisation. I therefore tried compiling the package with different levels of optimisation turned on. I found that it worked with -O0 and -O1; but not with -O2 and -O3.
>How-To-Repeat:
Attempt to compile and run openssl-0.9.6b
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-15 19:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-12 9:11 c/3771: Component of openssl fails with optimisation greater than -O1 rodrigc
-- strict thread matches above, loose matches on Subject: below --
2001-09-15 19:42 rodrigc
2001-07-23 1:56 dave
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).