Core-less in Seattle

Bill Moran wmoran at collaborativefusion.com
Mon Nov 6 17:20:33 CET 2006


In response to bobi at netshel.net:

> Has anyone had problems obtaining core dumps from the main Nagios daemon
> when it segfaults?
> 
> I've enabled the option in the config file "daemon_dumps_core" but, after
> the daemon dies due to a segfault (confirmed via dmesg,) a core file never
> seems to be produced.
> 
> And yes, I've set the global ulimit for core dumps to unlimited, and yes,
> there is enough space on my disk, and yes, I've scoured the disk with
> "find" looking for files with the name of "core" or "core.<pid>", but to
> no avail.
> 
> I also completely disabled the segfault handling logic in the signal
> handler, but nothing's changed.
> 
> What am I missing here?
> 
> I'm considering running nagios in the foreground (non-daemon mode) just to
> see if I can catch the magically-missing core file.

What OS is this on?

FreeBSD has sysctls that control how core dumps are handled, and can even
disable them at the OS level.  I assume that other POSIX systems have
similar capabilities:

$ sysctl -a | grep core
kern.sugid_coredump: 0
kern.coredump: 1
kern.nodump_coredump: 0
kern.corefile: %N.core
$ sysctl -d kern.sugid_coredump
kern.sugid_coredump: Enable coredumping set user/group ID processes

Notice that the default in FreeBSD is to _not_ allow setu/gid programs to
create core files ...

-- 
Bill Moran
Collaborative Fusion Inc.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Developers mailing list