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 734704 - Sigsegv while generating XML output
Sigsegv while generating XML output
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.8.7-GIT
Other Linux
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2014-08-13 07:13 UTC by milasudril
Modified: 2014-08-25 08:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This file triggers SIGSEGV (6.34 KB, application/octet-stream)
2014-08-13 07:13 UTC, milasudril
Details

Description milasudril 2014-08-13 07:13:57 UTC
Created attachment 283252 [details]
This file triggers SIGSEGV

Input file: See attachment


GDB session: Looks like NULL dereference.

Generating XML output for page hello

Program received signal SIGSEGV, Segmentation fault.
0x00000000005d7d9b in writeXMLCodeString (t=..., s=0x1 <error: Cannot access memory at address 0x1>, 
    col=@0x267a3f8: 0) at xmlgen.cpp:128
128       while ((c=*s++))
(gdb) backtrace
  • #0 writeXMLCodeString
    at xmlgen.cpp line 128
  • #1 XMLCodeGenerator::codify
    at xmlgen.cpp line 246
  • #2 FileParser::parseCode
    at fileparser.cpp line 45
  • #3 XmlDocVisitor::visit
    at xmldocvisitor.cpp line 310
  • #4 DocIncOperator::accept
    at docparser.h line 517
  • #5 CompAccept<DocPara>::accept
    at docparser.h line 182
  • #6 DocPara::accept
    at docparser.h line 1101
  • #7 CompAccept<DocSection>::accept
    at docparser.h line 182
  • #8 DocSection::accept
    at docparser.h line 927
  • #9 CompAccept<DocSection>::accept
    at docparser.h line 182
  • #10 DocSection::accept
    at docparser.h line 927
  • #11 CompAccept<DocRoot>::accept
    at docparser.h line 182
  • #12 DocRoot::accept
    at docparser.h line 1366
  • #13 writeXMLDocBlock
    at xmlgen.cpp line 440
  • #14 generateXMLForPage
    at xmlgen.cpp line 1882
  • #15 generateXML
    at xmlgen.cpp line 2014
  • #16 generateOutput
    at doxygen.cpp line 11426
  • #17 main
    at main.cpp line 38

Comment 1 Dimitri van Heesch 2014-08-13 17:32:10 UTC
Confirmed. Should be fixed in GitHub via the commit:
https://github.com/doxygen/doxygen/commit/14f88af12bae98859eafe605ddb5f54029e44076
Comment 2 Dimitri van Heesch 2014-08-21 17:15:22 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.8. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferrably in the form of a self-contained example).
Comment 3 milasudril 2014-08-25 08:31:22 UTC
(In reply to comment #2)
> This bug was previously marked ASSIGNED, which means it should be fixed in
> doxygen version 1.8.8. Please verify if this is indeed the case. Reopen the
> bug if you think it is not fixed and please include any additional information 
> that you think can be relevant (preferrably in the form of a self-contained
> example).

Pre-build Doxygen 1.8.8 works as expected on Microsoft Windows [Version 6.1.7601] 64-bit