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

Sigsegv while generating XML output (Origin: bugzilla #734704) #5543

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

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity major in component build for ---
Reported in version 1.8.7-GIT on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2014-08-13 07:13:57 +0000, milasudril@gmail.com wrote:

Created attachment 283252
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 0x00000000005d7d9b in writeXMLCodeString (t=..., s=0x1 <error: Cannot access memory at address 0x1>,

col=@0x267a3f8: 0) at xmlgen.cpp:128

1 0x00000000005d7fd7 in XMLCodeGenerator::codify (this=0x267a3d0, text=0x0) at xmlgen.cpp:246

2 0x000000000044d024 in FileParser::parseCode (this=0x10ec280, codeOutIntf=..., input=..., startLine=-1,

endLine=-1, showLineNumbers=true) at fileparser.cpp:45

3 0x0000000000751835 in XmlDocVisitor::visit (this=0x2678900, op=0x264ad50) at xmldocvisitor.cpp:310

4 0x00000000006fd404 in DocIncOperator::accept (this=0x264ad50, v=0x2678900) at docparser.h:517

5 0x00000000007032eb in CompAccept::accept (this=0x264ace0, obj=0x264ace0, v=0x2678900)

at docparser.h:182

6 0x00000000006fe437 in DocPara::accept (this=0x264ace0, v=0x2678900) at docparser.h:1101

7 0x000000000070276b in CompAccept::accept (this=0x265b7f0, obj=0x265b7f0, v=0x2678900)

at docparser.h:182

8 0x00000000006fde01 in DocSection::accept (this=0x265b7f0, v=0x2678900) at docparser.h:927

9 0x000000000070276b in CompAccept::accept (this=0x266d9d0, obj=0x266d9d0, v=0x2678900)

at docparser.h:182

10 0x00000000006fde01 in DocSection::accept (this=0x266d9d0, v=0x2678900) at docparser.h:927

11 0x000000000070409f in CompAccept::accept (this=0x2481c20, obj=0x2481c20, v=0x2678900)

at docparser.h:182

12 0x00000000006ff053 in DocRoot::accept (this=0x2481c20, v=0x2678900) at docparser.h:1366

13 0x00000000005cdf71 in writeXMLDocBlock (t=..., fileName=..., lineNr=2, scope=0x1da7740, md=0x0, text=...)

at xmlgen.cpp:440

14 0x00000000005d6aff in generateXMLForPage (pd=0x1da7740, ti=..., isExample=false) at xmlgen.cpp:1882

15 0x00000000005d74c6 in generateXML () at xmlgen.cpp:2014

16 0x0000000000431fdb in generateOutput () at doxygen.cpp:11426

17 0x00000000004035e6 in main (argc=1, argv=0x7fffffffd798) at main.cpp:38

(gdb)

On 2014-08-13 17:32:10 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in GitHub via the commit:
SHA: 14f88af

On 2014-08-21 17:15:22 +0000, Dimitri van Heesch wrote:

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

On 2014-08-25 08:31:22 +0000, milasudril@gmail.com wrote:

(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

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment