Version: 3.5.4 (using KDE 3.5.9) Compiler: GCC 4.3.2-r2 OS: Linux Installed from: Gentoo Packages I was just loading some of my C++ projects and kdevelop freezes, e.g. did not respond anymore. I filled in a bugreport at Gentoos bugtracker: http://bugs.gentoo.org/show_bug.cgi?id=259094 You can find there some backtraces with GDB and console output.
I fixed the problem: az@acompneu ~/Programmierung/kdevelop-3.5 $ svn diff Index: lib/cppparser/lexer.cpp =================================================================== --- lib/cppparser/lexer.cpp (revision 926528) +++ lib/cppparser/lexer.cpp (working copy) @@ -241,7 +241,7 @@ m_startLine = false; int ppe = preprocessorEnabled(); setPreprocessorEnabled( false ); - while( currentChar() && currentChar() != '\n' ){ + while( !currentChar().isNull() && currentChar() != '\n' ){ Token tok(m_source); nextToken( tok, true ); } It always occurs while parsing any C++ file with some unicode characters. (bool)currentChar() is false in that case, so it never proceed further at this character.
SVN commit 926595 by apaku: Fix endless loop by checking for null-character explicitly instead of relying on a QChar->bool auto-conversion. Patch by Albert Zeyer - thanks. BUG:184420 M +1 -1 lexer.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=926595