Add tridge's backtrace script - it should at least work for systems with
authorAndrew Bartlett <abartlet@samba.org>
Wed, 21 Aug 2002 21:42:05 +0000 (21:42 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Aug 2002 21:42:05 +0000 (21:42 +0000)
gdb....

Andrew Bartlett
(This used to be commit 7cb080559eaf39fb0afd6d846bf56715f1303801)

testsuite/build_farm/backtrace [new file with mode: 0755]
testsuite/build_farm/basicsmb.smb.conf.template

diff --git a/testsuite/build_farm/backtrace b/testsuite/build_farm/backtrace
new file mode 100755 (executable)
index 0000000..efaa9f2
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+# Modified version of tridge's backtrace script.
+# we want everything on stderr, so the program is not disturbed
+exec 1>&2
+
+PID=$1
+TMPFILE=$prefix/backtrace.$$
+cat << EOF  > $TMPFILE
+set height 0
+up 8
+bt full
+quit
+EOF
+gdb -x $TMPFILE $prefix/sbin/smbd $PID
+/bin/rm -f $TMPFILE
index 64cdbaa5e56210ce1926ecce0aa172a8217cf3ad..ed2e3dee619f33aa2f466562ffd36ffa1976d98a 100644 (file)
@@ -15,7 +15,7 @@
 
     add machine script = useradd %u -d /dev/null -s /bin/false
 
-    panic action = echo bt | gdb PREFIX/sbin/smbd %d
+    panic action = /bin/sh BUILD_FARM/samba/testsuite/build_farm/backtrace %d
 
     passdb backend = smbpasswd_nua