Detecting runaway process
Shlomi Fish
shlomif at shlomifish.org
Thu Nov 17 15:34:01 IST 2011
Hi Ido,
On Thu, 17 Nov 2011 14:41:48 +0200
ik <idokan at gmail.com> wrote:
> On Thu, Nov 17, 2011 at 13:13, Shlomi Fish <shlomif at shlomifish.org> wrote:
>
> > On Thu, 17 Nov 2011 03:03:39 -0800 (PST)
> > Valery Reznic <valery_reznic at yahoo.com> wrote:
> >
> > > You can try
> > > strace -p <pid_of_daemon>
> > >
> >
> > ik can also use gdb for that.
> >
>
> Can't use gdb, it's a Ruby daemon (I didn't wrote it).
Well, in that case try looking for a Ruby equivalent to "sh -x" or to Perl's
http://search.cpan.org/dist/Devel-Trace/ , which prints every line before executing it. Keep it in a log and see where exactly it fails.
> And strace gives different outputs on each crash :(
>
> I can't figure out what is wrong.
>
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
"Humanity" - Parody of Modern Life - http://shlom.in/humanity
No self‐respecting tomboy would use Mandriva.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
More information about the Linux-il
mailing list