This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 16557 - mawk-1.3.3-4 miscompiled by gcc-2.96-52
mawk-1.3.3-4 miscompiled by gcc-2.96-52
Product: Red Hat Linux
Classification: Retired
Component: mawk (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
Depends On:
  Show dependency treegraph
Reported: 2000-08-18 21:45 EDT by Red Hat Bugzilla
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-08-19 20:15:23 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 Red Hat Bugzilla 2000-08-18 21:45:57 EDT
mawk-1.3.3-4 compiled by gcc-2.96-52 dumps core:

# mawk -f firstversions.awk mm
libc {
zsh: 5431 segmentation fault  mawk -f firstversions.awk mm

firstversions.awk and mm can be found at:
Comment 1 Red Hat Bugzilla 2000-08-18 21:56:38 EDT
array.c in mawk 1.3.3-4 is miscompiled by -O2. -O seems ok.
Comment 2 Red Hat Bugzilla 2000-08-19 13:43:33 EDT
Using -O2 -fno-strength-reduce on array.c generates a working mawk.
BTW, gcc 2.96 20000819 still miscompiles mawk.
Comment 3 Red Hat Bugzilla 2000-08-19 20:15:21 EDT
Jakub is fixing this problem in gcc. Thanks for your report.
Comment 4 Red Hat Bugzilla 2000-08-21 09:51:53 EDT
a workaround was made in mawk as well.

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