Bug 115014 - lang/gawk dumps a core on opening nonexistent file
Summary: lang/gawk dumps a core on opening nonexistent file
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Kirill Ponomarev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-29 19:40 UTC by Kirill Nuzhdin
Modified: 2007-09-03 21:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Nuzhdin 2007-07-29 19:40:02 UTC
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@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)
Comment 1 Pav Lucistnik freebsd_committer 2007-07-29 21:22:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->krion

Over to maintainer
Comment 2 Edwin Groothuis freebsd_committer 2007-07-29 23:53:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Maybe gnome@ want to shine their light over this issue?
Comment 3 Edwin Groothuis freebsd_committer 2007-07-29 23:53:19 UTC
Responsible Changed
From-To: krion->krion

It looks like bugmeister@ still hasn't fixed the edit-pr script. 
Shame on them.
Comment 4 dfilter service freebsd_committer 2007-09-03 21:18:41 UTC
krion       2007-09-03 20:18:36 UTC

  FreeBSD ports repository

  Added files:
    lang/gawk/files      patch-io.c 
  Log:
  Fix coredump while running with nonexistent files.
  
  PR:             ports/115014
  Submitted by:   Kirill Nuzhdin <kirill@rad.chem.msu.ru>
  
  Revision  Changes    Path
  1.1       +29 -0     ports/lang/gawk/files/patch-io.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Kirill Ponomarev freebsd_committer 2007-09-03 21:18:46 UTC
State Changed
From-To: open->closed

Committed. Thanks!