[xml] xmlCleanupParser hangs



Hello, 

I'm parsing some XML files and using XPath and after going through each file, I'm cleaning up like this:

    if (xpathCtx)
        xmlXPathFreeContext(xpathCtx);
    if (doc)
        xmlFreeDoc(doc);

    xmlCleanupParser();


The program goes through this cycle for a few files until it hangs.  I attached gdb and see that it hangs here:

(gdb) bt
#0  __lll_lock_wait (futex=0x3c092428, private=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:46
#1  0x2bb97d00 in __pthread_cond_destroy (cond=0x3c092428)
    at pthread_cond_destroy.c:33
#2  0x2b9c0d20 in xmlFreeRMutex__internal_alias (tok=0x3c092400)
    at threads.c:338
#3  0x2ba218d4 in xmlDictCleanup__internal_alias () at dict.c:142
#4  0x2b9461a4 in xmlCleanupParser__internal_alias () at parser.c:14064
#5  0x1000df7c in cxf_command_output_func (cxf_ctx=<value optimized out>,
    user_ctx=0x3c092318, user_data=<value optimized out>)
    at pds/test/devtest/./src/cli_show_pds_tag_all.c:217
...
...

I'm wondering if anyone else has run into this or has been fixed already.  I wasn't able to find a bug on it already.

Thanks,
Aman


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