Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2001 23:08:24 +0200 (IST)
From:      Amir <amir@active.ath.cx>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/25040: Make coredumps
Message-ID:  <200102122108.f1CL8O891221@active.ath.cx>

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

>Number:         25040
>Category:       bin
>Synopsis:       Make coredumps
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 12 13:10:09 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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