Application: calligrawords (2.8.5) KDE Platform Version: 4.14.2 Qt Version: 4.8.6 Operating System: Linux 3.16.0-4-amd64 x86_64 Distribution: Debian GNU/Linux 8.0 (jessie) -- Information about the crash: - What I was doing when the application сrashed: Just close the application after saving the document. -- 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 0x7fea4c9aa7c0 (LWP 7262))] Thread 2 (Thread 0x7fea28e96700 (LWP 7392)): #0 0x00007fea4c30618d in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007fea47157ee4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7fea2420c0a0, timeout=-1, context=0x7fea24057360) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:4076 #2 g_main_context_iterate (context=context@entry=0x7fea24057360, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3776 #3 0x00007fea47157ffc in g_main_context_iteration (context=0x7fea24057360, may_block=1) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3842 #4 0x00007fea4a9bb507 in QEventDispatcherGlib::processEvents (this=0x7fea2404d500, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #5 0x00007fea4a98aae1 in QEventLoop::processEvents (this=this@entry=0x7fea28e95dc0, flags=...) at kernel/qeventloop.cpp:149 #6 0x00007fea4a98ae45 in QEventLoop::exec (this=this@entry=0x7fea28e95dc0, flags=...) at kernel/qeventloop.cpp:204 #7 0x00007fea4a87fb89 in QThread::exec (this=this@entry=0x5a82be0) at thread/qthread.cpp:538 #8 0x00007fea4a96b483 in QInotifyFileSystemWatcherEngine::run (this=0x5a82be0) at io/qfilesystemwatcher_inotify.cpp:265 #9 0x00007fea4a8823ef in QThreadPrivate::start (arg=0x5a82be0) at thread/qthread_unix.cpp:349 #10 0x00007fea4763f0a4 in start_thread (arg=0x7fea28e96700) at pthread_create.c:309 #11 0x00007fea4c30eccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 1 (Thread 0x7fea4c9aa7c0 (LWP 7262)): [KCrash Handler] #6 KoTextRange::~KoTextRange (this=0x5c17950, __in_chrg=<optimized out>) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/libs/kotext/KoTextRange.cpp:72 #7 0x00007fea49ad2ef9 in KoAnchorTextRange::~KoAnchorTextRange (this=0x5c17950, __in_chrg=<optimized out>) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/libs/kotext/KoAnchorTextRange.cpp:62 #8 0x00007fea49b6efda in ChangeAnchorPropertiesCommand::~ChangeAnchorPropertiesCommand (this=0x5b63000, __in_chrg=<optimized out>) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/libs/kotext/commands/ChangeAnchorPropertiesCommand.cpp:54 #9 0x00007fea49b6f019 in ChangeAnchorPropertiesCommand::~ChangeAnchorPropertiesCommand (this=0x5b63000, __in_chrg=<optimized out>) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/libs/kotext/commands/ChangeAnchorPropertiesCommand.cpp:56 #10 0x00007fea488c62fc in qDeleteAll<QList<KUndo2Command*>::const_iterator> (end=..., begin=...) at /usr/include/qt4/QtCore/qalgorithms.h:322 #11 qDeleteAll<QList<KUndo2Command*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330 #12 KUndo2Command::~KUndo2Command (this=0x5b66db0, __in_chrg=<optimized out>) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/libs/kundo2/kundo2stack.cpp:150 #13 0x00007fea36b75023 in ~MasterCommand (this=0x5b66db0, __in_chrg=<optimized out>) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/words/part/dialogs/KWFrameDialog.cpp:79 #14 KWFrameDialog::MasterCommand::~MasterCommand (this=0x5b66db0, __in_chrg=<optimized out>) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/words/part/dialogs/KWFrameDialog.cpp:79 #15 0x00007fea488c6913 in qDeleteAll<QList<KUndo2Command*>::const_iterator> (end=..., begin=...) at /usr/include/qt4/QtCore/qalgorithms.h:322 #16 qDeleteAll<QList<KUndo2Command*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330 #17 KUndo2QStack::clear (this=0x1d439d0) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/libs/kundo2/kundo2stack.cpp:529 #18 0x00007fea4bf342f0 in KoDocument::clearUndoHistory (this=this@entry=0x1d494d0) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/libs/main/KoDocument.cpp:2395 #19 0x00007fea4bf61b7e in KoMainWindow::setRootDocument (this=this@entry=0x1bd1bf0, doc=doc@entry=0x0, part=part@entry=0x0, deletePrevious=deletePrevious@entry=true) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/libs/main/KoMainWindow.cpp:582 #20 0x00007fea4bf65aca in KoMainWindow::closeEvent (this=0x1bd1bf0, e=0x7fff135208f0) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/libs/main/KoMainWindow.cpp:1165 #21 0x00007fea4b3fe4d8 in QWidget::event (this=0x1bd1bf0, event=0x7fff135208f0) at kernel/qwidget.cpp:8775 #22 0x00007fea4b7d9363 in QMainWindow::event (this=this@entry=0x1bd1bf0, event=event@entry=0x7fff135208f0) at widgets/qmainwindow.cpp:1478 #23 0x00007fea48539d11 in KMainWindow::event (this=this@entry=0x1bd1bf0, ev=ev@entry=0x7fff135208f0) at ../../kdeui/widgets/kmainwindow.cpp:1084 #24 0x00007fea485759b9 in KXmlGuiWindow::event (this=0x1bd1bf0, ev=0x7fff135208f0) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126 #25 0x00007fea4b3ab29c in QApplicationPrivate::notify_helper (this=this@entry=0x1ac3e70, receiver=receiver@entry=0x1bd1bf0, e=e@entry=0x7fff135208f0) at kernel/qapplication.cpp:4570 #26 0x00007fea4b3b1da8 in QApplication::notify (this=0x7fff13520fd0, receiver=receiver@entry=0x1bd1bf0, e=e@entry=0x7fff135208f0) at kernel/qapplication.cpp:4356 #27 0x00007fea4bf31727 in KoApplication::notify (this=<optimized out>, receiver=0x1bd1bf0, event=0x7fff135208f0) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/libs/main/KoApplication.cpp:617 #28 0x00007fea4a98bf8d in QCoreApplication::notifyInternal (this=0x7fff13520fd0, receiver=receiver@entry=0x1bd1bf0, event=event@entry=0x7fff135208f0) at kernel/qcoreapplication.cpp:955 #29 0x00007fea4b3fad69 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #30 QWidgetPrivate::close_helper (this=0x1b1d1d0, mode=mode@entry=QWidgetPrivate::CloseWithSpontaneousEvent) at kernel/qwidget.cpp:7955 #31 0x00007fea4b419f46 in translateCloseEvent (this=0x1bd1bf0) at kernel/qapplication_x11.cpp:5481 #32 QApplication::x11ClientMessage (this=<optimized out>, w=0x1bd1bf0, event=<optimized out>, passive_only=<optimized out>) at kernel/qapplication_x11.cpp:3177 #33 0x00007fea4b426f01 in QApplication::x11ProcessEvent (this=0x7fff13520fd0, event=event@entry=0x7fff13520b70) at kernel/qapplication_x11.cpp:3802 #34 0x00007fea4b44fad2 in x11EventSourceDispatch (s=0x1ab23c0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #35 0x00007fea47157c5d in g_main_dispatch (context=0x1ac4130) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3111 #36 g_main_context_dispatch (context=context@entry=0x1ac4130) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3710 #37 0x00007fea47157f48 in g_main_context_iterate (context=context@entry=0x1ac4130, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3781 #38 0x00007fea47157ffc in g_main_context_iteration (context=0x1ac4130, may_block=1) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3842 #39 0x00007fea4a9bb4ed in QEventDispatcherGlib::processEvents (this=0x1a70340, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #40 0x00007fea4b44fb96 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #41 0x00007fea4a98aae1 in QEventLoop::processEvents (this=this@entry=0x7fff13520f50, flags=...) at kernel/qeventloop.cpp:149 #42 0x00007fea4a98ae45 in QEventLoop::exec (this=this@entry=0x7fff13520f50, flags=...) at kernel/qeventloop.cpp:204 #43 0x00007fea4a9908b9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227 #44 0x00007fea4b3a973c in QApplication::exec () at kernel/qapplication.cpp:3828 #45 0x00007fea4c5d4f35 in kdemain (argc=<optimized out>, argv=<optimized out>) at /build/calligra-kSNJNd/calligra-2.8.5+dfsg/words/app/main.cpp:44 #46 0x00007fea4c24ab45 in __libc_start_main (main=0x4006e0 <main(int, char**)>, argc=1, argv=0x7fff13521118, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff13521108) at libc-start.c:287 #47 0x000000000040070e in _start () Reported using DrKonqi
Hi there, I can't reproduce this with calligrawords 2.8.7. Does the bug happen again with the same file? If so, it might be useful to attach it to the report (if you can). (note: I'm a Google Code-in student)
luckily i'm now able to reproduce - and will try and fix it right away
Git commit cdc3239c3ad7cbb4787d68963566b7b29b76b27f by C. Boemann. Committed on 15/01/2015 at 12:29. Pushed by boemann into branch 'calligra/2.9'. Fix crash due to double delete (and using of the deleted data in the superclass dtor) M +0 -1 libs/kotext/KoAnchorTextRange.cpp http://commits.kde.org/calligra/cdc3239c3ad7cbb4787d68963566b7b29b76b27f