From nobody@FreeBSD.org  Sun Jul 29 18:39:52 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E628216A418
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 Jul 2007 18:39:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id BA9CF13C45A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 Jul 2007 18:39:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l6TIdqfY052356
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 Jul 2007 18:39:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l6TIdqLU052355;
	Sun, 29 Jul 2007 18:39:52 GMT
	(envelope-from nobody)
Message-Id: <200707291839.l6TIdqLU052355@www.freebsd.org>
Date: Sun, 29 Jul 2007 18:39:52 GMT
From: Kirill Nuzhdin <kirill@rad.chem.msu.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ports/gawk dumps a core on opening nonexistent file
X-Send-Pr-Version: www-3.0

>Number:         115014
>Category:       ports
>Synopsis:       lang/gawk dumps a core on opening nonexistent file
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    krion
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 29 18:40:02 GMT 2007
>Closed-Date:    Mon Sep 03 20:18:48 GMT 2007
>Last-Modified:  Mon Sep  3 20:20:01 GMT 2007
>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@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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->krion 
Responsible-Changed-By: pav 
Responsible-Changed-When: Sun Jul 29 20:22:51 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115014 
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jul 29 22:53:19 UTC 2007 
Responsible-Changed-Why:  
Maybe gnome@ want to shine their light over this issue? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115023 
Responsible-Changed-From-To: krion->krion 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jul 29 22:53:19 UTC 2007 
Responsible-Changed-Why:  
It looks like bugmeister@ still hasn't fixed the edit-pr script. 
Shame on them. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=115014 
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Mon Sep 3 20:18:46 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115014 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/115014: commit references a PR
Date: Mon,  3 Sep 2007 20:18:41 +0000 (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"
 
>Unformatted:
