[PLUG] debug running process

Dan Young danielmyoung at gmail.com
Thu Sep 2 23:31:06 UTC 2010


On Thu, Sep 2, 2010 at 9:56 AM, Paul Heinlein <heinlein at madboa.com> wrote:
> It's more difficult, of course, if the parent process starts up
> multiple long-lived forks or threads, but a single-threaded process
> won't pose any difficulty.

The '-f' option causes strace to follow forked child processes, so you
can attach to the parent before a child with an as-yet-unknown PID
spawns.

An aside: anybody else been impressed with the ksplice blog? They've
had some great articles there.

An strace primer:
http://blog.ksplice.com/2010/08/strace-the-sysadmins-microscope/

My favorite, debugging a single bit flip memory error:
http://blog.ksplice.com/2010/06/attack-of-the-cosmic-rays/

-- 
Dan Young



More information about the PLUG mailing list