r14898: This change is an attempt to improve the quality of the information that
authorJames Peach <jpeach@samba.org>
Tue, 4 Apr 2006 00:27:50 +0000 (00:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:53 +0000 (11:15 -0500)
commit56bc02d64498eb3faf89f0c5452b9299daea8e95
treefefdf1b8633b86308d637cc351e66f6c7ed8df53
parentcc1bdbbc41bd6626ee53abf3f2ab35c454e036b7
r14898: This change is an attempt to improve the quality of the information that
is produced when a process exits abnormally.

First, we coalesce the core dumping code so that we greatly improve our
odds of being able to produce a core file, even in the case of a memory
fault. I've removed duplicates of dump_core() and split it in two to
reduce the amount of work needed to actually do the dump.

Second, we refactor the exit_server code path to always log an explanation
and a stack trace. My goal is to always produce enough log information
for us to be able to explain any server exit, though there is a risk
that this could produce too much log information on a flaky network.

Finally, smbcontrol has gained a smbd fault injection operation to test
the changes above. This is only enabled for developer builds.
14 files changed:
source/configure.in
source/include/debug.h
source/include/includes.h
source/include/messages.h
source/lib/fault.c
source/lib/util.c
source/nmbd/nmbd.c
source/nsswitch/winbindd.c
source/printing/printing.c
source/smbd/open.c
source/smbd/process.c
source/smbd/server.c
source/torture/vfstest.c
source/utils/smbcontrol.c