From olli@secnetix.de  Wed Oct 25 13:02:46 2006
Return-Path: <olli@secnetix.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E493016A4EB
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Oct 2006 13:02:46 +0000 (UTC)
	(envelope-from olli@secnetix.de)
Received: from pluto.secnetix.de (pluto.secnetix.de [88.198.44.136])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6024543EBA
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Oct 2006 13:00:47 +0000 (GMT)
	(envelope-from olli@secnetix.de)
Received: from pluto.secnetix.de (localhost.secnetix.de [127.0.0.1])
	by pluto.secnetix.de (8.13.8/8.13.8) with ESMTP id k9PD0RGu073638;
	Wed, 25 Oct 2006 15:00:34 +0200 (CEST)
	(envelope-from olli@pluto.secnetix.de)
Received: (from olli@localhost)
	by pluto.secnetix.de (8.13.8/8.13.8/Submit) id k9PD0QBN073637;
	Wed, 25 Oct 2006 15:00:26 +0200 (CEST)
	(envelope-from olli)
Message-Id: <200610251300.k9PD0QBN073637@pluto.secnetix.de>
Date: Wed, 25 Oct 2006 15:00:26 +0200 (CEST)
From: Oliver Fromme <olli@secnetix.de>
Reply-To: Oliver Fromme <olli@secnetix.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Oliver Fromme <olli@secnetix.de>
Subject: Bug in awk (core dump, easy to reproduce)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         104795
>Category:       bin
>Synopsis:       Bug in awk (core dump, easy to reproduce)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 25 13:10:22 GMT 2006
>Closed-Date:    Sun Oct 29 11:03:14 GMT 2006
>Last-Modified:  Sun Oct 29 11:03:14 GMT 2006
>Originator:     Oliver Fromme
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
secnetix GmbH & Co. KG
		http://www.secnetix.de/bsd
>Environment:

	Bug found on FreeBSD/i386 RELENG_6 (6.2-PRERELEASE).

>Description:

	Our awk (bsd awk) seems to coredump when a function
	locally assigns a string to a parameter that was
	initialized by the function call to a non-zero
	numeric value.

>How-To-Repeat:

	This is the smallest snippet that reproduces the
	problem described above:

	# awk 'function f(x) {x=""} BEGIN {f(1)}'
	awk in free(): error: junk pointer, too low to make sense
	Abort trap (core dumped)

>Fix:
	unknown
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Wed Oct 25 15:29:41 UTC 2006 
Responsible-Changed-Why:  
I'll look into it.  It's unfortunately not a BSD awk, but a one-true-awk, 
externally maintained.  We have sent a pool of local fixes upstream, but 
didn't hear back from Brian Kernighan yet. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104795 
State-Changed-From-To: open->patched 
State-Changed-By: ru 
State-Changed-When: Wed Oct 25 21:23:45 UTC 2006 
State-Changed-Why:  
Fixed in HEAD. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/104795: commit references a PR
Date: Wed, 25 Oct 2006 21:23:39 +0000 (UTC)

 ru          2006-10-25 21:23:21 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.bin/awk          Makefile 
   Added files:
     usr.bin/awk          tran.c.diff 
   Log:
   Fix a bug converting a variable from the numeric type to a string.
   
   PR:             bin/104795
   MFC after:      3 days
   
   Revision  Changes    Path
   1.14      +1 -1      src/usr.bin/awk/Makefile
   1.1       +22 -0     src/usr.bin/awk/tran.c.diff (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"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/104795: commit references a PR
Date: Sun, 29 Oct 2006 07:27:44 +0000 (UTC)

 ru          2006-10-29 07:27:27 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     usr.bin/awk          Makefile 
   Added files:           (Branch: RELENG_6)
     usr.bin/awk          tran.c.diff 
   Log:
   MFC: Fix a bug converting a variable from the numeric type to a string.
   
   PR:             bin/104795
   Approved by:    re (hrs)
   
   Revision  Changes    Path
   1.12.2.2  +1 -1      src/usr.bin/awk/Makefile
   1.1.2.1   +22 -0     src/usr.bin/awk/tran.c.diff (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"
 
State-Changed-From-To: patched->closed 
State-Changed-By: ru 
State-Changed-When: Sun Oct 29 11:02:48 UTC 2006 
State-Changed-Why:  
Fixed in RELENG_6. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104795 
>Unformatted:
