Bug 60612 - Crash in KIconLoader
Summary: Crash in KIconLoader
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-02 07:16 UTC by aragorn
Modified: 2008-06-03 12:47 UTC (History)
0 users

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 aragorn 2003-07-02 07:16:40 UTC
Version:           1.2.91 (using KDE 3.1.9)
Compiler:          gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
OS:          Linux (i686) release 2.4.20

Kword crashes when reopening a file with an inline formula (maybe an inline frame in general) maybe the problem is related to bugs 60302, 60337 (basically the same bug) heres a backtrace:

[New Thread 16384 (LWP 28889)]
0x412480c7 in waitpid () from /lib/libpthread.so.0
#0  0x412480c7 in waitpid () from /lib/libpthread.so.0
#1  0x40889e93 in KCrash::defaultCrashHandler(int) ()
   from /usr/local/kde/lib/libkdecore.so.4
#2  0x41246d0d in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x4086c988 in KIconLoader::loadIconSet(QString const&, KIcon::Group, int, bool) () from /usr/local/kde/lib/libkdecore.so.4
#5  0x4086c96f in KIconLoader::loadIconSet(QString const&, KIcon::Group, int)
    () from /usr/local/kde/lib/libkdecore.so.4
#6  0x40702f6a in KGuiItem::iconSet(KIcon::Group, int, KInstance*) const ()
   from /usr/local/kde/lib/libkdeui.so.4
#7  0x4061957f in KAction::plug(QWidget*, int) ()
   from /usr/local/kde/lib/libkdeui.so.4
#8  0x406c89c9 in KXMLGUI::ActionList::plug(QWidget*, int) const ()
   from /usr/local/kde/lib/libkdeui.so.4
#9  0x406c942a in KXMLGUI::ContainerNode::plugActionList(KXMLGUI::BuildState&, QValueListIterator<KXMLGUI::MergingIndex> const&) ()
   from /usr/local/kde/lib/libkdeui.so.4
#10 0x406c91ef in KXMLGUI::ContainerNode::plugActionList(KXMLGUI::BuildState&)
    () from /usr/local/kde/lib/libkdeui.so.4
#11 0x406c9236 in KXMLGUI::ContainerNode::plugActionList(KXMLGUI::BuildState&)
    () from /usr/local/kde/lib/libkdeui.so.4
#12 0x406c9236 in KXMLGUI::ContainerNode::plugActionList(KXMLGUI::BuildState&)
    () from /usr/local/kde/lib/libkdeui.so.4
#13 0x406c6e0a in KXMLGUIFactory::plugActionList(KXMLGUIClient*, QString const&, QPtrList<KAction> const&) () from /usr/local/kde/lib/libkdeui.so.4
#14 0x400709c6 in KoMainWindow::slotActivePartChanged(KParts::Part*) ()
   from /usr/local/kde/lib/libkofficecore.so.2
#15 0x400720b8 in KoMainWindow::qt_invoke(int, QUObject*) ()
   from /usr/local/kde/lib/libkofficecore.so.2
#16 0x40c05532 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#17 0x401a6de6 in KParts::PartManager::activePartChanged(KParts::Part*) ()
   from /usr/local/kde/lib/libkparts.so.2
#18 0x401a64ed in KParts::PartManager::setActivePart(KParts::Part*, QWidget*)
    () from /usr/local/kde/lib/libkparts.so.2
#19 0x4006b5f5 in KoMainWindow::setRootDocument(KoDocument*) ()
   from /usr/local/kde/lib/libkofficecore.so.2
#20 0x4006c3eb in KoMainWindow::slotLoadCompleted() ()
   from /usr/local/kde/lib/libkofficecore.so.2
#21 0x400720db in KoMainWindow::qt_invoke(int, QUObject*) ()
   from /usr/local/kde/lib/libkofficecore.so.2
#22 0x40c05532 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#23 0x40c05390 in QObject::activate_signal(int) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#24 0x401a0e3a in KParts::ReadOnlyPart::completed() ()
   from /usr/local/kde/lib/libkparts.so.2
#25 0x4019f68d in KParts::ReadOnlyPart::openURL(KURL const&) ()
   from /usr/local/kde/lib/libkparts.so.2
#26 0x40058c4a in KoDocument::openURL(KURL const&) ()
   from /usr/local/kde/lib/libkofficecore.so.2
#27 0x4006c2e1 in KoMainWindow::openDocumentInternal(KURL const&, KoDocument*)
    () from /usr/local/kde/lib/libkofficecore.so.2
#28 0x4006ea08 in KoMainWindow::slotFileOpen() ()
   from /usr/local/kde/lib/libkofficecore.so.2
#29 0x40071f3c in KoMainWindow::qt_invoke(int, QUObject*) ()
   from /usr/local/kde/lib/libkofficecore.so.2
#30 0x40c05532 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#31 0x40c05390 in QObject::activate_signal(int) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#32 0x4061bd88 in KAction::activated() () from /usr/local/kde/lib/libkdeui.so.4
#33 0x4061b813 in KAction::slotActivated() ()
   from /usr/local/kde/lib/libkdeui.so.4
#34 0x4061bf28 in KAction::qt_invoke(int, QUObject*) ()
   from /usr/local/kde/lib/libkdeui.so.4
#35 0x40c054ae in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#36 0x40c05390 in QObject::activate_signal(int) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#37 0x40ec3f20 in QButton::clicked() ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#38 0x40c82d40 in QButton::mouseReleaseEvent(QMouseEvent*) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#39 0x40c3301b in QWidget::event(QEvent*) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#40 0x40bb496d in QApplication::internalNotify(QObject*, QEvent*) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#41 0x40bb4185 in QApplication::notify(QObject*, QEvent*) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#42 0x4080d178 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/local/kde/lib/libkdecore.so.4
#43 0x40b59d7b in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#44 0x40b57825 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#45 0x40b6b786 in QEventLoop::processEvents(unsigned) ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#46 0x40bc5443 in QEventLoop::enterLoop() ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#47 0x40bc5300 in QEventLoop::exec() ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#48 0x40bb4b88 in QApplication::exec() ()
   from /incomingStuff/kde/qt-copy/lib/libqt-mt.so.3
#49 0x40018156 in main () from /usr/local/kde/lib/kword.so
#50 0x41387917 in __libc_start_main () from /lib/libc.so.6


	Thanks for reading...

	Cheers...
Comment 1 David Faure 2003-07-02 13:10:32 UTC
Subject: Re:  New: Crash when opening a file with an inline frame (related to Bugs  ?? 60337, 60302)

On Wednesday 02 July 2003 07:16, you wrote:
> #4  0x4086c988 in KIconLoader::loadIconSet(QString const&, KIcon::Group, int, bool) () from /usr/local/kde/lib/libkdecore.so.4

No this looks very different from the other bugs - it's a
crash in the icon loader (!!!)

Any chance you could recompile kdelibs/kdecore with -g and without -O2?
(use ./configure --enable-debug or kdesdk/scripts/adddebug, or edit the Makefile
by hand ;)

Which Qt version do you use BTW?

Comment 2 rcm 2003-07-03 03:12:25 UTC
Subject: Re:  Crash when opening a file with an inline frame (related to Bugs  ?? 60337, 60302)

On Wednesday 02 July 2003 06:10 am, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=60612
>
>
>
>
> ------- Additional Comments From faure@kde.org  2003-07-02 13:10 -------
> Subject: Re:  New: Crash when opening a file with an inline frame (related
> to Bugs  ?? 60337, 60302)
>
> On Wednesday 02 July 2003 07:16, you wrote:
> > #4  0x4086c988 in KIconLoader::loadIconSet(QString const&, KIcon::Group,
> > int, bool) () from /usr/local/kde/lib/libkdecore.so.4
>
> No this looks very different from the other bugs - it's a
> crash in the icon loader (!!!)
>
> Any chance you could recompile kdelibs/kdecore with -g and without -O2?
> (use ./configure --enable-debug or kdesdk/scripts/adddebug, or edit the
> Makefile by hand ;)
>

	If i got the time ill do...:)



> Which Qt version do you use BTW?

	the almost latest cvs qt-copy....3.2.0b2

	Cheers...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/A4K0Yvr0lZtJgQsRAoBZAJ9u7XNvTcGIk0+bSOcrePm7GemYfwCeP+eQ
kSPaLXhclzirsVmbBC6Se9M=
=R4H1
-----END PGP SIGNATURE-----

Comment 3 Waldo Bastian 2003-11-24 13:11:39 UTC
crashes like this can happen when something is referring to a stale KInstance.

That should now be caught by one of the asserts in KInstance.
Comment 4 David Faure 2008-06-03 12:47:15 UTC
Hopefully gone in kde4. The code can now catch the use of deleted instances, and this hasn't shown up for a long time now.