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 671426 - Segfaults when generating index
Segfaults when generating index
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.0
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
: 673992 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-03-06 00:45 UTC by Michal Sojka
Modified: 2012-05-20 12:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Segfaults on these files (36.55 KB, application/x-gzip)
2012-03-06 01:27 UTC, Michal Sojka
Details

Description Michal Sojka 2012-03-06 00:45:16 UTC
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 QGList::append
    at qglist.cpp line 366
  • #1 QList<FTVNode>::append
    at ../qtools/qlist.h line 61
  • #2 FTVHelp::decContentsDepth
    at ftvhelp.cpp line 542
  • #3 IndexList::foreach
  • #4 IndexList::decContentsDepth
    at index.h line 123
  • #5 Definition::addSectionsToIndex
    at definition.cpp line 399
  • #6 writeSubPages
    at index.cpp line 2749
  • #7 writeIndex
    at index.cpp line 3453
  • #8 writeIndexHierarchyEntries
    at index.cpp line 3762
  • #9 writeIndexHierarchy
    at index.cpp line 3912
  • #10 generateOutput
    at doxygen.cpp line 10695
  • #11 main
    at main.cpp line 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
Comment 1 Michal Sojka 2012-03-06 01:27:37 UTC
Created attachment 209042 [details]
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.
Comment 2 Dimitri van Heesch 2012-03-08 21:13:28 UTC
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.
Comment 3 Christoph Deil 2012-03-28 13:33:27 UTC
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 QGList::append
  • #1 FTVHelp::decContentsDepth
  • #2 IndexList::foreach
  • #3 Definition::addSectionsToIndex
  • #4 writeIndexHierarchyEntries
  • #5 generateOutput
  • #6 main

Comment 4 Petr 2012-04-16 08:24:09 UTC
*** Bug 673992 has been marked as a duplicate of this bug. ***
Comment 5 Dimitri van Heesch 2012-05-19 12:26:28 UTC
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.
Comment 6 Christoph Deil 2012-05-20 12:27:49 UTC
(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!