Re: [xml] xmlParseFile crashes with segmentation fault in Multithreaded Application



Hi,

On Mon, 2005-04-18 at 01:20 -0700, Manoj Kumar wrote:
Hello everyone,
 
we have a multithreaded application. When we try call the xmlParseFile
function from the subthreads the call fails with segmentation fault.
However the call succeeds if done from the main thread. 
 
Can anybody help us around this problem and tell us how to and what
are the things to be followed when using xml in multithreaded
applications

Do you use xmlCleanupParser() in the thread's code? If yes, then
try to search for this function in the archives (e.g. [1]). It's
intended to be called only once in the main thread.

[1] http://mail.gnome.org/archives/xml/2003-September/msg00241.html

Regards,

Kasimier



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