Bug 88976 - kcm_kdm goes to 100% CPU on amd64
Summary: kcm_kdm goes to 100% CPU on amd64
Status: RESOLVED WORKSFORME
Alias: None
Product: kcontrol
Classification: Miscellaneous
Component: kcmkdm (show other bugs)
Version: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-07 07:25 UTC by Axel Gonzalez
Modified: 2008-05-19 17:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Gonzalez 2004-09-07 07:25:15 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    FreeBSD Ports
Compiler:          gcc version 3.4.2 [FreeBSD] 20040728 
OS:                FreeBSD

On kcm_kdm when you try to make any change, and the click Apply (or Ok), cpu usage goes to 100%, with the window not responding anymore.

Memory usage seems to remain the same, and changes are not saved after kill the process.

Problem is the same logged as user and KDE su, or logged in as root.


ports installed:

qt-3.3.3
kdelibs-3.3.0_1
kdebase-3.3.0_1


(Was same problem in kde 3.2.3)


How-To-Repeat:

Go:System Administration -> Login Manager
Change any setting
Hit Apply (or Ok)


System is:

FreeBSD moonlight.e-shell.net 6.0-CURRENT FreeBSD 6.0-CURRENT #8: Mon Sep  6 01:37:24 CDT 2004     root@moonlight.e-shell.net:/usr/obj/usr/src/sys/LXAMD64  amd64
Comment 1 Oswald Buddenhagen 2004-09-13 00:16:06 UTC
surprise, surprise, it works for me.
please kill -11 the cpu-hogging process and post the backtrace.
btw, native 64 bits, or 32 bit binaries?
Comment 2 Axel Gonzalez 2004-09-13 10:05:39 UTC
Its 64 bits, compiled from freebsd ports

here is the trace:

[Switching to LWP 100139]
[KCrash handler]
#6  0x000000020079be3a in QValueListPrivate<QString>::at ()
   from /usr/local/lib/libkutils.so.3
#7  0x00000002010b0fbb in QValueList<QString>::at ()
   from /usr/local/lib/libkdeui.so.6
#8  0x00000002010b0c93 in KLanguageButton::current ()
   from /usr/local/lib/libkdeui.so.6
#9  0x0000000204ee8f41 in KDMAppearanceWidget::save ()
   from /usr/local/lib/kde3/kcm_kdm.so
#10 0x0000000204ef9360 in KDModule::save ()
   from /usr/local/lib/kde3/kcm_kdm.so
#11 0x0000000200649994 in KCDialog::slotApply ()
   from /usr/local/lib/libkdeinit_kcmshell.so
#12 0x000000020100b154 in KDialogBase::qt_invoke ()
   from /usr/local/lib/libkdeui.so.6
#13 0x000000020064949f in KCDialog::qt_invoke ()
   from /usr/local/lib/libkdeinit_kcmshell.so
#14 0x00000002021c527c in QObject::activate_signal ()
   from /usr/X11R6/lib/libqt-mt.so.3
#15 0x00000002021c5116 in QObject::activate_signal ()
   from /usr/X11R6/lib/libqt-mt.so.3
#16 0x00000002024b9f17 in QButton::clicked ()
   from /usr/X11R6/lib/libqt-mt.so.3
#17 0x000000020224989a in QButton::mouseReleaseEvent ()
   from /usr/X11R6/lib/libqt-mt.so.3
#18 0x00000002021f83ee in QWidget::event () from /usr/X11R6/lib/libqt-mt.so.3
#19 0x000000020216d9a2 in QApplication::internalNotify ()
   from /usr/X11R6/lib/libqt-mt.so.3
#20 0x000000020216d0f4 in QApplication::notify ()
   from /usr/X11R6/lib/libqt-mt.so.3
#21 0x00000002015a2541 in KApplication::notify ()
   from /usr/local/lib/libkdecore.so.6
#22 0x000000020210a2ee in QETWidget::translateMouseEvent ()
   from /usr/X11R6/lib/libqt-mt.so.3
#23 0x00000002021081ed in QApplication::x11ProcessEvent ()
   from /usr/X11R6/lib/libqt-mt.so.3
#24 0x000000020211d1c9 in QEventLoop::processEvents ()
   from /usr/X11R6/lib/libqt-mt.so.3
#25 0x000000020217ecc9 in QEventLoop::enterLoop ()
   from /usr/X11R6/lib/libqt-mt.so.3
#26 0x000000020216db05 in QApplication::enter_loop ()
   from /usr/X11R6/lib/libqt-mt.so.3
#27 0x00000002023259c1 in QDialog::exec () from /usr/X11R6/lib/libqt-mt.so.3
#28 0x0000000200647ca9 in kdemain ()
   from /usr/local/lib/libkdeinit_kcmshell.so
#29 0x00000000004008d9 in main ()
Comment 3 Oswald Buddenhagen 2004-09-13 11:13:36 UTC
does this patch fix it?

RCS file: /home/kde/kdelibs/kdeui/klanguagebutton.cpp,v
--- klanguagebutton.cpp 18 Jan 2004 19:44:47 -0000      1.13
+++ klanguagebutton.cpp 13 Sep 2004 09:09:55 -0000      1.14
@@ -104,6 +104,7 @@ void KLanguageButton::setText(const QStr

 void KLanguageButton::init(const char * name)
 {
+  m_current = 0;
   m_ids = new QStringList;
   m_popup = 0;
   m_oldPopup = 0;
Comment 4 Axel Gonzalez 2004-09-14 07:45:35 UTC
that was it!

now it works normally after reinstall of kdelibs

Thanks for the fix ;)