Re: [Hampshire] Debugging pipes

Top Page

Reply to this message
Author: Ottavio Caruso
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Debugging pipes

On Fri, 22 Feb 2008 11:17:05 +0000, "Bob Dunlop"
<bob.dunlop@???> said:
> Hi,
>
> On Fri, Feb 22 at 10:59, James Courtier-Dutton wrote:
> ...
> > If I run exim and cyrus-imap inside gdb, this also does not help, as
> > the process used to do the receive into cyrus looks like a fork or
> > exec from the cyrus-imap process, and gdb does not attach to them.
> >
> > Does anyone have any idea of how I can track this down a bit more?
>
> You might try "strace -f" on the process to narrow things down. The -f
> will cause strace to follow the action across the fork/exec boundry.
> Unfortunatly I don't think gdb has a similar option.
>
> Otherwise I'd put a wrapper around the thing being exec'd to envoke
> gdb just for the subprocess.
>
> If all else fails a scattering of printfs in the final code usually
> helps.
>


Wouldn't it be better just to check the logs?

--
http://www.fastmail.fm - I mean, what is it about a decent email service?