Bug 144729 - KWrite freezes when parsing "<?" in a PHP file
Summary: KWrite freezes when parsing "<?" in a PHP file
Status: RESOLVED DUPLICATE of bug 144599
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-26 22:47 UTC by Dima Ryazanov
Modified: 2007-04-27 17:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Backtrace for KDE 4 (8.34 KB, text/plain)
2007-04-26 22:50 UTC, Dima Ryazanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Ryazanov 2007-04-26 22:47:44 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3) 
OS:                Linux

If I open a file with a "php" extension that contains a "<?" at the beginning, KWrite simply freezes. Same happens if I save an empty file with s "php" extension, and then type "<?", etc.

Some backtraces I see in GDB:

#0  0xb74eb219 in QRegExpEngine::matchHere () from /usr/qt/3/lib/libqt-mt.so.3
#1  0xb74ebb8a in QRegExpEngine::match () from /usr/qt/3/lib/libqt-mt.so.3
#2  0xb74eee70 in QRegExp::search () from /usr/qt/3/lib/libqt-mt.so.3
#3  0xb63c9ff8 in ?? () from /usr/kde/3.5/lib/kde3/libkatepart.so
#4  0x082ac528 in ?? ()
#5  0x084e98c8 in ?? ()
#6  0x00000000 in ?? ()

Or this:

#0  0xb7156e2a in ?? () from /usr/qt/3/lib/libqt-mt.so.3
#1  0xb74f33fc in QString::operator= () from /usr/qt/3/lib/libqt-mt.so.3
#2  0xb74eec47 in QRegExp::prepareEngineForMatch () from /usr/qt/3/lib/libqt-mt.so.3
#3  0xb74eee1f in QRegExp::search () from /usr/qt/3/lib/libqt-mt.so.3
#4  0xb63c9ff8 in ?? () from /usr/kde/3.5/lib/kde3/libkatepart.so
#5  0x0862dcd8 in ?? ()
#6  0x085ffc48 in ?? ()
#7  0x00000000 in ?? ()

Also, I tried this in Ubuntu - and KWrite worked fine there...

But - the same problem happens in KDE4, compiled from SVN sources. I'll attach a huge backtrace.
Comment 1 Dima Ryazanov 2007-04-26 22:50:38 UTC
Created attachment 20384 [details]
Backtrace for KDE 4
Comment 2 Matthew Woehlke 2007-04-27 17:37:40 UTC

*** This bug has been marked as a duplicate of 144599 ***