Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 52478 - gcc miscompiling sha1 digest in rpmio/digest.c
gcc miscompiling sha1 digest in rpmio/digest.c
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
alpha Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-08-23 23:52 EDT by Jeff Johnson
Modified: 2007-04-18 12:36 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-04 16:56:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jeff Johnson 2001-08-23 23:52:52 EDT
Description of Problem:
gcc-2.96-93 in 7.1 (and gcc-2.96-97 in 7.2) is miscompiling
rpmio/digest.c sha1 digest. Compiling with -O0 works, as
does adding debugging messages.

Version-Release number of selected component (if applicable):

How Reproducible:

Steps to Reproduce:
1.  rpm --rebuild rpm-4.0.3-0.95.src.rpm
2. cd rpmio
3. make tdigest && ../tdigest --fipsa

Actual Results:
2c80fcd2cf957725c03d03c123e666be6b97d925     abc
a9993e364706816aba3e25717850c26c9cd0d89d     FIPS PUB 180-1 Appendix A

Expected Results:
a9993e364706816aba3e25717850c26c9cd0d89d     abc
a9993e364706816aba3e25717850c26c9cd0d89d     FIPS PUB 180-1 Appendix A

Additional Information:
There's debugging code in rpmio/digest.c to reproduce the intermediate
FIPS results if necessary (but defining SHA_DEBUG causes problem
to disappear).
Comment 1 Jeff Johnson 2001-08-23 23:55:18 EDT
Note that rpmio/digest.o is being compiled with -O0 in
the rpm-4.0.3-0.95 package.
Comment 2 Vladimir Makarov 2004-10-04 16:56:04 EDT
  I am closing this case.  gcc-2.96 is too old.  Its release cycle was
finished long ago.  Also we don't support alpha anymore.

Note You need to log in before you can comment on or make changes to this bug.