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)
committerMartin Schwenke <martin@meltin.net>
Thu, 18 Oct 2012 09:05:42 +0000 (20:05 +1100)
commit8d7562f3f8a0e62d9348c4a4ee72ffd8f1e41c4a
tree5abb1035fb4dd3f0bd8c6d9550786e280ae8438c
parent6372592982fd7302524bb9926f56029c57fe2037
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>
(This used to be ctdb commit 7895bc003f087ab2f3181df3c464386f59bfcc39)
ctdb/Makefile.in
ctdb/common/ctdb_util.c
ctdb/config/gcore_trace.sh [new file with mode: 0755]
ctdb/include/ctdb_private.h
ctdb/packaging/RPM/ctdb.spec.in