bin/83698: usr.bin/make cores when Saving Commands

Max Okumoto okumoto at oecpc29.ucsd.edu
Tue Jul 19 00:40:21 GMT 2005


>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 at 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:


More information about the freebsd-bugs mailing list