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 592454 - XML parser segmentation fault
XML parser segmentation fault
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.6.0
Other Linux
: Normal blocker
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2009-08-20 12:28 UTC by Jean-Marie
Modified: 2009-08-25 12:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Backtrace with debug symbols (182.41 KB, application/octet-stream)
2009-08-20 12:28 UTC, Jean-Marie
Details
Parse this file leads to segmentation fault (21 bytes, application/xml)
2009-08-20 12:41 UTC, Jean-Marie
Details

Description Jean-Marie 2009-08-20 12:28:48 UTC
Created attachment 141241 [details]
Backtrace with debug symbols

I run new doxygen release 1.6 on my project, I have a segmentation fault on a
specific xml file parsing. With 1.5.9 release it is ok.

Parsing file /PRIVATE/PATH/deployBin.xsd...
Reading /PRIVATE/PATH/deployDataMonitor.xml...
Segmentation fault (core dumped)

I activate printf function :
Entry 3 with name /PRIVATE/PATH/deployDataMonitor.xml type 0x400000 added to
(null) type 0x3000000
Entry::addSubEntry(/PRIVATE/PATH/deployDataMonitor.xml:0x2b7b940) to (null)
Segmentation fault (core dumped)

backtrace (complete in attachment)
(gdb) bt all
  • #0 Entry::addSubEntry
  • #1 DBusXMLHandler::endElement
  • #2 QXmlSimpleReader::parseElementETagBegin2
  • #3 QXmlSimpleReader::parseElement
  • #4 QXmlSimpleReader::parseContent
  • #5 QXmlSimpleReader::parseElement
  • #6 QXmlSimpleReader::parseContent
  • #7 QXmlSimpleReader::parseElement
  • #8 QXmlSimpleReader::parseContent
  • #9 QXmlSimpleReader::parseElement
  • #10 QXmlSimpleReader::parseContent
  • #11 QXmlSimpleReader::parseElement
  • #12 QXmlSimpleReader::parseContent
  • #13 QXmlSimpleReader::parseElement
  • #14 QXmlSimpleReader::parseContent
  • #15 QXmlSimpleReader::parseElement
  • #16 QXmlSimpleReader::parse
  • #17 DBusXMLScanner::parseInput
  • #18 parseFiles
  • #19 parseInput
  • #20 main

Comment 1 Jean-Marie 2009-08-20 12:41:26 UTC
Created attachment 141242 [details]
Parse this file leads to segmentation fault

Xml tag value seems to be cause to crash.
Comment 2 Dimitri van Heesch 2009-08-20 12:49:18 UTC
With version 1.5.9 doxygen didn't parse any XML files. With 1.6.0 it can,
assuming the file is a DBUS interface specification. 

In any case doxygen should not crash of course, but just for my information: did you explicitly tell doxygen to parse this file or was it just sitting there and
picked up "by accident"?
Comment 3 Jean-Marie 2009-08-20 12:53:23 UTC
(In reply to comment #2)
> With version 1.5.9 doxygen didn't parse any XML files. With 1.6.0 it can,
> assuming the file is a DBUS interface specification. 
> 
> In any case doxygen should not crash of course, but just for my information:
> did you explicitly tell doxygen to parse this file or was it just sitting there
> and
> picked up "by accident"?

With 1.5.9 version it is useful to read just xml file content with doxygen html doc, so I tell doxygen to parse all xml files.
Comment 4 Jean-Marie 2009-08-25 12:57:17 UTC
Works form me with 1.6.1 version.