Bug 101261 - ksim crashes from time to time
Summary: ksim crashes from time to time
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksim
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Reuben Sutton
URL:
Keywords:
: 122229 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-10 20:02 UTC by Tobias Powalowski
Modified: 2010-02-20 19:10 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 Tobias Powalowski 2005-03-10 20:02:28 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Compiled From Sources
Compiler:          gcc 3.4.3 
OS:                Linux

hi add ksim and remove it or change preferences and you will get this from time to time:
(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 -1239431456 (LWP 2084)]
(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)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#7  0xb5ac191a in KSim::PluginView::config ()
   from /opt/kde/lib/libksimcore.so.1
#8  0xb5b07157 in KSim::MainView::qt_invoke ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#9  0xb70a07e4 in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#10 0xb5af442a in KSim::ConfigDialog::reparse ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#11 0xb5b01b46 in KSim::ConfigDialog::saveConfig ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#12 0xb5b01c06 in KSim::ConfigDialog::savePrefs ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#13 0xb5b09105 in KSim::ConfigDialog::qt_invoke ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#14 0xb70a07e4 in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#15 0xb70a0f7c in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#16 0xb797aaac in KDialogBase::applyClicked () from /opt/kde/lib/libkdeui.so.4
#17 0xb797aadd in KDialogBase::slotApply () from /opt/kde/lib/libkdeui.so.4
#18 0xb79df1f6 in KDialogBase::qt_invoke () from /opt/kde/lib/libkdeui.so.4
#19 0xb5b09065 in KSim::ConfigDialog::qt_invoke ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#20 0xb70a076a in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#21 0xb70a0f7c in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#22 0xb73fd47c in QButton::clicked () from /opt/qt/lib/libqt-mt.so.3
#23 0xb7138411 in QButton::mouseReleaseEvent () from /opt/qt/lib/libqt-mt.so.3
#24 0xb70da4d4 in QWidget::event () from /opt/qt/lib/libqt-mt.so.3
#25 0xb703cd8f in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#26 0xb703d14a in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#27 0xb77632c5 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#28 0xb6fd6306 in QETWidget::translateMouseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#29 0xb6fd456e in QApplication::x11ProcessEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#30 0xb6fe81e5 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#31 0xb7053461 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#32 0xb703bf2f in QApplication::enter_loop () from /opt/qt/lib/libqt-mt.so.3
#33 0xb7235dc2 in QDialog::exec () from /opt/qt/lib/libqt-mt.so.3
#34 0xb5b0708c in KSim::MainView::preferences ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#35 0xb5b07253 in KSim::PanelExtension::preferences ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#36 0xb79a9f4b in KPanelExtension::action () from /opt/kde/lib/libkdeui.so.4
#37 0xb7f7a7b9 in ExtensionContainer::preferences ()
   from /opt/kde/lib/libkdeinit_kicker.so
#38 0xb7f7a725 in ExtensionContainer::showPanelMenu ()
   from /opt/kde/lib/libkdeinit_kicker.so
#39 0xb7f9978d in ExtensionContainer::eventFilter ()
   from /opt/kde/lib/libkdeinit_kicker.so
#40 0xb709dbef in QObject::activate_filters () from /opt/qt/lib/libqt-mt.so.3
#41 0xb709dcc4 in QObject::event () from /opt/qt/lib/libqt-mt.so.3
#42 0xb70d9f4f in QWidget::event () from /opt/qt/lib/libqt-mt.so.3
#43 0xb703cd8f in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#44 0xb703d14a in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#45 0xb77632c5 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#46 0xb6fd6306 in QETWidget::translateMouseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#47 0xb6fd456e in QApplication::x11ProcessEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#48 0xb6fe81e5 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#49 0xb7053461 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#50 0xb70533b6 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#51 0xb703beff in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#52 0xb7f8f091 in kdemain () from /opt/kde/lib/libkdeinit_kicker.so
#53 0x080486ee in ?? ()
#54 0x00000001 in ?? ()
#55 0xbffff744 in ?? ()
#56 0x080497e8 in ?? ()
#57 0xb6a5bff8 in __elf_set___libc_thread_subfreeres_element___rpc_thread_destroy__ () from /lib/tls/libc.so.6
#58 0x00000000 in ?? ()
#59 0xb8000440 in __stack_prot () from /lib/ld-linux.so.2
#60 0xbffff718 in ?? ()
#61 0xb695b19d in __libc_start_main () from /lib/tls/libc.so.6
#62 0xb695b19d in __libc_start_main () from /lib/tls/libc.so.6
#63 0x08048631 in ?? ()
Comment 1 Tobias Powalowski 2005-03-10 20:03:47 UTC
and an other backtrace from one of our forum members:
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(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 -1230407232 (LWP 5307)]
(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)
(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)
[KCrash handler]
#7  0xb66180c6 in KSim::PanelExtension::resizeEvent ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#8  0xb7283211 in QWidget::event () from /opt/qt/lib/libqt-mt.so.3
#9  0xb71e5d8f in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#10 0xb71e5f82 in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#11 0xb79082c5 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#12 0xb71e6da0 in QApplication::sendPostedEvents ()
   from /opt/qt/lib/libqt-mt.so.3
#13 0xb71e6e34 in QApplication::sendPostedEvents ()
   from /opt/qt/lib/libqt-mt.so.3
#14 0xb7191166 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#15 0xb71fc461 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#16 0xb71e4f2f in QApplication::enter_loop () from /opt/qt/lib/libqt-mt.so.3
#17 0xb73dedc2 in QDialog::exec () from /opt/qt/lib/libqt-mt.so.3
#18 0xb7c09dc4 in KMessageBox::createKMessageBox ()
   from /opt/kde/lib/libkdeui.so.4
#19 0xb7c0aa20 in KMessageBox::createKMessageBox ()
   from /opt/kde/lib/libkdeui.so.4
#20 0xb7c0c3fb in KMessageBox::errorListWId () from /opt/kde/lib/libkdeui.so.4
#21 0xb7c0c5a9 in KMessageBox::error () from /opt/kde/lib/libkdeui.so.4
#22 0xb65fee2e in KSim::PluginLoader::loadPlugin ()
   from /opt/kde/lib/libksimcore.so.1
#23 0xb66195c7 in KSim::MainView::addPlugin ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#24 0xb6626d8a in KSim::MainView::addPlugins ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#25 0xb6627641 in KSim::MainView::MainView ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#26 0xb6627772 in KSim::PanelExtension::PanelExtension ()
   from /opt/kde/lib/kde3/ksim_panelextension.so
#27 0xb6627984 in init () from /opt/kde/lib/kde3/ksim_panelextension.so
#28 0xb6792647 in PluginManager::loadExtension ()
   from /opt/kde/lib/libkdeinit_kicker.so
#29 0xb679f362 in ExtensionContainer::ExtensionContainer ()
   from /opt/kde/lib/libkdeinit_kicker.so
#30 0xb679f4a0 in PluginManager::createExtensionContainer ()
   from /opt/kde/lib/libkdeinit_kicker.so
#31 0xb67a34ff in ExtensionManager::addExtension ()
   from /opt/kde/lib/libkdeinit_kicker.so
#32 0xb67d3b99 in PanelAddExtensionMenu::slotExec ()
   from /opt/kde/lib/libkdeinit_kicker.so
#33 0xb67c0259 in PanelAddExtensionMenu::qt_invoke ()
   from /opt/kde/lib/libkdeinit_kicker.so
#34 0xb724976a in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#35 0xb7249e0b in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#36 0xb75b5210 in QPopupMenu::activated () from /opt/qt/lib/libqt-mt.so.3
#37 0xb7358d98 in QPopupMenu::actSig () from /opt/qt/lib/libqt-mt.so.3
#38 0xb73593c8 in QPopupMenu::mouseReleaseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#39 0xb72834d4 in QWidget::event () from /opt/qt/lib/libqt-mt.so.3
#40 0xb71e5d8f in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#41 0xb71e614a in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#42 0xb79082c5 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#43 0xb717f565 in QETWidget::translateMouseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#44 0xb717d56e in QApplication::x11ProcessEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#45 0xb71911e5 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#46 0xb71fc461 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#47 0xb71e4f2f in QApplication::enter_loop () from /opt/qt/lib/libqt-mt.so.3
#48 0xb735d03f in QPopupMenu::exec () from /opt/qt/lib/libqt-mt.so.3
#49 0xb6782db5 in ButtonContainer::eventFilter ()
   from /opt/kde/lib/libkdeinit_kicker.so
#50 0xb7246bef in QObject::activate_filters () from /opt/qt/lib/libqt-mt.so.3
#51 0xb7246cc4 in QObject::event () from /opt/qt/lib/libqt-mt.so.3
#52 0xb7282f4f in QWidget::event () from /opt/qt/lib/libqt-mt.so.3
#53 0xb71e5d8f in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#54 0xb71e614a in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#55 0xb79082c5 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#56 0xb717f306 in QETWidget::translateMouseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#57 0xb717d56e in QApplication::x11ProcessEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#58 0xb71911e5 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#59 0xb71fc461 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#60 0xb71fc3b6 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#61 0xb71e4eff in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#62 0xb679b091 in kdemain () from /opt/kde/lib/libkdeinit_kicker.so
#63 0x0804dd11 in ?? ()
#64 0x00000001 in ?? ()
#65 0x080c96e0 in ?? ()
#66 0x00000001 in ?? ()
#67 0x00000000 in ?? ()
#68 0x00000000 in ?? ()
#69 0x00000000 in ?? ()
#70 0x00000000 in ?? ()
#71 0xb795b5b1 in mALLOc () from /opt/kde/lib/libkdecore.so.4
#72 0x0804e42b in ?? ()
#73 0x00000000 in ?? ()
#74 0x00000000 in ?? ()
#75 0x080ca377 in ?? ()
#76 0x00000000 in ?? ()
#77 0x00000000 in ?? ()
#78 0x00000000 in ?? ()
#79 0x08050562 in _IO_stdin_used ()
#80 0x00000000 in ?? ()
#81 0x00000000 in ?? ()
#82 0x00000000 in ?? ()
#83 0x00000000 in ?? ()
#84 0x00000000 in ?? ()
#85 0x08050562 in _IO_stdin_used ()
#86 0x00000000 in ?? ()
#87 0x00000000 in ?? ()
#88 0x080ca377 in ?? ()
#89 0x00000000 in ?? ()
#90 0x00000000 in ?? ()
#91 0x080ca373 in ?? ()
#92 0x080ca36c in ?? ()
#93 0x00000001 in ?? ()
#94 0x080ca368 in ?? ()
#95 0x00000008 in ?? ()
#96 0x00000000 in ?? ()
#97 0x00000000 in ?? ()
#98 0x00000000 in ?? ()
#99 0x0000000c in ?? ()
#100 0x00000013 in ?? ()
#101 0x080514c0 in vtable for QCString ()
#102 0x0805a4a0 in ?? ()
#103 0x00000000 in ?? ()
#104 0x00000000 in ?? ()
#105 0x080514c0 in vtable for QCString ()
#106 0x0805a490 in ?? ()
#107 0x80cd0000 in ?? ()
#108 0x00000001 in ?? ()
#109 0xbfffd828 in ?? ()
#110 0xbfffd710 in ?? ()
#111 0xbfffd790 in ?? ()
#112 0x00000000 in ?? ()
#113 0x0000000a in ?? ()
#114 0x00000001 in ?? ()
#115 0xbfffd828 in ?? ()
#116 0x0804e946 in ?? ()
#117 0x0000000a in ?? ()
#118 0xbfffd790 in ?? ()
#119 0xbfffd710 in ?? ()
#120 0xbfffd690 in ?? ()
#121 0x00000000 in ?? ()
#122 0x00000010 in ?? ()
#123 0xb79b7420 in spinlock () from /opt/kde/lib/libkdecore.so.4
#124 0xb795c653 in free () from /opt/kde/lib/libkdecore.so.4
Comment 2 Tobias Powalowski 2005-03-10 20:10:05 UTC
for reproduction:
delete ksim config files in your home.
then add ksim and then choose add lm_sensors then it crashes.
if you relaunch ksim all is fine, really strange.
Comment 3 Jan De Luyck 2005-03-13 15:58:30 UTC
I've noticed ksim tends to crash semi-regularly too, taking along kicker with it.

Highly annoying.
Comment 4 Helge Deller 2005-06-26 22:57:45 UTC
SVN commit 429181 by deller:

fix the crash which takes down ksim and kicker, but there is still a bug
left: After pressing OK, not all views are correctly updated.
Anyway, better than crashing,,,,
BUG:102115
BUG:101261 


 M  +2 -1      ksimview.cpp  
 M  +6 -2      library/pluginmodule.cpp  


--- trunk/KDE/kdeutils/ksim/ksimview.cpp #429180:429181
@@ -272,7 +272,8 @@
   for (plugin = pluginList.begin(); plugin != pluginList.end(); ++plugin) {
     if ((*plugin).configPage()) {
       (*plugin).configPage()->saveConfig();
-      (*plugin).configPage()->config()->sync();
+      KConfig *conf = (*plugin).configPage()->config();
+      if (conf) conf->sync();
     }
 
     if (!(*plugin).isDifferent() && (*plugin).isEnabled()) {
--- trunk/KDE/kdeutils/ksim/library/pluginmodule.cpp #429180:429181
@@ -102,7 +102,10 @@
 
 KConfig *KSim::PluginPage::config() const
 {
-  return d->config;
+  if (d)
+    return d->config;
+  else
+    return 0;
 }
 
 class KSim::PluginView::Private
@@ -133,9 +136,10 @@
 
 KSim::PluginView::~PluginView()
 {
+  delete d->popupMenu;
   delete d->config;
-  delete d->popupMenu;
   delete d;
+  d = 0;
 }
 
 KConfig *KSim::PluginView::config() const
Comment 5 Tobias Powalowski 2005-09-19 17:24:54 UTC
it still crashes on a gcc 4.0.1 built with pre traballs from 3.4.91.
greetings
from archlinux maintainer
Comment 6 Per Winkvist 2005-10-01 18:06:28 UTC
I always get this crash too if I start ksim.
Then right click to open ksim's pref dialog
Save pref's
Remove KSim
Add ksim again
Then right click and open pref dialog again
Now hit save to cause the crash.
100% reproducable.

Somehow the config() call and its d->config is screwed up despite check for d.
-------------------------------------------------------------------
NOTE THE LINE NUMBERS MIGHT DIFFER A LITTLE BITH DUE TO LOCAL MOD'S
-------------------------------------------------------------------
==11734== Invalid read of size 4
==11734==    at 0x1DE8B132: KSim::PluginView::config() const (pluginmodule.cpp:145)
==11734==    by 0x1DE46E27: KSim::MainView::reparseConfig(bool, KSim::ChangedPluginList const&) (ksimview.cpp:296)
==11734==    by 0x1DE478D5: KSim::MainView::qt_invoke(int, QUObject*) (ksimview.moc:132)
==11734==    by 0x1C6213A3: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1DE4A789: KSim::ConfigDialog::reparse(bool, KSim::ChangedPluginList const&) (ksimpref.moc:133)
==11734==    by 0x1DE4B256: KSim::ConfigDialog::saveConfig(bool) (ksimpref.cpp:200)
==11734==    by 0x1DE4B2A6: KSim::ConfigDialog::closePrefs() (ksimpref.cpp:225)
==11734==    by 0x1DE4EE06: KSim::ConfigDialog::qt_invoke(int, QUObject*) (ksimpref.moc:146)
==11734==    by 0x1C6213A3: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1C621863: QObject::activate_signal(int) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1BF8914F: KDialogBase::okClicked() (kdialogbase.moc:263)
==11734==    by 0x1BF89174: KDialogBase::slotOk() (kdialogbase.cpp:1166)
==11734==  Address 0x1D104C1C is 0 bytes after a block of size 12 free'd
==11734==    at 0x1B9055C3: operator delete(void*) (vg_replace_malloc.c:246)
==11734==    by 0x1E07F3C4: DiskView::updateData(QValueList<DiskView::DiskData>&) (qvaluelist.h:235)
==11734==    by 0x1E07FA53: DiskView::updateDisplay() (ksimdisk.cpp:183)
==11734==    by 0x1E0802D9: DiskView::qt_invoke(int, QUObject*) (ksimdisk.moc:82)
==11734==    by 0x1C6213A3: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1C621863: QObject::activate_signal(int) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1C99CB0A: QTimer::timeout() (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1C647017: QTimer::event(QEvent*) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1C5BC00C: QApplication::internalNotify(QObject*, QEvent*) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1C5BC98B: QApplication::notify(QObject*, QEvent*) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1C137A78: KApplication::notify(QObject*, QEvent*) (kapplication.cpp:550)
==11734==    by 0x1C5B08D1: QEventLoop::activateTimers() (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==
==11734== Invalid read of size 4
==11734==    at 0x1DE8B135: KSim::PluginView::config() const (pluginmodule.cpp:145)
==11734==    by 0x1DE46E27: KSim::MainView::reparseConfig(bool, KSim::ChangedPluginList const&) (ksimview.cpp:296)
==11734==    by 0x1DE478D5: KSim::MainView::qt_invoke(int, QUObject*) (ksimview.moc:132)
==11734==    by 0x1C6213A3: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1DE4A789: KSim::ConfigDialog::reparse(bool, KSim::ChangedPluginList const&) (ksimpref.moc:133)
==11734==    by 0x1DE4B256: KSim::ConfigDialog::saveConfig(bool) (ksimpref.cpp:200)
==11734==    by 0x1DE4B2A6: KSim::ConfigDialog::closePrefs() (ksimpref.cpp:225)
==11734==    by 0x1DE4EE06: KSim::ConfigDialog::qt_invoke(int, QUObject*) (ksimpref.moc:146)
==11734==    by 0x1C6213A3: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1C621863: QObject::activate_signal(int) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1BF8914F: KDialogBase::okClicked() (kdialogbase.moc:263)
==11734==    by 0x1BF89174: KDialogBase::slotOk() (kdialogbase.cpp:1166)
==11734==  Address 0x612F657A is not stack'd, malloc'd or (recently) free'd
==11734==
==11734== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==11734==  Bad permissions for mapped region at address 0x612F657A
==11734==    at 0x1DE8B135: KSim::PluginView::config() const (pluginmodule.cpp:145)
==11734==    by 0x1DE46E27: KSim::MainView::reparseConfig(bool, KSim::ChangedPluginList const&) (ksimview.cpp:296)
==11734==    by 0x1DE478D5: KSim::MainView::qt_invoke(int, QUObject*) (ksimview.moc:132)
==11734==    by 0x1C6213A3: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1DE4A789: KSim::ConfigDialog::reparse(bool, KSim::ChangedPluginList const&) (ksimpref.moc:133)
==11734==    by 0x1DE4B256: KSim::ConfigDialog::saveConfig(bool) (ksimpref.cpp:200)
==11734==    by 0x1DE4B2A6: KSim::ConfigDialog::closePrefs() (ksimpref.cpp:225)
==11734==    by 0x1DE4EE06: KSim::ConfigDialog::qt_invoke(int, QUObject*) (ksimpref.moc:146)
==11734==    by 0x1C6213A3: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1C621863: QObject::activate_signal(int) (in /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.5)
==11734==    by 0x1BF8914F: KDialogBase::okClicked() (kdialogbase.moc:263)
==11734==    by 0x1BF89174: KDialogBase::slotOk() (kdialogbase.cpp:1166)
==11734==
==11734== ERROR SUMMARY: 481 errors from 62 contexts (suppressed: 154 from 3)
==11734== malloc/free: in use at exit: 3126796 bytes in 116480 blocks.
==11734== malloc/free: 1194523 allocs, 1078043 frees, 51910545 bytes allocated.
==11734== For counts of detected errors, rerun with: -v
==11734== searching for pointers to 116480 not-freed blocks.
==11734== checked 4629580 bytes.

-------------------------------------------------------------------
Comment 7 Per Winkvist 2005-10-01 22:28:20 UTC
This patch fixes this crash for me. When we remove the applet we never call cleanup() to remove the KLibloader libraries. But when I use this patch I get "The KLibLoader contains the library ksim_panelextension" so perhaps something else needs to be done?

Index: ksimview.cpp
===================================================================
--- ksimview.cpp        (revision 465767)
+++ ksimview.cpp        (arbetskopia)
@@ -155,6 +155,8 @@

 KSim::MainView::~MainView()
 {
+  cleanup();
+
   delete m_config;
 }

Comment 8 Dario Andres 2009-07-16 22:16:33 UTC
*** Bug 122229 has been marked as a duplicate of this bug. ***
Comment 9 Dario Andres 2010-02-20 19:10:48 UTC
Closing as KSIM is unmaintained and its main developer is not reachable.
Regards