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 141824 - crash when processing special characters
crash when processing special characters
Status: RESOLVED FIXED
Product: libxml++
Classification: Bindings
Component: General
2.6.x
Other Linux
: Normal major
: ---
Assigned To: Christophe de Vienne
Christophe de Vienne
Depends on:
Blocks:
 
 
Reported: 2004-05-04 15:54 UTC by freggy1
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
test xml file which crashes the parser (68 bytes, text/xml)
2004-05-04 15:56 UTC, freggy1
Details
c++ source code containing main function (to be called with xml file name as argument) (363 bytes, text/x-c++src)
2004-05-04 15:58 UTC, freggy1
Details
c++ source code containing the sax parser (240 bytes, text/x-c++src)
2004-05-04 15:59 UTC, freggy1
Details
header file for sax parser class (346 bytes, text/x-chdr)
2004-05-04 16:00 UTC, freggy1
Details

Description freggy1 2004-05-04 15:54:54 UTC
libxml++ crashes with the following backtrace when parsing a document which
contains the é character with the sax parser.

  • #0 ??
  • #1 ??
  • #2 ??
  • #3 ??
  • #4 raise
    from /lib/tls/libc.so.6
  • #5 abort
    from /lib/tls/libc.so.6
  • #6 __cxa_call_unexpected
    from /usr/lib/libstdc++.so.5
  • #7 std::terminate()
    from /usr/lib/libstdc++.so.5
  • #8 __cxa_throw
    from /usr/lib/libstdc++.so.5
  • #9 std::__throw_length_error(char const*)
    from /usr/lib/libstdc++.so.5
  • #10 std::string::_Rep::_S_create(unsigned, std::allocator<char> const&)
    from /usr/lib/libstdc++.so.5
  • #11 std::string& std::string::_M_replace_safe<char const*>(__gnu_cxx::__normal_iterator<char*, std::string>, __gnu_cxx::__normal_iterator<char*, std::string>, char const*, char const*)
    from /usr/lib/libstdc++.so.5
  • #12 std::string::string(char const*, unsigned, std::allocator<char> const&)
    from /usr/lib/libstdc++.so.5
  • #13 Glib::ustring::ustring(char const*, unsigned)
    from /usr/lib/libglibmm-2.4.so.1
  • #14 xmlpp::SaxParserCallback::characters(void*, unsigned char const*, int)
    from /usr/lib/libxml++-2.6.so.1
  • #15 xmlParseCharDataComplex
    from /usr/lib/libxml2.so.2
  • #16 ??
  • #17 ??

I'm attaching a test case.
Comment 1 freggy1 2004-05-04 15:56:05 UTC
Created attachment 27365 [details]
test xml file which crashes the parser
Comment 2 freggy1 2004-05-04 15:58:32 UTC
Created attachment 27366 [details]
c++ source code containing main function (to be called with xml file name as argument)
Comment 3 freggy1 2004-05-04 15:59:29 UTC
Created attachment 27367 [details]
c++ source code containing the sax parser
Comment 4 freggy1 2004-05-04 16:00:14 UTC
Created attachment 27368 [details]
header file for sax parser class