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 632311 - @verbatim@endverbatim crashes doxygen
@verbatim@endverbatim crashes doxygen
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2010-10-16 19:34 UTC by Murray Cumming
Modified: 2012-11-18 11:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Murray Cumming 2010-10-16 19:34:28 UTC
A doxygen comment like this will crash doxygen, with at least 1.7.1, 1.7.2 and the svn version. It didn't crash in previous versions.

/** @verbatim@endverbatim
 */

valgrind shows that it happens here:

Generating docs for compound Gnome::Gda::SqlParser...
==25832== Invalid read of size 1
==25832==    at 0x8278112: stripEmptyLines(char const*) (doctokenizer.l:266)
==25832==    by 0x8279958: doctokenizerYYlex() (doctokenizer.l:609)
==25832==    by 0x82660DF: DocPara::handleCommand(QCString const&) (docparser.cpp:4905)
==25832==    by 0x8268CE5: DocPara::parse() (docparser.cpp:5884)
==25832==    by 0x82625E1: DocAutoListItem::parse() (docparser.cpp:3912)
==25832==    by 0x82626CD: DocAutoList::parse() (docparser.cpp:3932)
==25832==    by 0x82688FD: DocPara::parse() (docparser.cpp:5783)
==25832==    by 0x8269D0D: DocRoot::parse() (docparser.cpp:6242)
==25832==    by 0x826AC31: validatingParseDoc(char const*, int, Definition*, MemberDef*, char const*, bool, bool, char const*, bool, bool) (docparser.cpp:6453)
==25832==    by 0x8181F7F: OutputList::parseDoc(char const*, int, Definition*, MemberDef*, QCString const&, bool, bool, char const*, bool, bool) (outputlist.cpp:161)
==25832==    by 0x8211BFB: ClassDef::writeDetailedDescription(OutputList&, QCString const&, bool, QCString const&) (classdef.cpp:924)
==25832==    by 0x82149F0: ClassDef::writeDocumentation(OutputList&) (classdef.cpp:1545)
==25832==    by 0x8068818: generateNamespaceDocs() (doxygen.cpp:8269)
==25832==    by 0x807037F: generateOutput() (doxygen.cpp:10453)
==25832==    by 0x804A2F7: main (main.cpp:38)
==25832==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
Comment 1 Dimitri van Heesch 2010-10-16 21:05:03 UTC
I didn't get this crash, not did valgrind show any issues, but I see that stripEmptyLines does not properly handle the case were s is a null pointer, so I'll fix this.
Comment 2 Dimitri van Heesch 2011-01-03 19:01:45 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.3. 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.