From okumoto@oecpc29.ucsd.edu  Tue Jul 19 00:31:40 2005
Return-Path: <okumoto@oecpc29.ucsd.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D1C3A16A41C;
	Tue, 19 Jul 2005 00:31:40 +0000 (GMT)
	(envelope-from okumoto@oecpc29.ucsd.edu)
Received: from oecpc29.ucsd.edu (oecpc29.ucsd.edu [132.239.8.29])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9BE6D43D45;
	Tue, 19 Jul 2005 00:31:40 +0000 (GMT)
	(envelope-from okumoto@oecpc29.ucsd.edu)
Received: from oecpc29.ucsd.edu (localhost.ucsd.edu [127.0.0.1])
	by oecpc29.ucsd.edu (8.13.3/8.13.3) with ESMTP id j6J0VeJI084383;
	Mon, 18 Jul 2005 17:31:40 -0700 (PDT)
	(envelope-from okumoto@oecpc29.ucsd.edu)
Received: (from okumoto@localhost)
	by oecpc29.ucsd.edu (8.13.3/8.13.3/Submit) id j6J0Veas084382;
	Mon, 18 Jul 2005 17:31:40 -0700 (PDT)
	(envelope-from okumoto)
Message-Id: <200507190031.j6J0Veas084382@oecpc29.ucsd.edu>
Date: Mon, 18 Jul 2005 17:31:40 -0700 (PDT)
From: Max Okumoto <okumoto@oecpc29.ucsd.edu>
Reply-To: Max Okumoto <okumoto@oecpc29.ucsd.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc: harti@freebsd.org
Subject: usr.bin/make cores when Saving Commands
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         83698
>Category:       bin
>Synopsis:       usr.bin/make cores when Saving Commands
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    harti
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 19 00:40:20 GMT 2005
>Closed-Date:    Tue Jul 19 07:16:26 GMT 2005
>Last-Modified:  Tue Jul 19 07:16:26 GMT 2005
>Originator:     Max Okumoto
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD oecpc29.ucsd.edu 5.4-STABLE FreeBSD 5.4-STABLE #0: Mon Jun 27 11:20:41 PDT 2005 root@oecpc29.ucsd.edu:/usr/obj/usr/src/sys/GENERIC i386

>Description:
	usr.bin/make crashes if commands are save for later execution via
	the '...' command.

	A description of Saving Commands can be found Section 3.3
	in the make tutorial.

>How-To-Repeat:
	Run the following Makefile.

% cat Makefile
all: first next
	@echo Run now.
	...
	@echo Run after me

first:
	@echo Apppp
	...
	@echo Run after all 1

next:
	@echo Bpppp
	...
	@echo Run after all 2
% make
Apppp
Bpppp
Run now.
make: Cannot allocate memory
%

>Fix:
	Pass ENDNode instead of gn to Compat_RunCommand() at end of
	Compat_Run().  There was an error in the LST_FOREACH() conversion.
>Release-Note:
>Audit-Trail:

From: Max Okumoto <okumoto@soe.ucsd.edu>
To: bug-followup@FreeBSD.org, okumoto@ucsd.edu
Cc:  
Subject: Re: bin/83698: usr.bin/make cores when Saving Commands
Date: Mon, 18 Jul 2005 20:57:01 -0700

 Please send updates to okumoto@ucsd.edu
 
State-Changed-From-To: open->closed 
State-Changed-By: harti 
State-Changed-When: Tue Jul 19 07:15:22 GMT 2005 
State-Changed-Why:  
Just committed. Nice catch. MFC to RELENG_6 pending approval from RE. Thanks. 


Responsible-Changed-From-To: freebsd-bugs->harti 
Responsible-Changed-By: harti 
Responsible-Changed-When: Tue Jul 19 07:15:22 GMT 2005 
Responsible-Changed-Why:  
Just committed. Nice catch. MFC to RELENG_6 pending approval from RE. Thanks. 

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