Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 1998 19:07:17 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        John Baldwin <jobaldwi@vt.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Core dump requirements and purging old files..
Message-ID:  <19981204190717.A13233@scientia.demon.co.uk>
In-Reply-To: <XFMail.981204122513.jobaldwi@vt.edu>
References:  <XFMail.981204122513.jobaldwi@vt.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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