[Bug 218161] New: gawk crashes
https://bugzilla.novell.com/show_bug.cgi?id=218161 Summary: gawk crashes Product: SUSE Linux 10.1 Version: Final Platform: i686 OS/Version: SuSE Linux 10.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ptaylor@quadlogic.fr QAContact: qa@suse.de Suse 10.1 $> uname -a Linux web99 2.6.16.21-0.25-smp #1 SMP Tue Sep 19 07:26:15 UTC 2006 i686 i686 i386 GNU/Linux $> rpm -qa | grep awk gawk-3.1.5-18 $> gawk --version | head -n 1 GNU Awk 3.1.5 I came across a problem using a program 'cdb' which uses gawk, it crashes when used. After searching,I found another Suse 10.1 user Pablo Costa who had the same problem. He created the following script to generate the error. ## Start cd /tmp # the script; PLEASE take care if you copy on your own file # to remove the BACKSLASH just before the DOLLAR; It's # there to prevent the shell from evaluating $i when copy/pasting. cat > problem.awk <<-EOF { print "RECORD " NR; for ( i = 0; length( \$i ) > 0; i++ ) print " FIELD " i " of " NF; } EOF # It doesn't seem to really matter what kind of input you # give to the script. Also it doesn't matter if it's given # on a file via gawk command line invocation or if it's fed # via stdin through a pipe. cat > awk_example <<EOF drwxr-xr-x 2 pablo users 112 2006-06-20 19:29 . drwxr-xr-x 3 pablo users 248 2006-06-20 19:26 .. -rw-r--r-- 1 pablo users 0 2006-06-20 19:43 awk_example -rw-r--r-- 1 pablo users 91 2006-06-20 19:37 problem.awk drwxr-xr-x 2 pablo users 112 2006-06-20 19:29 . drwxr-xr-x 3 pablo users 248 2006-06-20 19:26 .. -rw-r--r-- 1 pablo users 0 2006-06-20 19:43 awk_example -rw-r--r-- 1 pablo users 91 2006-06-20 19:37 problem.awk EOF # Unleash hell! gawk -f problem.awk awk_example ## End The result of this script is : RECORD 1 FIELD 0 of 8 FIELD 1 of 8 FIELD 2 of 8 FIELD 3 of 8 FIELD 4 of 8 FIELD 5 of 8 FIELD 6 of 8 FIELD 7 of 8 FIELD 8 of 8 RECORD 2 FIELD 0 of 8 FIELD 1 of 8 FIELD 2 of 8 *** glibc detected *** gawk: double free or corruption (fasttop): 0x0808b918 *** ======= Backtrace: ========= /lib/libc.so.6[0xb7e13911] /lib/libc.so.6(__libc_free+0x84)[0xb7e14f84] gawk(str2wstr+0x37)[0x806f2dd] gawk(do_length+0x1f3)[0x8056c73] gawk(r_tree_eval+0x3a2)[0x80742f2] gawk(r_tree_eval+0x75)[0x8073fc5] gawk[0x8075d12] gawk(interpret+0x2c6)[0x80727e6] gawk(interpret+0x221)[0x8072741] gawk(interpret+0x1b1)[0x80726d1] gawk(do_input+0x33)[0x806a743] gawk(main+0x79b)[0x806e33b] /lib/libc.so.6(__libc_start_main+0xdc)[0xb7dc587c] gawk[0x804c9b1] ======= Memory map: ======== 08048000-08082000 r-xp 00000000 08:02 40243 /bin/gawk 08082000-08083000 rwxp 0003a000 08:02 40243 /bin/gawk 08083000-080a9000 rwxp 08083000 00:00 0 [heap] b7c00000-b7c21000 rwxp b7c00000 00:00 0 b7c21000-b7d00000 ---p b7c21000 00:00 0 b7d4e000-b7d58000 r-xp 00000000 08:02 30766 /lib/libgcc_s.so.1 b7d58000-b7d59000 rwxp 00009000 08:02 30766 /lib/libgcc_s.so.1 b7d7c000-b7daf000 r-xp 00000000 08:02 30334 /usr/lib/locale/en_GB.utf8/LC_CTYPE b7daf000-b7db0000 rwxp b7daf000 00:00 0 b7db0000-b7ec9000 r-xp 00000000 08:02 18366 /lib/libc-2.4.so b7ec9000-b7ecb000 r-xp 00118000 08:02 18366 /lib/libc-2.4.so b7ecb000-b7ecd000 rwxp 0011a000 08:02 18366 /lib/libc-2.4.so b7ecd000-b7ed0000 rwxp b7ecd000 00:00 0 b7ed0000-b7ef3000 r-xp 00000000 08:02 18374 /lib/libm-2.4.so b7ef3000-b7ef5000 rwxp 00022000 08:02 18374 /lib/libm-2.4.so b7ef5000-b7ef7000 r-xp 00000000 08:02 18372 /lib/libdl-2.4.so b7ef7000-b7ef9000 rwxp 00001000 08:02 18372 /lib/libdl-2.4.so b7f14000-b7f15000 rwxp b7f14000 00:00 0 b7f15000-b7f1c000 r-xs 00000000 08:02 251728 /usr/lib/gconv/gconv-modules.cache b7f1c000-b7f1d000 rwxp b7f1c000 00:00 0 b7f1d000-b7f37000 r-xp 00000000 08:02 18359 /lib/ld-2.4.so b7f37000-b7f39000 rwxp 00019000 08:02 18359 /lib/ld-2.4.so bfd19000-bfd2f000 rw-p bfd19000 00:00 0 [stack] ffffe000-fffff000 ---p 00000000 00:00 0 [vdso] Aborted The result on another Fedora box : RECORD 1 FIELD 0 of 8 FIELD 1 of 8 FIELD 2 of 8 FIELD 3 of 8 FIELD 4 of 8 FIELD 5 of 8 FIELD 6 of 8 FIELD 7 of 8 FIELD 8 of 8 RECORD 2 FIELD 0 of 8 FIELD 1 of 8 FIELD 2 of 8 FIELD 3 of 8 FIELD 4 of 8 FIELD 5 of 8 FIELD 6 of 8 FIELD 7 of 8 FIELD 8 of 8 RECORD 3 FIELD 0 of 8 FIELD 1 of 8 FIELD 2 of 8 FIELD 3 of 8 FIELD 4 of 8 FIELD 5 of 8 FIELD 6 of 8 FIELD 7 of 8 FIELD 8 of 8 RECORD 4 FIELD 0 of 8 FIELD 1 of 8 FIELD 2 of 8 FIELD 3 of 8 FIELD 4 of 8 FIELD 5 of 8 FIELD 6 of 8 FIELD 7 of 8 FIELD 8 of 8 RECORD 5 FIELD 0 of 8 FIELD 1 of 8 FIELD 2 of 8 FIELD 3 of 8 FIELD 4 of 8 FIELD 5 of 8 FIELD 6 of 8 FIELD 7 of 8 FIELD 8 of 8 RECORD 6 FIELD 0 of 8 FIELD 1 of 8 FIELD 2 of 8 FIELD 3 of 8 FIELD 4 of 8 FIELD 5 of 8 FIELD 6 of 8 FIELD 7 of 8 FIELD 8 of 8 RECORD 7 FIELD 0 of 8 FIELD 1 of 8 FIELD 2 of 8 FIELD 3 of 8 FIELD 4 of 8 FIELD 5 of 8 FIELD 6 of 8 FIELD 7 of 8 FIELD 8 of 8 RECORD 8 FIELD 0 of 8 FIELD 1 of 8 FIELD 2 of 8 FIELD 3 of 8 FIELD 4 of 8 FIELD 5 of 8 FIELD 6 of 8 FIELD 7 of 8 FIELD 8 of 8 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218161 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |schwab@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218161 schwab@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from schwab@novell.com 2006-11-07 05:54 MST ------- This is already fixed. Use LC_ALL=C for a workaround. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218161 User bugproxy@us.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=218161#c2 LTC BugProxy <bugproxy@us.ibm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugproxy@us.ibm.com Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #2 from LTC BugProxy <bugproxy@us.ibm.com> 2008-06-26 00:40:39 MDT --- we are still observing the problem in SLES 10 SP2 RC1. Hence re opening the bug Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=218161 User bugproxy@us.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=218161#c3 LTC BugProxy <bugproxy@us.ibm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http:// --- Comment #3 from LTC BugProxy <bugproxy@us.ibm.com> 2008-06-26 00:44:52 MDT --- ------- Comment From sharyathi@in.ibm.com 2008-06-26 02:41 EDT------- Novel This problem is still seen with SLES 10 SP2 RC1. setting the setlocale looks to me like a work around rather than a fix. If there is fix for the problem can you please update the bug with the fix Sharyathi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=218161 User bugproxy@us.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=218161#c4 --- Comment #4 from LTC BugProxy <bugproxy@us.ibm.com> 2008-06-27 03:32:29 MDT --- ------- Comment From sharyathi@in.ibm.com 2008-06-27 05:30 EDT------- Novel I checked with the main line gawk, it is not showing the problem. when can we expect the fix to be included in distro release Thanks Sharyathi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=218161 User bugproxy@us.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=218161#c5 --- Comment #5 from LTC BugProxy <bugproxy@us.ibm.com> 2008-07-01 04:32:49 MDT --- ------- Comment From sharyathi@in.ibm.com 2008-07-01 06:26 EDT------- Novel any update on the bug Thanks Sharyathi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=218161 User bugproxy@us.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=218161#c6 --- Comment #6 from LTC BugProxy <bugproxy@us.ibm.com> 2008-07-17 00:30:42 MDT --- ------- Comment From sharyathi@in.ibm.com 2008-07-17 02:29 EDT------- Novel Any update on taking the latest version of awk Thanks Sharyathi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=218161 User bugproxy@us.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=218161#c7 --- Comment #7 from LTC BugProxy <bugproxy@us.ibm.com> 2008-10-16 08:01:33 MDT --- ------- Comment From sharyath@in.ibm.com 2008-06-26 02:41 EDT EDT------- ------- Comment From sharyath@in.ibm.com 2008-06-27 05:30 EDT EDT------- ------- Comment From sharyath@in.ibm.com 2008-07-01 06:26 EDT EDT------- ------- Comment From sharyath@in.ibm.com 2008-07-17 02:29 EDT EDT------- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=218161 User bugproxy@us.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=218161#c8 --- Comment #8 from LTC BugProxy <bugproxy@us.ibm.com> 2008-10-20 05:41:16 MDT --- ------- Comment From sharyath@in.ibm.com 2008-06-26 02:41 EDT------- ------- Comment From sharyath@in.ibm.com 2008-06-27 05:30 EDT------- ------- Comment From sharyath@in.ibm.com 2008-07-01 06:26 EDT------- ------- Comment From sharyath@in.ibm.com 2008-07-17 02:29 EDT------- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=218161 User bugproxy@us.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=218161#c9 --- Comment #9 from LTC BugProxy <bugproxy@us.ibm.com> 2008-10-22 03:01:09 MDT --- ------- Comment From anjali.gupta@in.ibm.com 2008-10-22 04:53 EDT------- The workaround announced on that bug report (Use LC_ALL=C) is working for my case i.e SLES10 SP2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=218161 User bugproxy@us.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=218161#c10 --- Comment #10 from LTC BugProxy <bugproxy@us.ibm.com> 2008-10-22 06:01:31 MDT --- ------- Comment From sharyath@in.ibm.com 2008-10-22 07:51 EDT------- Changing the bug status to submitted as per the above comment Thanks Sharyathi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com