FW: (panic action)

Mike Gerdts Michael.Gerdts at alcatel.com
Tue Apr 2 09:44:02 GMT 2002


On Tue, 2002-04-02 at 11:15, Esh, Andrew wrote: 

> panic action = /usr/bin/X11/xterm -e gdb /proc/%d/exe %d || /bin/sleep
> 9000

If all you want is a backtrace, you could also have a file
/opt/samba/gdbcmds that has "bt" in it (or other commands), then change
the command to something like :

   /usr/bin/X11/xterm -e gdb -x /opt/samba/gdbcmds /proc/%d/exe %d \
	|| gdb -x /opt/samba/gdbcmds -batch /proc/%d/exe %d | mail root

This would give you the opportunity to debug it interactively if the
xhost works, otherwise it just mails the backtrace to root.

Also, if you are needing to do this on Solaris 7 or newer, rather than
using /proc/%d/exe, use /proc/%d/objects/a.out.

Mike






More information about the samba-technical mailing list