From amir@active.ath.cx  Mon Feb 12 13:09:25 2001
Return-Path: <amir@active.ath.cx>
Received: from active.ath.cx (ras6-p140.hfa.netvision.net.il [62.0.101.140])
	by hub.freebsd.org (Postfix) with ESMTP id 7164737B4EC
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 12 Feb 2001 13:09:21 -0800 (PST)
Received: (from amir@localhost)
	by active.ath.cx (8.11.1/8.11.1) id f1CL8O891221;
	Mon, 12 Feb 2001 23:08:24 +0200 (IST)
	(envelope-from amir)
Message-Id: <200102122108.f1CL8O891221@active.ath.cx>
Date: Mon, 12 Feb 2001 23:08:24 +0200 (IST)
From: Amir <amir@active.ath.cx>
Reply-To: amir@active.ath.cx
To: FreeBSD-gnats-submit@freebsd.org
Subject: Make coredumps
X-Send-Pr-Version: 3.2

>Number:         25040
>Category:       bin
>Synopsis:       Make coredumps
>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:   Mon Feb 12 13:10:09 PST 2001
>Closed-Date:    Mon Feb 12 13:27:37 PST 2001
>Last-Modified:  Mon Feb 12 23:20:03 PST 2001
>Originator:     Amir
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
APF
>Environment:

	I'm running FreeBSD-4.2 Stable,
FreeBSD active.ath.cx 4.2-STABLE FreeBSD 4.2-STABLE #7: Sat Jan 20 16:25:33 IST
2001     amir@active.ath.cx:/usr/src/sys/compile/active  i386

>Description:

	FreeBSD make utily can coredump when its run off a directory, 
	which it doesn't have premission to read (chmod -r dir).
	this results in a coredump.

>How-To-Repeat:

$ mkdir tmp
$ chmod 311 tmp
$ cd tmp
$ make
Segmentation fault (core dumped)
$

>Fix:

*** usr.bin/make/dir.c.orig     Sat Sep 11 15:08:01 1999
--- usr.bin/make/dir.c          Mon Feb 12 23:01:09 2001
***************
*** 225,230 ****
--- 225,232 ----
       */
      Dir_AddDir (openDirectories, ".");
      dot = (Path *) Lst_DeQueue (openDirectories);
+     if (dot == (Path*)NIL)
+       Fatal("make: cannot initialize.");
      /*
       * We always need to have dot around, so we increment its reference count


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Mon Feb 12 13:27:37 PST 2001 
State-Changed-Why:  
Duplicate of bin/19978. 

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

From: Peter Pentchev <roam@orbitel.bg>
To: Amir <amir@active.ath.cx>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/25040: Make coredumps
Date: Tue, 13 Feb 2001 09:12:34 +0200

 On Mon, Feb 12, 2001 at 11:08:24PM +0200, Amir wrote:
 > 
 > >Number:         25040
 > >Category:       bin
 > >Synopsis:       Make coredumps
 > >Originator:     Amir
 > >Release:        FreeBSD 4.2-STABLE i386
 > >Organization:
 > APF
 > >Environment:
 > 
 > 	I'm running FreeBSD-4.2 Stable,
 > FreeBSD active.ath.cx 4.2-STABLE FreeBSD 4.2-STABLE #7: Sat Jan 20 16:25:33 IST
 > 2001     amir@active.ath.cx:/usr/src/sys/compile/active  i386
 > 
 > >Description:
 > 
 > 	FreeBSD make utily can coredump when its run off a directory, 
 > 	which it doesn't have premission to read (chmod -r dir).
 > 	this results in a coredump.
 
 Not only was this a duplicate of another PR, it was also solved recently
 in -current, and brought into -stable a week or so ago.
 
 G'luck,
 Peter
 
 -- 
 Do you think anybody has ever had *precisely this thought* before?
 
>Unformatted:
