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)
commit4fa555980070d78b39711ef21d77628d26055bc2
tree38dd03bac5a57b45404f620ddf4eda2dd6ea06b0
parentf5e7376bca7ab02ef48110ef6c0fb394851a606c
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.
(This used to be commit 56bc02d64498eb3faf89f0c5452b9299daea8e95)
14 files changed:
source3/configure.in
source3/include/debug.h
source3/include/includes.h
source3/include/messages.h
source3/lib/fault.c
source3/lib/util.c
source3/nmbd/nmbd.c
source3/nsswitch/winbindd.c
source3/printing/printing.c
source3/smbd/open.c
source3/smbd/process.c
source3/smbd/server.c
source3/torture/vfstest.c
source3/utils/smbcontrol.c