Bug 222080

Summary: double free or corruption
Product: [Fedora] Fedora Reporter: Jim Treadway <jim>
Component: gawkAssignee: Karel Zak <kzak>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: high Docs Contact:
Priority: medium    
Version: rawhideKeywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-16 00:52:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Awk script
none
Configuration file none

Description Jim Treadway 2007-01-10 02:09:00 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061222 Firefox/2.0.0.1

Description of problem:
awk crashes with the following backtrace:

*** glibc detected *** awk: double free or corruption (fasttop): 0x0882c3a0 ***
======= Backtrace: =========
/lib/libc.so.6[0x166ffd]
/lib/libc.so.6(cfree+0x90)[0x16a650]
awk(free_wstr+0x1f)[0x806fedf]
awk(unref+0x53)[0x806ff73]
awk(reset_record+0x68)[0x8066598]
awk(set_record+0x10)[0x8067db0]
awk[0x8069b98]
awk(do_input+0x27)[0x806d167]
awk(main+0x1063)[0x806f7f3]
/lib/libc.so.6(__libc_start_main+0xdc)[0x116e5c]
awk[0x804c9c1]


Version-Release number of selected component (if applicable):
gawk-3.1.5-12.fc6

How reproducible:
Always


Steps to Reproduce:
1. get the attached files (part of an old Busybox build)
2. run 'awk -f build-config.awk Config.h >Config.temp'


Actual Results:


Expected Results:


Additional info:

Comment 1 Jim Treadway 2007-01-10 02:10:19 UTC
Created attachment 145217 [details]
Awk script

Comment 2 Jim Treadway 2007-01-10 02:11:19 UTC
Created attachment 145218 [details]
Configuration file

Comment 3 Karel Zak 2007-01-10 05:16:43 UTC
I know about this bug. Already fixed in FC6.

Comment 4 Jim Treadway 2007-01-10 20:18:44 UTC
Just to be clear, this is in (yesterday's) FC7 rawhide.  Did I choose the
appropriate "version" setting for this bug?

Comment 5 Karel Zak 2007-01-11 08:36:48 UTC
Fixed. Update to gawk-3.1.5-12.fc7

Comment 6 Jim Treadway 2007-01-11 20:43:51 UTC
The same problem exists in gawk-3.1.5-12.fc7.  Reverting to gawk-3.1.5-11 fixes
the problem.

Comment 7 Karel Zak 2007-01-12 14:37:39 UTC
It seems you found a new double free() problem :-(

I've created simplified test:
   echo -e "AAA BBX\nAAA BBY" | gawk ' /^AAA BB/ { x = substr($2, 1); $1 =
"FOO"; print $0 }'

Fixed. Update to gawk-3.1.5-13.fc7

Comment 8 Reiner K. Kappenberger 2007-01-12 19:20:01 UTC
(In reply to comment #3)
> I know about this bug. Already fixed in FC6.

I'm runing FC6 (x86_64) and experience the same trouble:

*** glibc detected *** awk: double free or corruption (fasttop):
0x0000000000883060 ***

while trying to build snapgear (3.4.0) in Tinylogin.

I currently have awk Version 3.1.5-12.fc6.x86_64 running on FC6 and receive the
double free or corruption problem.

Reiner

Comment 9 Jim Treadway 2007-01-16 00:36:02 UTC
Works for me with gawk-3.1.5-13.fc7.