Re: [gmime-devel] crash in g_mime_iconv_strndup



On Mon, 14 Nov 2011 15:07:07 +0100, Paul J Stevens wrote:
> Jeff,
> 
> 
> The circumstances under which John uncovered this, and the general
> sanity of the gmime calls involved, suggested a thread-related issue.
> 
> Closer examination revealed that dbmail was not handling iconv_t
> handlers in a thread-safe manner.
> 
> I think I've remedied this in the dbmail code, so please assume that's
> where the bug lies.
> 
> 
> On 13-11-11 16:18, John Feuerstein wrote:
> > Another idea (I'm not really familiar with how iconv works): Perhaps the
> > problem is related to an unclean state of "cd" (the conversion
> > descriptor) when entering the loop. Any ideas how to debug that are
> > welcome.

I confirm, in the end it looks like this was the culprit.

Thank you both for your help in tracking this down.

-- 
John Feuerstein <john feurix com>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]