Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 176190
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo KDE team <kde@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Robin Bankhead <robin.bankhead@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 176190 depends on: Show dependency tree
Bug 176190 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-04-27 00:49 0000
Using kde-base/kdelibs-3.5.6-r6, any applications using the text editor kpart
(Kate, KWrite, Quanta) hang and consume 100% CPU and rapidly eat up RAM when a
.php file is opened.  Application becomes completely unresponsive and must be
killed.

This occurs when using the default syntax-highlighting rules, "Scripts/PHP
(HTML)".  If the .php extensions are removed from this ruleset and attached to
the "Scripts/PHP/PHP" ruleset, behaviour is normal (though other markups in the
document outside the PHP tags are not highlighted).  HTML, CSS, Javascript and
plaintext files are not affected.

Note also that size of the document is not an issue: a simple file containing
only <?php phpinfo(); ?> or similar will still cause the hang.  The file must
have one of the extensions associated with the Scripts/PHP (HTML) ruleset and
contain some PHP tags.

Downgrading to kde-base/kdelibs-3.5.6-r5 'solves' the problem.

emerge --info:
Portage 2.1.2.4 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r1,
2.6.20-gentoo-r5 i686)
=================================================================
System uname: 2.6.20-gentoo-r5 i686 Intel(R) Celeron(R) CPU 2.60GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 25 Apr 2007 12:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -w"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/bin/pptpconfig.php /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb
/usr/share/config /usr/share/wine"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/php/apache1-php4/ext-active/
/etc/php/apache1-php5/ext-active/ /etc/php/apache2-php4/ext-active/
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/
/etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/usr/share/wine/fonts"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -w"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer nodoc sandbox sfperms
strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/"
LINGUAS="en_GB"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://brazil/gentoo-portage"
USE="X a52 aac acpi aiglx alsa apache2 arts asf avi berkdb bitmap-fonts
bluetooth bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dio dri dvd
dvdread eds emboss encode esd fam ffmpeg firefox flac flash foomaticdb fortran
gdbm gif gimp glitz gpm gstreamer gtk2 hal i8x0 iconv ieee1394 imagemagick
innodb isdnlog java javascript jpeg kde ldap libg++ libwww mad matroska midi
mikmod mmx mp3 mpeg msn mysql mysqli ncurses nls nptl nptlonly nsplugin odbc
ogg opengl oss pam pcmcia pcntl pcre pdf perl php png posix ppds pppd python qt
qt3 qt4 quicktime readline reflection samba scanner sdl session sharedmem soap
sockets spell spl sse sse2 ssl svg tcpd theora threads tiff truetype
truetype-fonts type1-fonts unicode usb utf8 vcd vhosts vorbis wifi win32codecs
x86 xcomposite xine xinerama xml xmlrpc xorg xsl xv xvid xvmc zlib"
ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop
empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi
null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard
mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk
hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU"
VIDEO_CARDS="i810 fbdev vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
1. emerge =kde-base/kdelibs-3.5.6-r6
2. emerge kate/kwrite or quanta
3. Open a .php file, or write some PHP code and save it with extension .php,
.php3, etc.

------- Comment #1 From Andrew Gaffney 2007-04-27 02:23:02 0000 -------
I can verify this. After upgrading kdelibs from -r5 to -r6, both quanta and
kate would jump to 100% CPU and rapidly eat memory when opening files (they
were PHP files in my case). I tried recompiling quanta against -r6 to no
effect. Downgrading to -r5 made the problem instantly vanish.

------- Comment #2 From Andrew Gaffney 2007-04-27 02:23:51 0000 -------
*** Bug 176193 has been marked as a duplicate of this bug. ***

------- Comment #3 From Vasileios P. Lourdas 2007-04-27 07:28:54 0000 -------
Can verify this.

emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0,
2.6.20-gentoo-r6 i686)
=================================================================
System uname: 2.6.20-gentoo-r6 i686 Genuine Intel(R) CPU           T2300  @
1.66GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 26 Apr 2007 08:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/php/apache1-php4/ext-active/
/etc/php/apache1-php5/ext-active/ /etc/php/apache2-php4/ext-active/
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/
/etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox
sfperms strict userfetch"
GENTOO_MIRRORS="ftp://ftp.uoi.gr/mirror/OS/gentoo/
ftp://ftp.physics.auth.gr/pub/mirrors/gentoo/ ftp://gentoo.mirrors.pair.com/
ftp://gentoo.mirrors.tds.net/gentoo ftp://gd.tuwien.ac.at/opsys/linux/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://mirror.bih.net.ba/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ "
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 artswrappersuid asf bash-completion berkdb
bitmap-fonts bluetooth branding bzip2 bzlib cairo caps cdr charconv chm cli
cracklib crypt css ctype cups curl dba dbus device-mapper dmi dri dts dvd dvdr
dvdread effects emboss encode esd examples exif expat fam fat fbcon ffmpeg
firefox flac flatfile foomaticdb fortran ftp gcj gd gdbm gif gimp gimpprint glx
gmp gnome gnomedb gnutls gocr gphoto2 gpm gstreamer gtk hal hddtemp howl iconv
imagemagick imap imlib innodb isdnlog jabber java javascript jpeg jpeg2k kde
kdeenablefinal kdehiddenvisibility lcms ldap libg++ libsamplerate libwww
lm_sensors mad maildir mailwrapper mhash midi mikmod mime mmx mmxext motif
mozbranding mozdevelop mozilla mozsvg mp3 mpeg mplayer mpm-worker multiuser
mysql mysqli ncurses nls no-old-linux nodrm nomalloccheck nptl nptlonly
nsplugin ntfs objc odbc offensive ogg opengl pam pcmcia pcntl pcre pdf pear
perl php pic plugin pmu png posix ppds pppd python qt3 qt4 quicktime rar
rdesktop readline recode reflection reiserfs ruby sasl scanner sdl server
session sharedext simplexml slang sndfile soap sockets speex spell spl
spreadsheet sqlite sse sse2 ssl subtitles subversion svga symlink syslog tcltk
tcpd tetex threads tidy tiff tokenizer truetype truetype-fonts type1-fonts
unicode usb userlocales utf8 vda visualization vorbis win32codecs wmf wv wxgtk1
x86 xfs xine xml xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xv
xvid xvmc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym
copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat
linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en"
USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #4 From Vasileios P. Lourdas 2007-04-27 08:42:08 0000 -------
(In reply to comment #1)
> I tried recompiling quanta against -r6 to no
> effect. Downgrading to -r5 made the problem instantly vanish.

Same here.

------- Comment #5 From Carsten Lohrke 2007-04-27 21:10:46 0000 -------
Yep, it's https://bugs.kde.org/show_bug.cgi?id=144599

Was a bit overzealous this time as it seems. Didn't notice any issues. Reverted
the Kate related patches to the ones shipping with -r5 and leave it for 3.5.7.

kdelibs-3.5.6-r7 in cvs.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug