From owner-freebsd-bugs Mon Feb 12 13:10:19 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9780537B684 for ; Mon, 12 Feb 2001 13:10:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1CLA9k49459; Mon, 12 Feb 2001 13:10:09 -0800 (PST) (envelope-from gnats) 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 ; 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 Reply-To: amir@active.ath.cx To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/25040: Make coredumps Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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