ports/115014: ports/gawk dumps a core on opening nonexistent file

Kirill Nuzhdin kirill at rad.chem.msu.ru
Sun Jul 29 18:40:03 UTC 2007


>Number:         115014
>Category:       ports
>Synopsis:       ports/gawk dumps a core on opening nonexistent file
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 29 18:40:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Kirill Nuzhdin
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD jailm.local 6.2-STABLE FreeBSD 6.2-STABLE #0: Mon Jul  9 15:25:08 MSD 2007     root at pile.local:/usr/obj/usr/.amd_mount/src/sys/PILE  amd64
>Description:
Gawk (port lang/gawk, gawk-3.1.5_1) coredumps, if feeded with nonexistent file.

Also repeatable in this environment: FreeBSD gw.local 6.2-STABLE FreeBSD 6.2-STABLE #0: Sat Jun 16 13:24:55 MSD 2007     root at gw.local:/usr/obj/usr/src/sys/GW  i386

>From /var/log/messages:
Jul 29 21:36:39 <kern.info> gw kernel: pid 20315 (gawk), uid 0: exited on signal 6 (core dumped)

Nothing related to this problem in ports/UPDATING

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `gawk'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/local/lib/libintl.so.8...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2829a237 in kill () from /lib/libc.so.6
(gdb) where
#0  0x2829a237 in kill () from /lib/libc.so.6
#1  0x2829a1d6 in raise () from /lib/libc.so.6
#2  0x28298c9b in abort () from /lib/libc.so.6
#3  0x2822a6f1 in _UTF8_init () from /lib/libc.so.6
#4  0xbfbfedf0 in ?? ()
#5  0x282a0697 in sys_nsig () from /lib/libc.so.6
#6  0x282a0597 in sys_nsig () from /lib/libc.so.6
#7  0x282a06dc in sys_nsig () from /lib/libc.so.6
#8  0x282ac840 in ?? () from /lib/libc.so.6
#9  0x282a06dc in sys_nsig () from /lib/libc.so.6
#10 0xbfbfe9e8 in ?? ()
#11 0x2822a733 in _UTF8_init () from /lib/libc.so.6
#12 0x00000000 in ?? ()
#13 0x09a6322b in ?? ()
#14 0x28091a38 in symlook_obj () from /libexec/ld-elf.so.1
Previous frame inner to this frame (corrupt stack?)
>How-To-Repeat:
- install lang/gawk
- run gawk '//' nonexistent_file

you'll get:

gawk in free(): error: junk pointer, too low to make sense
(core dumped)
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list