Is this something I can do when I discover the process is hung, or something that has to be prepared before it hangs? For example, if I come back into the office on Monday to find RANCID hung, is there anything I can do to collect forensics as to what caused it to hang?<br clear="all">
<br>--<br>Eric Cables<br>
<br><br><div class="gmail_quote">On Fri, Nov 14, 2008 at 3:26 PM, john heasley <span dir="ltr"><<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have no idea what the problem is. I expect it'l require a mix of<br>
ktrace, gcore/gdb, and tcpdump to figure out what is causing tcl/expect<br>
to hang.<br>
<br>
Fri, Nov 14, 2008 at 11:25:29AM -0800, Eric Cables:<br>
<div><div></div><div class="Wj3C7c">> Are there any debugging options available to try and isolate the root cause<br>
> of the problem? I could probably write up a shell script that finds hung<br>
> processes and kills them, but that's certainly not the best option. :-)<br>
><br>
> --<br>
> Eric Cables<br>
><br>
><br>
> On Fri, Nov 14, 2008 at 11:18 AM, john heasley <<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>> wrote:<br>
><br>
> > Fri, Nov 14, 2008 at 10:33:16AM -0800, Eric Cables:<br>
> > > I've been running into this problem quite frequently, about once a week<br>
> > or<br>
> > > so rancid will hang for no apparent reason, and until I kill the process<br>
> > it<br>
> > > will remain hung. I've read in the archives that Linux & Solaris have a<br>
> > > problem with expect that requires a patch, but does this also include<br>
> > > FreeBSD?<br>
> ><br>
> > Yes, some combinations of recent tcl / expect seem to have trouble on fbsd.<br>
> > I'm not sure why, but the expect was pulled from distribution site for<br>
> > defects. the problem is that rolling back (via ports) seems to resurrect<br>
> > an old problem which itself had been correct in ports by rolling back,<br>
> > IIRC.<br>
> ><br>
> > I do not use freebsd and haven't had time to debug the problem. ports is,<br>
> > imho, too anxious to move forward with new tcl/expect versions and both are<br>
> > too delicate for that.<br>
> ><br>
</div></div></blockquote></div><br>