Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2005 17:31:40 -0700 (PDT)
From:      Max Okumoto <okumoto@oecpc29.ucsd.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        harti@FreeBSD.org
Subject:   bin/83698: usr.bin/make cores when Saving Commands
Message-ID:  <200507190031.j6J0Veas084382@oecpc29.ucsd.edu>
Resent-Message-ID: <200507190040.j6J0eKnS017008@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         83698
>Category:       bin
>Synopsis:       usr.bin/make cores when Saving Commands
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 19 00:40:20 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507190031.j6J0Veas084382>