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

Segfaults when generating index (Origin: bugzilla #671426) #4608

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

Comments

Projects
None yet
1 participant
@doxygen
Copy link
Owner

doxygen commented Jul 2, 2018

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

Original attachment names and IDs:

On 2012-03-06 00:45:16 +0000, Michal Sojka wrote:

Program received signal SIGSEGV, Segmentation fault.
0x00000000007012f1 in QGList::append (this=0x30, d=0x2ee3be0) at qglist.cpp:366
366 register QLNode *n = new QLNode( newItem(d) );
(gdb) bt

0 0x00000000007012f1 in QGList::append (this=0x30, d=0x2ee3be0) at qglist.cpp:366

1 0x000000000044c53b in QList::append (this=0x30, d=0x2ee3be0) at ../qtools/qlist.h:61

2 0x000000000044a054 in FTVHelp::decContentsDepth (this=0xf879f0) at ftvhelp.cpp:542

3 0x00000000004310cd in IndexList::foreach (this=0xc9e640, methodPtr=&virtual IndexIntf::decContentsDepth()) at index.h:63

4 0x000000000043125d in IndexList::decContentsDepth (this=0xc9e640) at index.h:123

5 0x000000000065a0b6 in Definition::addSectionsToIndex (this=0x28659a0) at definition.cpp:399

6 0x000000000047bcc2 in writeSubPages (pd=0x28672a0) at index.cpp:2749

7 0x000000000047fbd2 in writeIndex (ol=...) at index.cpp:3453

8 0x00000000004816be in writeIndexHierarchyEntries (ol=..., entries=...) at index.cpp:3762

9 0x0000000000481fa2 in writeIndexHierarchy (ol=...) at index.cpp:3912

10 0x000000000042f302 in generateOutput () at doxygen.cpp:10695

11 0x00000000004034cd in main (argc=1, argv=0x7fffffffe0d8) at main.cpp:38

Let me know whether you need the sources of my project. It's GPL but I'd have to remove some binary files to keep the size of the tarball reasonable small.

-Michal

On 2012-03-06 01:27:37 +0000, Michal Sojka wrote:

Created attachment 209042
Segfaults on these files

How to reproduce:

tar xf nul.tar.gz
cd nul/build/doc
doxygen

The tree contains two slightly different copies of the same file (nul.dox). When one copy is removed, doxygen doesn't segfault.

On 2012-03-08 21:13:28 +0000, Dimitri van Heesch wrote:

The problem is that in one copy there is a section with label sec_3_1 and in the other the same label is a subsection. Of course doxygen should handle this more gracefully.

On 2012-03-28 13:33:27 +0000, Christoph Deil wrote:

I think I just ran into the same bug trying to build docs for my project.

This is on Mac OS X Lion with doxygen 1.8.0

Generating page index...

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000030
0x000000010033b9ed in QGList::append ()
(gdb) bt

0 0x000000010033b9ed in QGList::append ()

1 0x00000001000ed3a5 in FTVHelp::decContentsDepth ()

2 0x00000001000d8d56 in IndexList::foreach ()

3 0x000000010004ccaa in Definition::addSectionsToIndex ()

4 0x0000000100124b5f in writeIndexHierarchyEntries ()

5 0x00000001000c670f in generateOutput ()

6 0x000000010000175f in main ()

On 2012-04-16 08:24:09 +0000, Petr wrote:

*** Bug 673992 has been marked as a duplicate of this bug. ***

On 2012-05-19 12:26:28 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.1. 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.

On 2012-05-20 12:27:49 +0000, Christoph Deil wrote:

(In reply to comment # 5)

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.1. 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.

Works for me.
Thanks!

@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
You can’t perform that action at this time.