Bug 118361

Summary: crash when scanning for new plugins, then changing plugin settings
Product: [Unmaintained] kcontrol Reporter: Dima Ryazanov <dima>
Component: kcmkonqhtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: john
Priority: NOR    
Version: 3.5   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dima Ryazanov 2005-12-15 03:26:06 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 4.0.2 (Gentoo 4.0.2-r2, pie-8.7.8) 
OS:                Linux

I go to plugin settings, click scan for new plugins, then change some setting, e.g. "Enable plugins globally", "CPU priority", etc.

When I click Ok or Apply, Konqueror crashes:


(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1212574032 (LWP 32007)]
[KCrash handler]
#4  0xb7729476 in DomainListView::save ()
   from /usr/kde/3.5/lib/kde3/kcm_konqhtml.so
#5  0xb77295f8 in KPluginOptions::save ()
   from /usr/kde/3.5/lib/kde3/kcm_konqhtml.so
#6  0x4d5b77a4 in KCModuleProxy::save () from /usr/kde/3.5/lib/libkutils.so.1
#7  0x4d5b7f2a in KCMultiDialog::apply () from /usr/kde/3.5/lib/libkutils.so.1
#8  0x4d5b819b in KCMultiDialog::slotApply ()
   from /usr/kde/3.5/lib/libkutils.so.1
#9  0x4dba3201 in KDialogBase::qt_invoke ()
   from /usr/kde/3.5/lib/libkdeui.so.4
#10 0x4d5b6e33 in KCMultiDialog::qt_invoke ()
   from /usr/kde/3.5/lib/libkutils.so.1
#11 0x4cec4bf0 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#12 0x4cec5088 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#13 0x4d1db5e8 in QButton::clicked () from /usr/qt/3/lib/libqt-mt.so.3
#14 0x4cf4d64b in QButton::mouseReleaseEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#15 0x4cefa26b in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3
#16 0x4ce6cb8b in QApplication::internalNotify ()
   from /usr/qt/3/lib/libqt-mt.so.3
#17 0x4ce6d647 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3
#18 0x4d817ac2 in KApplication::notify ()
   from /usr/kde/3.5/lib/libkdecore.so.4
#19 0x4ce0f9a7 in QETWidget::translateMouseEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#20 0x4ce0dfe8 in QApplication::x11ProcessEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#21 0x4ce212bf in QEventLoop::processEvents ()
   from /usr/qt/3/lib/libqt-mt.so.3
#22 0x4ce81b1c in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3
#23 0x4ce81a76 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
#24 0x4ce6c4d9 in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3
#25 0xb7f24aaf in kdemain () from /usr/kde/3.5/lib/libkdeinit_konqueror.so
#26 0x4c6adf1b in __libc_start_main () from /lib/libc.so.6
#27 0x080486a1 in ?? ()
Comment 1 Tommi Tervo 2005-12-15 09:23:06 UTC
Cannot reproduce
Comment 2 Dima Ryazanov 2005-12-15 09:48:07 UTC
Ok, I think I've figured out what's needed to reproduce it.

In Plugins settings, go to "Domain-Specific Settings", and add an entry e.g. "slashdot.org", "Reject".

Then, scan for plugins, change some setting, and apply it.
It should crash now.

(I can reproduce it starting with no .kde directory.)
Comment 3 Tommi Tervo 2005-12-15 10:08:45 UTC
#4  0xb5bb1558 in DomainListView::save (this=0x84d4c48, group=@0x815bdf0, 
    domainListKey=@0xbfe7fc78) at domainlistview.cpp:218
#5  0xb5bb1684 in KPluginOptions::save (this=0x815bd70) at pluginopts.cpp:239
#6  0xb66167e9 in KCModuleProxy::save (this=0x880d508) at kcmoduleproxy.cpp:533
#7  0xb661d688 in KCMultiDialog::apply (this=0x847ccd0)
    at kcmultidialog.cpp:146
#8  0xb661daf3 in KCMultiDialog::slotApply (this=0x847ccd0)
    at kcmultidialog.cpp:168
#9  0xb7a873de in KDialogBase::qt_invoke (this=0x847ccd0, _id=74, 
    _o=0xbfe7fe9c) at kdialogbase.moc:360
#10 0xb661d27d in KCMultiDialog::qt_invoke (this=0x847ccd0, _id=74, 
    _o=0xbfe7fe9c) at kcmultidialog.moc:148
#11 0xb704ed9b in QObject::activate_signal_bool ()
   from /usr/share/qt3/lib/libqt-mt.so.3
Comment 4 Martin Koller 2006-12-28 13:43:40 UTC
SVN commit 617216 by mkoller:

BUG: 118361

delete items pointing to invalid data


 M  +1 -0      domainlistview.cpp  


--- branches/KDE/3.5/kdebase/kcontrol/konqhtml/domainlistview.cpp #617215:617216
@@ -186,6 +186,7 @@
 void DomainListView::initialize(const QStringList &domainList)
 {
     domainSpecificLV->clear();
+    domainPolicies.clear();
 //    JavaPolicies pol(m_pConfig,m_groupname,false);
     for (QStringList::ConstIterator it = domainList.begin();
          it != domainList.end(); ++it) {
Comment 5 Dario Andres 2009-10-02 03:11:23 UTC
*** Bug 140168 has been marked as a duplicate of this bug. ***