common: Debug ctdb_addr_to_str() using new function ctdb_external_trace()
authorMartin Schwenke <martin@meltin.net>
Thu, 6 Sep 2012 10:22:38 +0000 (20:22 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 12 Sep 2012 04:57:53 +0000 (14:57 +1000)
commitdc2bf2f7d27913f29f5b6c92e41c6b59fa31d163
treecc57c1d406c674f4ad8d6ac95ec0d749a52d769a
parent7c4998cad4d3debb06f62108fb099b6427310419
common: Debug ctdb_addr_to_str() using new function ctdb_external_trace()

We've seen this function report "Unknown family, 0" and then CTDB
disappeared without a trace.  If we can reproduce it then this might
help us to debug it.

The idea is that you do something like the following in /etc/sysconfig/ctdb:

  export CTDB_EXTERNAL_TRACE="/etc/ctdb/config/gcore_trace.sh"

When we hit this error than we call out to gcore to get a core file so
we can do forensics.  This might block CTDB for a few seconds.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Makefile.in
common/ctdb_util.c
config/gcore_trace.sh [new file with mode: 0755]
include/ctdb_private.h
packaging/RPM/ctdb.spec.in