Tim/Jeremy,
I have ended up concocting this - look OK ?
Thanks,
Noel
smb.conf = panic action = "/root/panic.sh %d"
/root/panic.sh
#!/bin/sh
logger SAMBA PANIC ACTION Starting `date`...
/usr/bin/X11/xterm -display :2.0 -e gdb /usr/local/samba/bin/winbindd $1
logger SAMBA PANIC ACTION Stopped `date`
-----Original Message-----
From: Tim Potter [mailto:tpot@samba.org]
Sent: 09 January 2002 19:59
To: Jeremy Allison
Cc: Noel Kelly; 'samba@lists.samba.org'
Subject: Re: Another RE: 2.2.3pre winbindd crash
On Wed, Jan 09, 2002 at 10:27:40AM -0800, Jeremy Allison wrote:
> > My panic action failed to open as well (the X display is correct) but
I'm> > not sure this is going to work anyway as the winbind process has
probably> > disappeared by then:
> >
> > panic action = /usr/bin/X11/xterm -display :1.0 -e gdb
> > /usr/local/samba/bin/winbindd
>
> No, it should catch it - ok, try using a panic action of
> /bin/sleep 9999999 instead. That way the process will just wait
> and can be attached to by gdb and we can get a stack backtrace.
I always put '%d' on the end of the panic action so it can automatically
attach to the crashed process. Sometimes some mucking around with xhost
is needed.
Tim.