After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 121576 - segfault when threading
segfault when threading
Status: VERIFIED DUPLICATE of bug 120870
Product: libxml2
Classification: Platform
Component: general
2.5.8
Other Linux
: Normal critical
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2003-09-06 00:36 UTC by Fredrik Arnerup
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fredrik Arnerup 2003-09-06 00:36:11 UTC
In our application we use the libxml++ saxparser in a separate thread and
get a segmentation fault that seems to be thread-related.
I have tried libxml++-0.25.0 together with libxml2-2.5.4, 2.5.7, 2.5.8 and
2.5.10. The problem is present only when using 2.5.8 and 2.5.10, which
leads me to believe (I may be wrong) that the problem is in libxml2 and not
in libxml++.

Here is a backtrace:
Program received signal SIGSEGV, Segmentation fault.

Thread 16386 (LWP 1998)

  • #0 pthread_mutex_lock
    from /lib/libpthread.so.0
  • #1 xmlMutexLock
    from /usr/lib/libxml2.so.2
  • #2 xmlInitializeGlobalState
    from /usr/lib/libxml2.so.2
  • #3 xmlNewGlobalState
    from /usr/lib/libxml2.so.2
  • #4 xmlGetGlobalState
    from /usr/lib/libxml2.so.2
  • #5 __xmlIndentTreeOutput
    from /usr/lib/libxml2.so.2
  • #6 xmlpp::KeepBlanks::KeepBlanks(bool)
    from /usr/lib/libxml++-0.1.so.11
  • #7 xmlpp::SaxParser::parse_stream(std::istream&)
    from /usr/lib/libxml++-0.1.so.11


I intend to try to reproduce this bug in a simple example.
Comment 1 Daniel Veillard 2003-09-06 10:49:21 UTC
Already fixed in CVS I think.
Make sure you call the library initialization routine explicitely
before running threaded operation xmlInitParser();
I can't debug libxml++ specific code so if you still need to report
a problem, pure C code on top of the library please.

Daniel

*** This bug has been marked as a duplicate of 120870 ***
Comment 2 Daniel Veillard 2003-09-13 20:50:01 UTC
  This should be closed by the release of libxml2-2.5.11,
                                                                     
          
    thanks!
                                                                     
          
Daniel