From archie@packetdesign.com  Tue Sep  3 09:33:45 2002
Return-Path: <archie@packetdesign.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3790837B400
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 Sep 2002 09:33:45 -0700 (PDT)
Received: from mailman.packetdesign.com (dns.packetdesign.com [65.192.41.10])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DA17243E42
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 Sep 2002 09:33:44 -0700 (PDT)
	(envelope-from archie@packetdesign.com)
Received: from bubba.packetdesign.com (bubba.packetdesign.com [192.168.0.223])
	by mailman.packetdesign.com (8.11.6/8.11.6) with ESMTP id g83GXix41264
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 3 Sep 2002 09:33:44 -0700 (PDT)
	(envelope-from archie@packetdesign.com)
Received: (from archie@localhost)
	by bubba.packetdesign.com (8.11.6/8.11.6) id g83GXiu30150;
	Tue, 3 Sep 2002 09:33:44 -0700 (PDT)
	(envelope-from archie)
Message-Id: <200209031633.g83GXiu30150@bubba.packetdesign.com>
Date: Tue, 3 Sep 2002 09:33:44 -0700 (PDT)
From: Archie Cobbs <archie@packetdesign.com>
Reply-To: Archie Cobbs <archie@packetdesign.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: make(1): bogus error output with bad variable substitution
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42379
>Category:       bin
>Synopsis:       make(1): bogus error output with bad variable substitution
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 03 09:40:13 PDT 2002
>Closed-Date:    Fri Nov 08 09:06:11 PST 2002
>Last-Modified:  Fri Nov 08 09:06:11 PST 2002
>Originator:     Archie Cobbs
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
Packet Design
>Environment:
System: FreeBSD stable.packetdesign.com 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Aug 29 17:11:55 PDT 2002     archie@stable.packetdesign.com:/usr/obj/usr/src/sys/STABLE  i386

>Description:

	make(1) generates bogus output in a certain error situation.
	It is trying to display a string that has apparently already
	been free'd (this is detected by setting /etc/malloc.conf 'AJ').

>How-To-Repeat:

	$ ln -sf AJ /etc/malloc.conf
	$ cat > Makefile

	FOO_VAR=        ${BAR_VAR:S/$/.ps}

	all:            ${FOO_VAR}

	^D
	$ make
	Unclosed substitution for  (/ missing)
	make: don't know how to make . Stop
	$

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jmallett 
Responsible-Changed-By: jmallett 
Responsible-Changed-When: Tue Oct 22 23:15:03 PDT 2002 
Responsible-Changed-Why:  
I'll take over this one....  I've invested 2 hours so far, and found the 
free that is at fault, and just need to find the fix now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42379 
Responsible-Changed-From-To: jmallett->freebsd-bugs 
Responsible-Changed-By: jmallett 
Responsible-Changed-When: Tue Oct 29 04:51:54 PST 2002 
Responsible-Changed-Why:  
Back to freebsd-bugs;  This one is particularly nasty, and I'm willing 
to help anyone looking at it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42379 
State-Changed-From-To: open->closed 
State-Changed-By: jmallett 
State-Changed-When: Fri Nov 8 09:05:16 PST 2002 
State-Changed-Why:  
Nailed by revision 1.40 of make::var.c.  These failure cases are now 
fatal. 

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