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 705586 - @code tag as the last line of a comment block causes the parser to hang
@code tag as the last line of a comment block causes the parser to hang
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.8.4
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2013-08-06 18:33 UTC by aarp
Modified: 2013-08-23 15:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple C# program and doxygen config file exhibiting problem (29.23 KB, application/x-zip-compressed)
2013-08-06 18:33 UTC, aarp
Details

Description aarp 2013-08-06 18:33:44 UTC
Created attachment 250996 [details]
Simple C# program and doxygen config file exhibiting problem

In some unique situations, having a @code tag as the last line of a comment block causes the parser to hang.  See the attached C# project files and Doxygen configuration file that reproduces this issue.

Additionally, if this configuration file is run from the Doxygen GUI, the last few lines of output before the hang are:
Parsing files
Preprocessing C:/SourceCode/DoxygenTest/DoxygenTest/Program.cs...
Parsing file C:/SourceCode/DoxygenTest/DoxygenTest/Program.cs...


However, if run from a command prompt, the last few lines before the hang are:
Parsing files
Preprocessing C:/SourceCode/DoxygenTest/DoxygenTest/Program.cs...
Parsing file C:/SourceCode/DoxygenTest/DoxygenTest/Program.cs...
C:/SourceCode/DoxygenTest/DoxygenTest/Program.cs:29: Warning: reached end of comment while inside a @code block; check for missing @endcode tag!

It appears to be detecting the missing @endcode, but not recovering properly. 

The comment block that causes the hang is:
/// <summary>
/// This is a test case for Doxygen
/// </summary>
///
/// \code 


Having another line of 3-slash comments after the \code line will cause the parser to behave properly.
Comment 1 Dimitri van Heesch 2013-08-06 18:51:01 UTC
Confirmed. Should be fixed in the next GIT update.
As a workaround you could set MARKDOWN_SUPPORT to NO.
Comment 2 Dimitri van Heesch 2013-08-23 15:04:30 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.5. 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.