On Sat, 2007-03-24 at 20:25 -0500, Leif Jackson wrote:
> [EMAIL PROTECTED] wrote:

> > ---------------------------------------------------------------------- 
> >  aaron - 24-Mar-07 23:32  
> > ---------------------------------------------------------------------- 
> > Ok, I see what this bug might actually be about, and SIGHUP was me being
> > stupid and has nothing to do with the issue here.
> >
> > In dbmail-imapsession.c, 'the_args' is an array of parsed out imap command
> > arguments. It is static memory that is passed around a lot. Someplace this
> > must not be going according to plan.
> >
> > Would it be possible to trace the imap commands leading up to this error? 
> >
> >   
> 
> I was just looking at this. Since the_args is a global var, it doesn't 
> make sence to return it does it? Maybe there is some namespace 
> corruption... ?

Yeah basically, that's what I'm thinking.

This function also bottlenecks any ability to pipeline functions and to
reenter the function from multiple threads. In the long term we need a
rewrite. In the short term, I bet just some locking around the variable
would do the trick to alert us to situations where we're parsing a new
imap command before we're totally cleaned up from the previous command.

Aaron

_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to