Re: [xml] Deadlock in catalog.c?
- From: Mark Van Peteghem <Mark Van Peteghem telenet be>
- To: xml gnome org
- Subject: Re: [xml] Deadlock in catalog.c?
- Date: Sat, 12 Feb 2011 13:48:16 +0100
I should add that this is on Windows XP with Visual C++ 2005.
Mark Van Peteghem wrote:
Hi,
I'm stuck on what looks like a deadlock in libxml2.
My application calls xmlInitializeCatalog() and xmlLoadCatalog(...)
(which returns 0) in the main thread. Then another thread is launched
in which I do XML validation with DTDs. These work fine until a XML
file refers to a DTD that has to be looked up in the catalog file that
I loaded with xmlLoadCatalog(...): then the thread blocks when trying
to lock xmlCatalogMutex (catalog.c, line 1416 in the function
xmlFetchXMLCatalogFile). The strange thing is that there are no other
threads doing any locking (except for the thread created by libxml2
that waits in xmlGlobalStateCleanupHelper).
I noticed that if I do the same XML validation on the main thread, it
works fine, and after that it works on the other thread as well.
Regards,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]