From owner-freebsd-questions Fri Dec 4 15:21:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA05507 for freebsd-questions-outgoing; Fri, 4 Dec 1998 15:21:49 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA05310 for ; Fri, 4 Dec 1998 15:21:36 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.054 #6) id 0zm0ZR-0003Rw-00; Fri, 4 Dec 1998 19:07:17 +0000 Date: Fri, 4 Dec 1998 19:07:17 +0000 From: Ben Smithurst To: John Baldwin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Core dump requirements and purging old files.. Message-ID: <19981204190717.A13233@scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: User-Agent: Mutt/0.94.17i (FreeBSD/3.0-CURRENT) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Baldwin wrote: > 1) What is required to get a program to dump core? I have a CGI script that > keeps deferencing null pointers and terminating with signal 11. I want it to > dump a core file as it would make debugging it easier and quicker than dumping > printf()'s all over the place. I thought it was a permissions problem (Apache > and scripts run as nobody:nogroup) so I made the script temporarily suid and > owned by root, but it still refuses to dump core. Any suggestions? I understand setuid/setgid programs do not dump core by default. Try sysctl -w kern.sugid_coredump=1 (I think that's the one, try sysctl -a | grep core if not.) -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message