*BSD News Article 80603


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.sdsmt.edu!news.mid.net!sbctri.tri.sbc.com!newspump.wustl.edu!news.ecn.bgu.edu!vixen.cso.uiuc.edu!howland.erols.net!news.mathworks.com!fu-berlin.de!news.belwue.de!news.belwue.de!news.uni-kl.de!rz.uni-karlsruhe.de!not-for-mail
From: uk1o@rzstud1.rz.uni-karlsruhe.de (Felix Schroeter)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: enabling core dumps
Date: 13 Oct 1996 15:02:38 +0200
Organization: University of Karlsruhe, Germany
Lines: 23
Message-ID: <53qp9f$1bj@rzstud1.rz.uni-karlsruhe.de>
References: <fred-1210960842000001@flourine.shocking.com>
NNTP-Posting-Host: rzstud1.rz.uni-karlsruhe.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-User: uk1o

Hello!

In article <fred-1210960842000001@flourine.shocking.com>,
Fred Condo <fred@lightside.net> wrote:
>What is required to get a failing program to create a core dump? In
>particular, I am trying to get Apache to dump core when it fails with a
>SEGV. I've checked ulimit -c (it's unlimited), yet Apache won't dump core
>on failure. This is under FreeBSD 2.1.0-R. The core dump would be very
>useful for debugging Apache's failures.

>I wrote a small program that deliberately makes a SEGV, and it dumps core
>very nicely. What am I missing?

There could be several problems:
- Apache could be setuid/setgid. UNIX doesn't dump core, if effective and
  real [ug]id differ.
- Apache can't write to its current directory.
- Apache itself disables corecumps with setrlimit(2)
- Apache catches SIGSEGV and exits w/o coredump

Hope that helps.

Regards, Felix.