mirror of
https://github.com/samba-team/samba.git
synced 2025-03-24 10:50:22 +03:00
Add tridge's backtrace script - it should at least work for systems with
gdb.... Andrew Bartlett (This used to be commit 7cb080559eaf39fb0afd6d846bf56715f1303801)
This commit is contained in:
parent
00ec570634
commit
9abf0703b1
15
testsuite/build_farm/backtrace
Executable file
15
testsuite/build_farm/backtrace
Executable file
@ -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
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user