Bug 755402

Summary: Factory doxygen chrashes when building libzypp documentation.
Product: [openSUSE] openSUSE 12.2 Reporter: Michael Andres <ma>
Component: DevelopmentAssignee: Petr Gajdos <pgajdos>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P3 - Medium    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 755324    

Description Michael Andres 2012-04-03 09:22:39 UTC
See e.g.: 

https://build.opensuse.org/package/live_build_log?arch=i586&package=libzypp&project=openSUSE%3AFactory&repository=standard

Building the same docs for 12.1 or older distros succeeds.
Comment 1 Petr Gajdos 2012-04-11 18:26:46 UTC
I cannot reproduce with local build (zypp:Head, libzypp-11.3.0).
Comment 2 Michael Andres 2012-04-12 08:21:20 UTC
Still, even with local build (x86_64):

 ma@fibonacci:libzypp (0) $ osc up
 U    libzypp-11.3.0.tar.bz2
 U    libzypp.changes
 At revision 885.
 ma@fibonacci:libzypp (2) $ osc build openSUSE_Factory
 Building libzypp.spec for openSUSE_Factory/x86_64
 ........
 /home/abuild/rpmbuild/BUILD/libzypp- 11.3.0/zypp/parser/xml/ParseDefConsume.h:276: warning: unable to resolve reference to `xml::parseDefAssign' for \ref command
 /bin/sh: line 1: 25791 Segmentation fault      /usr/bin/doxygen /home/abuild/rpmbuild/BUILD/libzypp-11.3.0/build/doc/autodoc/Doxyfile
 make[2]: *** [doc/autodoc/html/index.html] Error 139
Comment 3 Michael Andres 2012-04-12 08:37:42 UTC
Name        : doxygen
Version     : 1.8.0
Release     : 1.1
Architecture: x86_64
Install Date: Thu 12 Apr 2012 08:13:06 AM UTC
Group       : Development/Tools/Doc Generators
Size        : 8686301
License     : GPL-2.0+
Signature   : RSA/SHA256, Tue 28 Feb 2012 01:20:35 PM UTC, Key ID b88b2fd43dbdc284
Source RPM  : doxygen-1.8.0-1.1.src.rpm
Build Date  : Tue 28 Feb 2012 01:19:32 PM UTC
Build Host  : build16


Program received signal SIGSEGV, Segmentation fault.
QGList::append (this=0x30, d=0x5894750) at qglist.cpp:366
366     qglist.cpp: No such file or directory.
        in qglist.cpp
(gdb) bt
#0  QGList::append (this=0x30, d=0x5894750) at qglist.cpp:366
#1  0x0000000000442dc5 in append (d=<optimized out>, this=<optimized out>) at ../qtools/qlist.h:61
#2  FTVHelp::decContentsDepth (this=<optimized out>) at ftvhelp.cpp:542
#3  0x0000000000433fdd in IndexList::foreach (this=<optimized out>, methodPtr=&virtual IndexIntf::decContentsDepth()) at index.h:63
#4  0x0000000000653a57 in decContentsDepth (this=<optimized out>) at index.h:123
#5  Definition::addSectionsToIndex (this=0x4638750) at definition.cpp:399
#6  0x000000000047b1c1 in writePageIndex (ol=...) at index.cpp:2826
#7  writeIndexHierarchyEntries (ol=..., entries=<optimized out>) at index.cpp:3766
#8  0x0000000000426441 in generateOutput () at doxygen.cpp:10695
#9  0x0000000000404a1e in main (argc=1, argv=0x7fffffffe2b8) at main.cpp:38
(gdb)
Comment 4 Petr Gajdos 2012-04-12 08:52:26 UTC
Yes, I got it with home:pgajdos/libzypp yet. Unfortunately, segfault in doxygen happens time to time and it is a bit insidious sometimes (see bug 753171). Brief look haven't reveal anything essential, but it looks very similar to bug 753171.
Comment 5 Petr Gajdos 2012-04-12 12:55:56 UTC
Should be fixed by request from home:pgajdos. I have never used doxygen, so my findings can be wrong. After each /page, /section and /subsection follows something like reference, right? You use zypp-envars for both /page and /section in EnvironmentVariables.doc, which seems to be wrong.
Comment 6 Petr Gajdos 2012-04-12 12:58:29 UTC
Minimal testcase:

testcase.doc
---------------------------
/**

\page label Page title

\section label Section title

\subsection label1 Subsection title

*/
---------------------------
Comment 7 Petr Gajdos 2012-04-12 13:00:46 UTC
doxygen should not segfault anyway, I am going to notify upstream -- I do not know how doxygen should react in this case.
Comment 8 Petr Gajdos 2012-04-12 13:21:42 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=673992
Comment 9 Michael Andres 2012-04-13 07:34:17 UTC
Thanks. I'll add the patch you sent via obs.
Comment 10 Petr Gajdos 2012-04-16 15:03:53 UTC
I have submitted svn todays doxygen's snapshot, which resolved issue with duplicate labels for me.

Thanks for reporting and cooperation.
Comment 11 Bernhard Wiedemann 2012-04-16 16:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (755402) was mentioned in
https://build.opensuse.org/request/show/113917 Factory / doxygen