Bug 220585 - [kfile] KWord crashes on Oking the file dialog for the second time.
Summary: [kfile] KWord crashes on Oking the file dialog for the second time.
Status: RESOLVED DUPLICATE of bug 209173
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.3.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 20:57 UTC by John Hudson
Modified: 2010-06-14 01:21 UTC (History)
2 users (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 John Hudson 2009-12-29 20:57:43 UTC
Version:           2.1.0 (using KDE 4.3.1)
OS:                Linux
Installed from:    openSUSE RPMs

Normally close (CTRL-W) closes the open file and shows the screen that enables me to open another file; but after the current file has been renamed with 'Save as,' the use of close crashes KWord.

Application: KWord (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#6  0xb63b3291 in QWidget::effectiveWinId() const () from /usr/lib/libQtGui.so.4
#7  0xb63f5b6a in ?? () from /usr/lib/libQtGui.so.4
#8  0xb63f5cf7 in qt_x11_enforce_cursor(QWidget*) () from /usr/lib/libQtGui.so.4
#9  0xb63f5d5e in QWidgetPrivate::setCursor_sys(QCursor const&) () from /usr/lib/libQtGui.so.4
#10 0xb63baf17 in QWidget::setCursor(QCursor const&) () from /usr/lib/libQtGui.so.4
#11 0xb67c2233 in QSplitterHandle::setOrientation(Qt::Orientation) () from /usr/lib/libQtGui.so.4
#12 0xb67c2324 in QSplitterHandle::QSplitterHandle(Qt::Orientation, QSplitter*) () from /usr/lib/libQtGui.so.4
#13 0xb67c23a9 in QSplitter::createHandle() () from /usr/lib/libQtGui.so.4
#14 0xb67c49f5 in ?? () from /usr/lib/libQtGui.so.4
#15 0xb67c8116 in ?? () from /usr/lib/libQtGui.so.4
#16 0xb67c82fd in QSplitter::childEvent(QChildEvent*) () from /usr/lib/libQtGui.so.4
#17 0xb77d04fb in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#18 0xb63bb230 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#19 0xb67c8044 in QSplitter::event(QEvent*) () from /usr/lib/libQtGui.so.4
#20 0xb63648fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#21 0xb636c29e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#22 0xb6da2ce1 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#23 0xb77c032e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#24 0xb63bf46d in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4
#25 0xb63bf933 in QWidgetPrivate::init(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4
#26 0xb63c6047 in QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4
#27 0xb42bcd55 in KoOpenPane::KoOpenPane(QWidget*, KComponentData const&, QStringList const&, QString const&) () from /usr/lib/libkomain.so.6
#28 0xb424714a in KoDocument::createOpenPane(QWidget*, KComponentData const&, QString const&) () from /usr/lib/libkomain.so.6
#29 0xb424793e in KoDocument::showStartUpWidget(KoMainWindow*, bool) () from /usr/lib/libkomain.so.6
#30 0xb219f806 in KWDocument::showStartUpWidget(KoMainWindow*, bool) () from /usr/lib/libkwordprivate.so.6
#31 0xb426f4c7 in KoMainWindow::chooseNewDocument(KoMainWindow::InitDocFlags) () from /usr/lib/libkomain.so.6
#32 0xb4277ab1 in KoMainWindow::slotFileClose() () from /usr/lib/libkomain.so.6
#33 0xb4276166 in KoMainWindow::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkomain.so.6
#34 0xb77d6864 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#35 0xb77d6d41 in QMetaObject::activate(QObject*, QMetaObject const*, int, int, void**) () from /usr/lib/libQtCore.so.4
#36 0xb635e0c5 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#37 0xb635f6f2 in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#38 0xb63623a0 in QAction::event(QEvent*) () from /usr/lib/libQtGui.so.4
#39 0xb6cb5f5f in KAction::event(QEvent*) () from /usr/lib/libkdeui.so.5
#40 0xb63648fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#41 0xb636c34e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#42 0xb6da2ce1 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#43 0xb77c032e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#44 0xb639eb95 in ?? () from /usr/lib/libQtGui.so.4
#45 0xb63a0b82 in ?? () from /usr/lib/libQtGui.so.4
#46 0xb636d5ef in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#47 0xb6da2ce1 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#48 0xb77c032e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#49 0xb636581d in ?? () from /usr/lib/libQtGui.so.4
#50 0xb6402a53 in ?? () from /usr/lib/libQtGui.so.4
#51 0xb6405092 in ?? () from /usr/lib/libQtGui.so.4
#52 0xb63db0ce in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#53 0xb6406b68 in ?? () from /usr/lib/libQtGui.so.4
#54 0xb5f3f4c2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#55 0xb5f42d98 in ?? () from /usr/lib/libglib-2.0.so.0
#56 0xb5f42ebe in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#57 0xb77ec011 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#58 0xb640629a in ?? () from /usr/lib/libQtGui.so.4
#59 0xb77be98d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#60 0xb77bedd9 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#61 0xb77c1270 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#62 0xb6364774 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#63 0xb5476005 in kdemain () from /usr/lib/libkdeinit4_kword.so
#64 0x0804e147 in _start ()
Comment 1 Thomas Zander 2010-02-01 20:12:39 UTC
Using valgrind I noticed the actual bug happens a bit before and then leaves stuff in a state that makes it crash later, as observed.

The valgrind I did showed a possible bug in kdelibs; here is the valgrind output;
==23119== Invalid read of size 8
==23119==    at 0x8579230: QWidgetPrivate::hideChildren(bool) (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x8579270: QWidgetPrivate::hideChildren(bool) (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x8579270: QWidgetPrivate::hideChildren(bool) (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x8579270: QWidgetPrivate::hideChildren(bool) (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x8579270: QWidgetPrivate::hideChildren(bool) (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x8579433: QWidgetPrivate::hide_helper() (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x8580D7F: QWidget::setVisible(bool) (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x89A776F: QDialog::setVisible(bool) (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x89A6873: QDialog::done(int) (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x7524CBB: KFileDialog::accept() (in /usr/lib/libkio.so.5.3.0)
==23119==    by 0x7523E70: KFileDialog::qt_metacall(QMetaObject::Call, int, void**) (in /usr/lib/libkio.so.5.3.0)
==23119==    by 0x50B7B04: KoFileDialog::qt_metacall(QMetaObject::Call, int, void**) (KoFileDialog.moc:61)
==23119==  Address 0x2d11c998 is 8 bytes inside a block of size 16 free'd
==23119==    at 0x4C24A7A: operator delete(void*) (vg_replace_malloc.c:346)
==23119==    by 0xAAEA22A: KFilePlacesView::Private::fadeCapacityBar(QModelIndex const&, KFilePlacesView::Private::FadeType) (in /usr/lib/libkfile.so.4.3.0)
==23119==    by 0xAAEA2FD: KFilePlacesView::Private::_k_placeLeft(QModelIndex const&) (in /usr/lib/libkfile.so.4.3.0)
==23119==    by 0xAAEAF7D: KFilePlacesView::qt_metacall(QMetaObject::Call, int, void**) (in /usr/lib/libkfile.so.4.3.0)
==23119==    by 0x99E1DDB: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/libQtCore.so.4.5.2)
==23119==    by 0xAAE7844: ??? (in /usr/lib/libkfile.so.4.3.0)
==23119==    by 0xAAEDBD8: ??? (in /usr/lib/libkfile.so.4.3.0)
==23119==    by 0x99CBF46: QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.5.2)
==23119==    by 0x852BECB: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x8533010: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.5.2)
==23119==    by 0x7A1BE55: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.3.0)
==23119==    by 0x99CCC2B: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.5.2)

The way to reproduce this quickly;
* start kword with empty doc.
* press save. Save with the name 'a.odt', press Ok.
* press save-as. Save with name 'b.odt', press Ok
On the pressing of "Ok" the above error occurs.
Comment 2 Dominik Haumann 2010-06-14 01:21:22 UTC

*** This bug has been marked as a duplicate of bug 209173 ***