FW: (panic action)
Michael.Gerdts at alcatel.com
Wed Apr 3 04:36:04 GMT 2002
Look at the bottom of my post (there was a typo). It is
/proc/%d/object/a.out, unless you are running Solaris 2.6 or earlier.
On Tue, 2002-04-02 at 17:07, David Shapiro wrote:
> 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