diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-08-21 21:42:05 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-08-21 21:42:05 +0000 |
commit | 7cb080559eaf39fb0afd6d846bf56715f1303801 (patch) | |
tree | 3147ace3cbea3b9a9c3c0038796fc0e180f516ce | |
parent | d01bbd42ff043d9fb0dc40dc4e207da8df0c9c14 (diff) | |
download | samba-7cb080559eaf39fb0afd6d846bf56715f1303801.tar.gz samba-7cb080559eaf39fb0afd6d846bf56715f1303801.tar.xz samba-7cb080559eaf39fb0afd6d846bf56715f1303801.zip |
Add tridge's backtrace script - it should at least work for systems with
gdb....
Andrew Bartlett
-rwxr-xr-x | testsuite/build_farm/backtrace | 15 | ||||
-rw-r--r-- | testsuite/build_farm/basicsmb.smb.conf.template | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/testsuite/build_farm/backtrace b/testsuite/build_farm/backtrace new file mode 100755 index 00000000000..efaa9f2dcde --- /dev/null +++ b/testsuite/build_farm/backtrace @@ -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 diff --git a/testsuite/build_farm/basicsmb.smb.conf.template b/testsuite/build_farm/basicsmb.smb.conf.template index 64cdbaa5e56..ed2e3dee619 100644 --- a/testsuite/build_farm/basicsmb.smb.conf.template +++ b/testsuite/build_farm/basicsmb.smb.conf.template @@ -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 |