[Gllug] [OT] Linux question - core dumps

rich at annexia.org rich at annexia.org
Sun Feb 16 22:42:01 UTC 2003


On Sun, Feb 16, 2003 at 09:39:03PM +0000, Chris Wareham wrote:
> rich at annexia.org wrote:
> >Sorry to post an off-topic question to this political discussion group ...
> >
> >I have a server which is running as 'nobody' (actually it starts running
> >as root and setuid/setgids to this user). It is running in a directory
> >called /tmp/cores/ which is 0755, chowned to nobody.nogroup. I've also
> >called 'ulimit -c unlimited'. Despite this, the server refuses to dump
> >core if it crashes. This is really annoying because it makes it very
> >hard to debug the server (it crashes about once every 5 days).
> >
> >Any ideas how to force it to dump core???
> >
> 
> Add a -d (or similar flag) that tells it not to setuid to nobody. In
> other words get it to run as the invoking user without disconnecting
> from the terminal. Then run it as an unprivileged user, and wait for the
> core dump. I'm assuming that if it can run as nobody, then it can run as
> any user - or does it bind to a low port or something before dropping
> privileges? If so, can you recode it to take an optional port argument?

Unfortunately it needs to bind to port 80.

Rich.

-- 
Richard Jones, Red Hat Inc. (London, UK) http://www.redhat.com/software/ccm
http://www.annexia.org/ Freshmeat projects: http://freshmeat.net/users/rwmj
C2LIB is a library of basic Perl/STL-like types for C. Vectors, hashes,
trees, string funcs, pool allocator: http://www.annexia.org/freeware/c2lib/

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list