Bug 353105 - Closing Calligra causes crash, when two document windows are opened
Summary: Closing Calligra causes crash, when two document windows are opened
Status: RESOLVED DUPLICATE of bug 336145
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: 2.9.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-09-23 19:19 UTC by Hannu Lehtimäki
Modified: 2015-09-23 20:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.93 KB, text/plain)
2015-09-23 19:24 UTC, Hannu Lehtimäki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hannu Lehtimäki 2015-09-23 19:19:50 UTC
Application: calligrawords (2.9.2)
KDE Platform Version: 4.14.6
Qt Version: 4.8.6
Operating System: Linux 3.19.0-28-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
Steps to reproduce the defect (not always reproducible):
open two instances of calligra word documents.
type some text to first instance window.
Open second instance.
Type some text to secons instance window.
change  focus to first instance. 
Close it with window close button (press upper right corner cross at window decorations in kde plasma window manager).

The crash can be reproduced every time.

-- Backtrace:
Application: Calligra Words (calligrawords), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4332e347c0 (LWP 11466))]

Thread 2 (Thread 0x7f430c77c700 (LWP 11469)):
#0  0x00007f432d769789 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f432d723df0 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f432d724d75 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f432d724fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4330e9087e in QEventDispatcherGlib::processEvents (this=0x7f43040008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#5  0x00007f4330e5fd21 in QEventLoop::processEvents (this=this@entry=0x7f430c77bdc0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f4330e60085 in QEventLoop::exec (this=this@entry=0x7f430c77bdc0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f4330d53e89 in QThread::exec (this=this@entry=0x1a2a8c0) at thread/qthread.cpp:538
#8  0x00007f4330e40493 in QInotifyFileSystemWatcherEngine::run (this=0x1a2a8c0) at io/qfilesystemwatcher_inotify.cpp:265
#9  0x00007f4330d566ff in QThreadPrivate::start (arg=0x1a2a8c0) at thread/qthread_unix.cpp:349
#10 0x00007f432dc0a6aa in start_thread (arg=0x7f430c77c700) at pthread_create.c:333
#11 0x00007f43327a8eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f4332e347c0 (LWP 11466)):
[KCrash Handler]
#6  QString (other=..., this=0x1ae6d60) at /usr/include/qt4/QtCore/qstring.h:725
#7  node_create (this=0x1fc1a10, avalue=@0x159: <error reading variable>, akey=..., aupdate=0x7fff7329f6c0, adt=0x1efc5b0) at /usr/include/qt4/QtCore/qmap.h:456
#8  QMap<QString, QAction*>::detach_helper (this=this@entry=0x1fc1a10) at /usr/include/qt4/QtCore/qmap.h:764
#9  0x00007f432e63ae3c in detach (this=0x1fc1a10) at /usr/include/qt4/QtCore/qmap.h:205
#10 insert (avalue=@0x7fff7329f788: 0x2187000, akey=..., this=0x1fc1a10) at /usr/include/qt4/QtCore/qmap.h:562
#11 KActionCollection::addAction (this=this@entry=0x1f9cbf0, name=..., action=action@entry=0x2187000) at ../../kdeui/actions/kactioncollection.cpp:292
#12 0x00007f432e63b9a9 in KActionCollection::addAction (this=this@entry=0x1f9cbf0, name=..., action=action@entry=0x2187000) at ../../kdeui/actions/kactioncollection.cpp:211
#13 0x00007f432fc131df in deactivateToolActions (this=0x2315f10) at /build/buildd/calligra-2.9.2/libs/flake/KoToolManager.cpp:144
#14 KoToolManager::Private::disconnectActiveTool (this=this@entry=0x21060c0) at /build/buildd/calligra-2.9.2/libs/flake/KoToolManager.cpp:256
#15 0x00007f432fc155e3 in KoToolManager::Private::switchCanvasData (this=this@entry=0x21060c0, cd=0x2fc91b0) at /build/buildd/calligra-2.9.2/libs/flake/KoToolManager.cpp:414
#16 0x00007f432fc15cd7 in KoToolManager::Private::detachCanvas (this=0x21060c0, controller=controller@entry=0x2116268) at /build/buildd/calligra-2.9.2/libs/flake/KoToolManager.cpp:470
#17 0x00007f432fc15e32 in KoToolManager::removeCanvasController (this=<optimized out>, controller=controller@entry=0x2116268) at /build/buildd/calligra-2.9.2/libs/flake/KoToolManager.cpp:824
#18 0x00007f431da55d55 in KWGui::~KWGui (this=0x20f3b00, __in_chrg=<optimized out>) at /build/buildd/calligra-2.9.2/words/part/KWGui.cpp:117
#19 0x00007f431da55d89 in KWGui::~KWGui (this=0x20f3b00, __in_chrg=<optimized out>) at /build/buildd/calligra-2.9.2/words/part/KWGui.cpp:118
#20 0x00007f4330e78d18 in QObjectPrivate::deleteChildren (this=this@entry=0x185abc0) at kernel/qobject.cpp:1935
#21 0x00007f43318c07f3 in QWidget::~QWidget (this=0x1fc1760, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1679
#22 0x00007f431da5c3b9 in KWView::~KWView (this=0x1fc1760, __in_chrg=<optimized out>) at /build/buildd/calligra-2.9.2/words/part/KWView.cpp:205
#23 0x00007f43324085d6 in KoMainWindow::setRootDocument (this=this@entry=0x1e68720, doc=doc@entry=0x0, part=part@entry=0x0, deletePrevious=deletePrevious@entry=true) at /build/buildd/calligra-2.9.2/libs/main/KoMainWindow.cpp:568
#24 0x00007f433240b51a in KoMainWindow::closeEvent (this=0x1e68720, e=0x7fff732a00d0) at /build/buildd/calligra-2.9.2/libs/main/KoMainWindow.cpp:1165
#25 0x00007f43318c0dc8 in QWidget::event (this=0x1e68720, event=0x7fff732a00d0) at kernel/qwidget.cpp:8775
#26 0x00007f4331ca1923 in QMainWindow::event (this=this@entry=0x1e68720, event=event@entry=0x7fff732a00d0) at widgets/qmainwindow.cpp:1478
#27 0x00007f432e7e8e81 in KMainWindow::event (this=this@entry=0x1e68720, ev=ev@entry=0x7fff732a00d0) at ../../kdeui/widgets/kmainwindow.cpp:1126
#28 0x00007f432e824b09 in KXmlGuiWindow::event (this=0x1e68720, ev=0x7fff732a00d0) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#29 0x00007f433186d9bc in QApplicationPrivate::notify_helper (this=this@entry=0x1500a60, receiver=receiver@entry=0x1e68720, e=e@entry=0x7fff732a00d0) at kernel/qapplication.cpp:4570
#30 0x00007f43318744d8 in QApplication::notify (this=0x7fff732a07b0, receiver=receiver@entry=0x1e68720, e=e@entry=0x7fff732a00d0) at kernel/qapplication.cpp:4356
#31 0x00007f43323eb067 in KoApplication::notify (this=<optimized out>, receiver=0x1e68720, event=0x7fff732a00d0) at /build/buildd/calligra-2.9.2/libs/main/KoApplication.cpp:623
#32 0x00007f4330e611cd in QCoreApplication::notifyInternal (this=0x7fff732a07b0, receiver=receiver@entry=0x1e68720, event=event@entry=0x7fff732a00d0) at kernel/qcoreapplication.cpp:955
#33 0x00007f43318bd659 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#34 QWidgetPrivate::close_helper (this=0x1e67320, mode=mode@entry=QWidgetPrivate::CloseWithSpontaneousEvent) at kernel/qwidget.cpp:7955
#35 0x00007f43318dcff6 in translateCloseEvent (this=0x1e68720) at kernel/qapplication_x11.cpp:5826
#36 QApplication::x11ClientMessage (this=<optimized out>, w=0x1e68720, event=<optimized out>, passive_only=<optimized out>) at kernel/qapplication_x11.cpp:3203
#37 0x00007f43318ec422 in QApplication::x11ProcessEvent (this=0x7fff732a07b0, event=event@entry=0x7fff732a0350) at kernel/qapplication_x11.cpp:3887
#38 0x00007f4331915ba2 in x11EventSourceDispatch (s=0x1501170, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#39 0x00007f432d724c3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f432d724f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f432d724fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f4330e9085e in QEventDispatcherGlib::processEvents (this=0x1496890, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#43 0x00007f4331915c66 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007f4330e5fd21 in QEventLoop::processEvents (this=this@entry=0x7fff732a0730, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007f4330e60085 in QEventLoop::exec (this=this@entry=0x7fff732a0730, flags=...) at kernel/qeventloop.cpp:204
#46 0x00007f4330e65b09 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#47 0x00007f433186bc1c in QApplication::exec () at kernel/qapplication.cpp:3828
#48 0x00007f4332a6ef35 in kdemain (argc=<optimized out>, argv=<optimized out>) at /build/buildd/calligra-2.9.2/words/app/main.cpp:44
#49 0x00007f43326c2a40 in __libc_start_main (main=0x4006d0 <main(int, char**)>, argc=1, argv=0x7fff732a08f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff732a08e8) at libc-start.c:289
#50 0x0000000000400709 in _start ()

Reported using DrKonqi
Comment 1 Hannu Lehtimäki 2015-09-23 19:24:21 UTC
Created attachment 94697 [details]
New crash information added by DrKonqi

calligrawords (2.9.2) on KDE Platform 4.14.6 using Qt 4.8.6

- What I was doing when the application crashed:

second trial to close calligra word application by using window manager close button caused segmentation fault wit following stack trace

-- Backtrace (Reduced):
#6  QString (other=..., this=0x2932b90) at /usr/include/qt4/QtCore/qstring.h:725
[...]
#10 insert (avalue=@0x7ffd8ef5a858: 0x2053e90, akey=..., this=0x1dd2400) at /usr/include/qt4/QtCore/qmap.h:562
#11 KActionCollection::addAction (this=this@entry=0x1f39470, name=..., action=action@entry=0x2053e90) at ../../kdeui/actions/kactioncollection.cpp:292
#12 0x00007f9c2776d9a9 in KActionCollection::addAction (this=this@entry=0x1f39470, name=..., action=action@entry=0x2053e90) at ../../kdeui/actions/kactioncollection.cpp:211
#13 0x00007f9c28d451df in deactivateToolActions (this=0x21c1e70) at /build/buildd/calligra-2.9.2/libs/flake/KoToolManager.cpp:144
Comment 2 Camilla Boemann 2015-09-23 20:07:29 UTC
it's already fixed in 2.9.6 or so - just get the latest version

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