Aaron I have a patch that solves this I belive, however there is an
issue I found with the args array with the UID command, I think this may
be the root of the issue with bug 546, I have removed the "the_args"
variable from the global scope and make it so it uses the imap session's
args variable. The problem is that anything that calls UID e.g. _ic_uid
does pointer math on the args array and would have been doing it on the
global pointer thus causing an issue potentially with the global and now
my g_new0 allocate array. any ideas on fixing the pointer math in
_ic_uid? I am thinking about a shift function but that would cause to
much memory shifting in the args array. I will write some code to add a
current args index into the session and see how that works. Patch to
follow shortly as soon as valgrind doesn't show massive errors.
Thanks,
Leif
Leif Jackson wrote:
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
humm the init_args variable is local, that means it doesn't do much?
E.g. it means it will memset an active the_args global pointer ? and
since that pointer is global it would step on things right? Why don't
we just make it allocate the_args in that function and the free it
later. any reason for the global?
-leif
-leif
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev