FW: (panic action)

David Shapiro David.Edward.Shapiro at btitele.com
Tue Apr 2 14:09:02 GMT 2002

I don't think solaris has in /proc/%d an exe folder.  Is there an
alternative way to do this for solaris?


-----Original Message-----
From: Mike Gerdts [mailto:Michael.Gerdts at alcatel.com]
Sent: Tuesday, April 02, 2002 12:46 PM
To: Samba Technical Mailing List
Subject: Re: FW: (panic action)

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.


More information about the samba-technical mailing list