Subject: Re: bug#9413: 24.0.50; crash in x-show-tip

From: Jan Djärv <[email-masked]>
Date: Fri, 02 Sep 2011 07:21:43 +0200

Leo skrev 2011-09-02 04:52:
> On 2011-09-01 14:27 +0800, Jan D. wrote:
>> Did you do any XML parsing in Emacs before this crash?
>> There is a well known bug in xmlCleanupParser that destroys thread
>> specific storage, see:
>> http://lists.fedoraproject.org/pipermail/devel/2010-January/129117.html.
>>
>> 	Jan D.
>
> Does emacs suffer from this issue?
>

I think so, xmlCleanupParser is called by parse_region every time it parses 
successfully.  According to the bug and documentation, xmlCleanupParser shall 
be called only when you are sure no more xml calls will be made by the 
program.  It is suggested to do this just before exit in case you are not 
sure, to avoid that valgrind (and other memory debuggers) report memory leaks.

	Jan D.