Package: doxygen
Version: 1.5.6-2
Severity: normal
When running doxygen on a PHP file with a conditional piece of code, it
segfaults.
This is not an issue with the current SVN version.
== TESTCASE ==
wal...@wjdsys:0:/tmp/test$ ls
1.php
wal...@wjdsys:0:/tmp/test$ cat 1.php
<?php
if (true) {
$a = 1; ///< somevar
}
?>
wal...@wjdsys:0:/tmp/test$ doxygen -g >/dev/null
wal...@wjdsys:0:/tmp/test$ doxygen
Searching for include files...
Searching for example files...
Searching for images...
Searching for dot files...
Searching for files to exclude
Searching for files to process...
Searching for files in directory /tmp/test
Reading and parsing tag files
Reading /tmp/test/1.php...
Parsing file /tmp/test/1.php...
Segmentation fault
== BACKTRACE ==
wal...@wjdsys:139:/tmp/test$ gdb /home/walter/src/doxygen-1.5.6/bin/doxygen
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run
Starting program: /home/walter/src/doxygen-1.5.6/bin/doxygen
Searching for include files...
Searching for example files...
Searching for images...
Searching for dot files...
Searching for files to exclude
Searching for files to process...
Searching for files in directory /tmp/test
Reading and parsing tag files
Reading /tmp/test/1.php...
Parsing file /tmp/test/1.php...
Program received signal SIGSEGV, Segmentation fault.
parseCommentBlock (parser=0x12cc8b0, curEntry=0x0, comme...@0xa72400,
filena...@0xa72310, lineNr=3, isBrief=false, isAutoBriefOn=false,
isInbody=true, pr...@0xa7245c, positi...@0x7fffd71b8788,
newentryneed...@0x7fffd71b878f) at ../qtools/qcstring.h:197
197 char * data() const { return m_data; }
(gdb) back
#0 parseCommentBlock (parser=0x12cc8b0, curEntry=0x0, comme...@0xa72400,
filena...@0xa72310, lineNr=3, isBrief=false, isAutoBriefOn=false,
isInbody=true, pr...@0xa7245c, positi...@0x7fffd71b8788,
newentryneed...@0x7fffd71b878f) at ../qtools/qcstring.h:197
#1 0x000000000053bef3 in handleCommentBlock (d...@0xa72400, brief=true) at
scanner.l:5352
#2 0x000000000053e9d5 in scanYYlex () at scanner.l:5080
#3 0x0000000000553457 in CLanguageScanner::parseInput (this=<value optimized
out>, fileName=<value optimized out>, fileBuf=<value optimized out>,
root=0x136db00) at scanner.l:5597
#4 0x000000000040f7bc in parseFiles (root=0x136db00, rootNav=0x136ddc0) at
doxygen.cpp:8518
#5 0x0000000000426673 in parseInput () at doxygen.cpp:9733
#6 0x0000000000402a3e in main (argc=1, argv=0x7fffd71b9a68) at main.cpp:37
(gdb) print comment
$1 = (const QCString &) @0xa72400: {m_data = 0x1364210 "< somevar"}
(gdb)
== OTHER VERSIONS ==
wal...@wjdsys:0:/tmp/test$ /home/walter/src/doxygen-svn/bin/doxygen >/dev/null
2>&1 && echo works fine
works fine
-- System Information:
Debian Release: 5.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages doxygen depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libpng12-0 1.2.27-2+lenny2 PNG library - runtime
ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
doxygen recommends no packages.
Versions of packages doxygen suggests:
pn doxygen-doc <none> (no description available)
pn doxygen-gui <none> (no description available)
ii graphviz 2.20.2-3 rich set of graph drawing tools
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]