Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML parser segmentation fault (Origin: bugzilla #592454) #3479

Closed
doxygen opened this issue Jul 2, 2018 · 0 comments
Closed

XML parser segmentation fault (Origin: bugzilla #592454) #3479

doxygen opened this issue Jul 2, 2018 · 0 comments

Comments

@doxygen
Copy link
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity blocker in component general for ---
Reported in version 1.6.0 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2009-08-20 12:28:48 +0000, Jean-Marie wrote:

Created attachment 141241
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 0x000000000042e6f7 in Entry::addSubEntry ()

1 0x00000000005c5808 in DBusXMLHandler::endElement ()

2 0x00000000006b05f5 in QXmlSimpleReader::parseElementETagBegin2 ()

3 0x00000000006b4f75 in QXmlSimpleReader::parseElement ()

4 0x00000000006b4c85 in QXmlSimpleReader::parseContent ()

5 0x00000000006b51a7 in QXmlSimpleReader::parseElement ()

6 0x00000000006b4c85 in QXmlSimpleReader::parseContent ()

7 0x00000000006b51a7 in QXmlSimpleReader::parseElement ()

8 0x00000000006b4c85 in QXmlSimpleReader::parseContent ()

9 0x00000000006b51a7 in QXmlSimpleReader::parseElement ()

10 0x00000000006b4c85 in QXmlSimpleReader::parseContent ()

11 0x00000000006b51a7 in QXmlSimpleReader::parseElement ()

12 0x00000000006b4c85 in QXmlSimpleReader::parseContent ()

13 0x00000000006b51a7 in QXmlSimpleReader::parseElement ()

14 0x00000000006b4c85 in QXmlSimpleReader::parseContent ()

15 0x00000000006b51a7 in QXmlSimpleReader::parseElement ()

16 0x00000000006b79a9 in QXmlSimpleReader::parse ()

17 0x00000000005c28af in DBusXMLScanner::parseInput ()

18 0x0000000000406c2c in parseFiles ()

19 0x0000000000427780 in parseInput ()

20 0x0000000000402945 in main ()

On 2009-08-20 12:41:26 +0000, Jean-Marie wrote:

Created attachment 141242
Parse this file leads to segmentation fault

Xml tag value seems to be cause to crash.

On 2009-08-20 12:49:18 +0000, Dimitri van Heesch wrote:

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"?

On 2009-08-20 12:53:23 +0000, Jean-Marie wrote:

(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.

On 2009-08-25 12:57:17 +0000, Jean-Marie wrote:

Works form me with 1.6.1 version.

@doxygen doxygen closed this as completed Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant