Bug 356815 - Crash if you close kate when the print dialog is open
Summary: Crash if you close kate when the print dialog is open
Status: RESOLVED DUPLICATE of bug 356813
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-17 05:02 UTC by Santhiar
Modified: 2016-04-05 19:23 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 Santhiar 2015-12-17 05:02:06 UTC
Kate crashes if it is closed when the print dialog is open.
Close kate from the command line using "qdbus `qdbus | grep kate` /kate/__KateMainWindow_1/actions/file_quit trigger" when the print dialog is open

Reproducible: Always

Steps to Reproduce:
1. Open kate
2. Issue Ctrl + P, and when the print dialog is open,
3. Say "qdbus `qdbus | grep kate` /kate/__KateMainWindow_1/actions/file_quit trigger" from a terminal

Actual Results:  
kate crashes

Expected Results:  
kate closes smoothly

I investigated this bug further using a version of kate built using address sanitizer.
(http://clang.llvm.org/docs/AddressSanitizer.html)
This is actually a use-after-free bug. Please see the report for the stacks at the access, free and allocation of the memory involved. I shall be happy to supply any other information that might help fix the bug.

==24978==ERROR: AddressSanitizer: heap-use-after-free on address 0x60400032e650 at pc 0x7f7154ac7e57 bp 0x7fff9db43c70 sp 0x7fff9db43c68
READ of size 8 at 0x60400032e650 thread T0
    #0 0x7f7154ac7e56 in QScopedPointerDeleter<QPrintDialog>::cleanup(QPrintDialog*) qt4/include/QtCore/qscopedpointer.h:62
    #1 0x7f7154ac7e56 in ~QScopedPointer qt4/include/QtCore/qscopedpointer.h:100
    #2 0x7f7154ac7e56 in ~QScopedPointer qt4/include/QtCore/qscopedpointer.h:98
    #3 0x7f7154ac7e56 in KatePrinter::print(KateDocument*) KDE/kde/applications/kate/part/utils/kateprinter.cpp:672
    #4 0x7f7154521650 in KateDocument::print() KDE/kde/applications/kate/part/document/katedocument.cpp:1855
    #5 0x7f7154521650 in KateDocument::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) KDE/build-asan/kde/applications/kate/part/katedocument.moc:267
    #6 0x7f7165fd0606 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qt4/lib/libQtCore.so.4+0x255606)
    #7 0x7f716778e41c in QAction::triggered(bool) (qt4/lib/libQtGui.so.4+0x22541c)
    #8 0x7f716778e231 in QAction::activate(QAction::ActionEvent) (qt4/lib/libQtGui.so.4+0x225231)
    #9 0x7f716778e054 in QAction::event(QEvent*) (qt4/lib/libQtGui.so.4+0x225054)
    #10 0x7f7168a237c6 in KAction::event(QEvent*) KDE/kde/kdelibs/kdeui/actions/kaction.cpp:131
    #11 0x7f716779e48e in QApplicationPrivate::notify_helper(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x23548e)
    #12 0x7f71677a0a8d in QApplication::notify(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x237a8d)
    #13 0x7f7168dd0340 in KApplication::notify(QObject*, QEvent*) KDE/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
    #14 0x7f7165fa8dc5 in QCoreApplication::notifyInternal(QObject*, QEvent*) (qt4/lib/libQtCore.so.4+0x22ddc5)
    #15 0x7f716778f779 in QCoreApplication::sendEvent(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x226779)
    #16 0x7f71677f4cdb in QShortcutMap::dispatchEvent(QKeyEvent*) (qt4/lib/libQtGui.so.4+0x28bcdb)
    #17 0x7f71677f46d8 in QShortcutMap::tryShortcutEvent(QObject*, QKeyEvent*) (qt4/lib/libQtGui.so.4+0x28b6d8)
    #18 0x7f71677a0eaa in QApplication::notify(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x237eaa)
    #19 0x7f7168dd0340 in KApplication::notify(QObject*, QEvent*) KDE/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
    #20 0x7f7165fa8dc5 in QCoreApplication::notifyInternal(QObject*, QEvent*) (qt4/lib/libQtCore.so.4+0x22ddc5)
    #21 0x7f71677a902e in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x24002e)
    #22 0x7f71677a489c in qt_sendSpontaneousEvent(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x23b89c)
    #23 0x7f71678b235d in QKeyMapper::sendKeyEvent(QWidget*, bool, QEvent::Type, int, QFlags<Qt::KeyboardModifier>, QString const&, bool, int, unsigned int, unsigned int, unsigned int, bool*) (qt4/lib/libQtGui.so.4+0x34935d)
    #24 0x7f71678b1d40 in QKeyMapperPrivate::translateKeyEvent(QWidget*, _XEvent const*, bool) (qt4/lib/libQtGui.so.4+0x348d40)
    #25 0x7f716786c0b3 in QApplication::x11ProcessEvent(_XEvent*) (qt4/lib/libQtGui.so.4+0x3030b3)
    #26 0x7f71678b522f in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) (qt4/lib/libQtGui.so.4+0x34c22f)
    #27 0x7f7160ca6d12 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x47d12)
    #28 0x7f7160ca705f (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4805f)
    #29 0x7f7160ca7123 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x48123)
    #30 0x7f7165ff5c91 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x27ac91)
    #31 0x7f71678b4cf3 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtGui.so.4+0x34bcf3)
    #32 0x7f7165fa3f6b in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x228f6b)
    #33 0x7f7165fa4331 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x229331)
    #34 0x7f7165fa95ed in QCoreApplication::exec() (qt4/lib/libQtCore.so.4+0x22e5ed)
    #35 0x7f71677a0525 in QApplication::exec() (qt4/lib/libQtGui.so.4+0x237525)
    #36 0x7f716b16ef2c in kdemain KDE/kde/applications/kate/kate/app/katemain.cpp:381
    #37 0x445cb8 in main (KDE/install-asan/bin/kate+0x445cb8)
    #38 0x7f7164b9f76c (/lib/x86_64-linux-gnu/libc.so.6+0x2176c)
    #39 0x445bbc in _start (KDE/install-asan/bin/kate+0x445bbc)
0x60400032e650 is located 0 bytes inside of 40-byte region [0x60400032e650,0x60400032e678)
freed by thread T0 here:
    #0 0x4311da in operator delete(void*) (KDE/install-asan/bin/kate+0x4311da)
    #1 0x7f7167f346c8 in QPrintDialog::~QPrintDialog() (qt4/lib/libQtGui.so.4+0x9cb6c8)
    #2 0x7f7165fc8dd3 in QObjectPrivate::deleteChildren() (qt4/lib/libQtCore.so.4+0x24ddd3)
    #3 0x7f7167812112 in QWidget::~QWidget() (qt4/lib/libQtGui.so.4+0x2a9112)
    #4 0x7f7167e485e4 in QMainWindow::~QMainWindow() (qt4/lib/libQtGui.so.4+0x8df5e4)
    #5 0x7f71690e4b5e in KMainWindow::~KMainWindow() KDE/kde/kdelibs/kdeui/widgets/kmainwindow.cpp:473
    #6 0x7f71691f5ee1 in KXmlGuiWindow::~KXmlGuiWindow() KDE/kde/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:122
    #7 0x7f716ab15d2c in KParts::MainWindow::~MainWindow() KDE/kde/kdelibs/kparts/mainwindow.cpp:79
    #8 0x7f716aece11d in KateMDI::MainWindow::~MainWindow() KDE/kde/applications/kate/kate/app/katemdi.cpp:766
    #9 0x7f716ae46e0b in KateMainWindow::~KateMainWindow() KDE/kde/applications/kate/kate/app/katemainwindow.cpp:224
    #10 0x7f716ae46565 in ~KateMainWindow KDE/kde/applications/kate/kate/app/katemainwindow.cpp:212
    #11 0x7f716ae46565 in KateMainWindow::~KateMainWindow() KDE/kde/applications/kate/kate/app/katemainwindow.cpp:212
    #12 0x7f716adfa4fe in KateApp::shutdownKate(KateMainWindow*) KDE/kde/applications/kate/kate/app/kateapp.cpp:294
    #13 0x7f716ae2b06e in KateMainWindow::slotFileQuit() KDE/kde/applications/kate/kate/app/katemainwindow.cpp:518
    #14 0x7f716ae2b06e in KateMainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) KDE/build-asan/kde/applications/kate/kate/app/katemainwindow.moc:172
    #15 0x7f7165fc769c in QMetaCallEvent::placeMetaCall(QObject*) (qt4/lib/libQtCore.so.4+0x24c69c)
    #16 0x7f7165fc9a0f in QObject::event(QEvent*) (qt4/lib/libQtCore.so.4+0x24ea0f)
    #17 0x7f7167829345 in QWidget::event(QEvent*) (qt4/lib/libQtGui.so.4+0x2c0345)
    #18 0x7f7167e4af72 in QMainWindow::event(QEvent*) (qt4/lib/libQtGui.so.4+0x8e1f72)
    #19 0x7f71690f0133 in KMainWindow::event(QEvent*) KDE/kde/kdelibs/kdeui/widgets/kmainwindow.cpp:1126
    #20 0x7f71691f60b2 in KXmlGuiWindow::event(QEvent*) KDE/kde/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:126
    #21 0x7f716ae4b8fe in KateMainWindow::event(QEvent*) KDE/kde/applications/kate/kate/app/katemainwindow.cpp:1051
    #22 0x7f716779e48e in QApplicationPrivate::notify_helper(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x23548e)
    #23 0x7f71677a432b in QApplication::notify(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x23b32b)
    #24 0x7f7168dd0340 in KApplication::notify(QObject*, QEvent*) KDE/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
    #25 0x7f7165fa8dc5 in QCoreApplication::notifyInternal(QObject*, QEvent*) (qt4/lib/libQtCore.so.4+0x22ddc5)
    #26 0x7f7165fad549 in QCoreApplication::sendEvent(QObject*, QEvent*) (qt4/lib/libQtCore.so.4+0x232549)
    #27 0x7f7165faa3f3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (qt4/lib/libQtCore.so.4+0x22f3f3)
    #28 0x7f7165fa9337 in QCoreApplication::sendPostedEvents(QObject*, int) (qt4/lib/libQtCore.so.4+0x22e337)
    #29 0x7f7165ff7e17 in QCoreApplication::sendPostedEvents() (qt4/lib/libQtCore.so.4+0x27ce17)
    #30 0x7f7165ff6d2a in postEventSourceDispatch(_GSource*, int (*)(void*), void*) (qt4/lib/libQtCore.so.4+0x27bd2a)
    #31 0x7f7160ca6d12 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x47d12)
    #32 0x7f7160ca705f (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4805f)
    #33 0x7f7160ca7123 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x48123)
    #34 0x7f7165ff5c91 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x27ac91)
    #35 0x7f71678b4cf3 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtGui.so.4+0x34bcf3)
    #36 0x7f7165fa3f6b in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x228f6b)
    #37 0x7f7165fa4331 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x229331)
    #38 0x7f7167f52c8a in QDialog::exec() (qt4/lib/libQtGui.so.4+0x9e9c8a)
    #39 0x7f7167f34794 in QPrintDialog::exec() (qt4/lib/libQtGui.so.4+0x9cb794)
    #40 0x7f7154ab82e4 in KatePrinter::print(KateDocument*) KDE/kde/applications/kate/part/utils/kateprinter.cpp:131
    #41 0x7f7154521650 in KateDocument::print() KDE/kde/applications/kate/part/document/katedocument.cpp:1855
    #42 0x7f7154521650 in KateDocument::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) KDE/build-asan/kde/applications/kate/part/katedocument.moc:267
    #43 0x7f7165fd0606 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qt4/lib/libQtCore.so.4+0x255606)
    #44 0x7f716778e41c in QAction::triggered(bool) (qt4/lib/libQtGui.so.4+0x22541c)
    #45 0x7f716778e231 in QAction::activate(QAction::ActionEvent) (qt4/lib/libQtGui.so.4+0x225231)
    #46 0x7f716778e054 in QAction::event(QEvent*) (qt4/lib/libQtGui.so.4+0x225054)
    #47 0x7f7168a237c6 in KAction::event(QEvent*) KDE/kde/kdelibs/kdeui/actions/kaction.cpp:131
    #48 0x7f716779e48e in QApplicationPrivate::notify_helper(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x23548e)
    #49 0x7f71677a0a8d in QApplication::notify(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x237a8d)
    #50 0x7f7168dd0340 in KApplication::notify(QObject*, QEvent*) KDE/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
    #51 0x7f7165fa8dc5 in QCoreApplication::notifyInternal(QObject*, QEvent*) (qt4/lib/libQtCore.so.4+0x22ddc5)
    #52 0x7f716778f779 in QCoreApplication::sendEvent(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x226779)
    #53 0x7f71677f4cdb in QShortcutMap::dispatchEvent(QKeyEvent*) (qt4/lib/libQtGui.so.4+0x28bcdb)
    #54 0x7f71677f46d8 in QShortcutMap::tryShortcutEvent(QObject*, QKeyEvent*) (qt4/lib/libQtGui.so.4+0x28b6d8)
    #55 0x7f71677a0eaa in QApplication::notify(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x237eaa)
    #56 0x7f7168dd0340 in KApplication::notify(QObject*, QEvent*) KDE/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
    #57 0x7f7165fa8dc5 in QCoreApplication::notifyInternal(QObject*, QEvent*) (qt4/lib/libQtCore.so.4+0x22ddc5)
    #58 0x7f71677a902e in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x24002e)
    #59 0x7f71677a489c in qt_sendSpontaneousEvent(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x23b89c)
    #60 0x7f71678b235d in QKeyMapper::sendKeyEvent(QWidget*, bool, QEvent::Type, int, QFlags<Qt::KeyboardModifier>, QString const&, bool, int, unsigned int, unsigned int, unsigned int, bool*) (qt4/lib/libQtGui.so.4+0x34935d)
    #61 0x7f71678b1d40 in QKeyMapperPrivate::translateKeyEvent(QWidget*, _XEvent const*, bool) (qt4/lib/libQtGui.so.4+0x348d40)
    #62 0x7f716786c0b3 in QApplication::x11ProcessEvent(_XEvent*) (qt4/lib/libQtGui.so.4+0x3030b3)
    #63 0x7f71678b522f in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) (qt4/lib/libQtGui.so.4+0x34c22f)
    #64 0x7f7160ca6d12 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x47d12)
    #65 0x7f7160ca705f (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4805f)
    #66 0x7f7160ca7123 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x48123)
    #67 0x7f7165ff5c91 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x27ac91)
    #68 0x7f71678b4cf3 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtGui.so.4+0x34bcf3)
    #69 0x7f7165fa3f6b in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x228f6b)
    #70 0x7f7165fa4331 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x229331)
    #71 0x7f7165fa95ed in QCoreApplication::exec() (qt4/lib/libQtCore.so.4+0x22e5ed)
    #72 0x7f71677a0525 in QApplication::exec() (qt4/lib/libQtGui.so.4+0x237525)
    #73 0x7f716b16ef2c in kdemain KDE/kde/applications/kate/kate/app/katemain.cpp:381
    #74 0x445cb8 in main (KDE/install-asan/bin/kate+0x445cb8)
    #75 0x7f7164b9f76c (/lib/x86_64-linux-gnu/libc.so.6+0x2176c)
    #76 0x445bbc in _start (KDE/install-asan/bin/kate+0x445bbc)
previously allocated by thread T0 here:
    #0 0x430f5a in operator new(unsigned long) (KDE/install-asan/bin/kate+0x430f5a)
    #1 0x7f716929a799 in KdePrint::createPrintDialog(QPrinter*, KdePrint::PageSelectPolicy, QList<QWidget*> const&, QWidget*) KDE/kde/kdelibs/kdeui/dialogs/kdeprintdialog.cpp:44
    #2 0x7f7154ab81fb in KatePrinter::print(KateDocument*) KDE/kde/applications/kate/part/utils/kateprinter.cpp:124
    #3 0x7f7154521650 in KateDocument::print() KDE/kde/applications/kate/part/document/katedocument.cpp:1855
    #4 0x7f7154521650 in KateDocument::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) KDE/build-asan/kde/applications/kate/part/katedocument.moc:267
    #5 0x7f7165fd0606 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qt4/lib/libQtCore.so.4+0x255606)
    #6 0x7f716778e41c in QAction::triggered(bool) (qt4/lib/libQtGui.so.4+0x22541c)
    #7 0x7f716778e231 in QAction::activate(QAction::ActionEvent) (qt4/lib/libQtGui.so.4+0x225231)
    #8 0x7f716778e054 in QAction::event(QEvent*) (qt4/lib/libQtGui.so.4+0x225054)
    #9 0x7f7168a237c6 in KAction::event(QEvent*) KDE/kde/kdelibs/kdeui/actions/kaction.cpp:131
    #10 0x7f716779e48e in QApplicationPrivate::notify_helper(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x23548e)
    #11 0x7f71677a0a8d in QApplication::notify(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x237a8d)
    #12 0x7f7168dd0340 in KApplication::notify(QObject*, QEvent*) KDE/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
    #13 0x7f7165fa8dc5 in QCoreApplication::notifyInternal(QObject*, QEvent*) (qt4/lib/libQtCore.so.4+0x22ddc5)
    #14 0x7f716778f779 in QCoreApplication::sendEvent(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x226779)
    #15 0x7f71677f4cdb in QShortcutMap::dispatchEvent(QKeyEvent*) (qt4/lib/libQtGui.so.4+0x28bcdb)
    #16 0x7f71677f46d8 in QShortcutMap::tryShortcutEvent(QObject*, QKeyEvent*) (qt4/lib/libQtGui.so.4+0x28b6d8)
    #17 0x7f71677a0eaa in QApplication::notify(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x237eaa)
    #18 0x7f7168dd0340 in KApplication::notify(QObject*, QEvent*) KDE/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
    #19 0x7f7165fa8dc5 in QCoreApplication::notifyInternal(QObject*, QEvent*) (qt4/lib/libQtCore.so.4+0x22ddc5)
    #20 0x7f71677a902e in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x24002e)
    #21 0x7f71677a489c in qt_sendSpontaneousEvent(QObject*, QEvent*) (qt4/lib/libQtGui.so.4+0x23b89c)
    #22 0x7f71678b235d in QKeyMapper::sendKeyEvent(QWidget*, bool, QEvent::Type, int, QFlags<Qt::KeyboardModifier>, QString const&, bool, int, unsigned int, unsigned int, unsigned int, bool*) (qt4/lib/libQtGui.so.4+0x34935d)
    #23 0x7f71678b1d40 in QKeyMapperPrivate::translateKeyEvent(QWidget*, _XEvent const*, bool) (qt4/lib/libQtGui.so.4+0x348d40)
    #24 0x7f716786c0b3 in QApplication::x11ProcessEvent(_XEvent*) (qt4/lib/libQtGui.so.4+0x3030b3)
    #25 0x7f71678b522f in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) (qt4/lib/libQtGui.so.4+0x34c22f)
    #26 0x7f7160ca6d12 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x47d12)
    #27 0x7f7160ca705f (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4805f)
    #28 0x7f7160ca7123 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x48123)
    #29 0x7f7165ff5c91 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x27ac91)
    #30 0x7f71678b4cf3 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtGui.so.4+0x34bcf3)
    #31 0x7f7165fa3f6b in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x228f6b)
    #32 0x7f7165fa4331 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (qt4/lib/libQtCore.so.4+0x229331)
    #33 0x7f7165fa95ed in QCoreApplication::exec() (qt4/lib/libQtCore.so.4+0x22e5ed)
    #34 0x7f71677a0525 in QApplication::exec() (qt4/lib/libQtGui.so.4+0x237525)
    #35 0x7f716b16ef2c in kdemain KDE/kde/applications/kate/kate/app/katemain.cpp:381
    #36 0x445cb8 in main (KDE/install-asan/bin/kate+0x445cb8)
    #37 0x7f7164b9f76c (/lib/x86_64-linux-gnu/libc.so.6+0x2176c)
    #38 0x445bbc in _start (KDE/install-asan/bin/kate+0x445bbc)
SUMMARY: AddressSanitizer: heap-use-after-free qt4/include/QtCore/qscopedpointer.h:62 QScopedPointerDeleter<QPrintDialog>::cleanup(QPrintDialog*)
Shadow bytes around the buggy address:
  0x0c088005dc70: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd
  0x0c088005dc80: fa fa 00 00 00 00 00 02 fa fa fd fd fd fd fd fa
  0x0c088005dc90: fa fa fa fa fa fa fa fa fa fa 00 00 00 00 00 04
  0x0c088005dca0: fa fa fd fd fd fd fd fd fa fa 00 00 00 00 00 06
  0x0c088005dcb0: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
=>0x0c088005dcc0: fa fa fd fd fd fd fd fd fa fa[fd]fd fd fd fd fa
  0x0c088005dcd0: fa fa 00 00 00 00 00 00 fa fa fd fd fd fd fd fd
  0x0c088005dce0: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
  0x0c088005dcf0: fa fa 00 00 00 00 00 02 fa fa 00 00 00 00 00 fa
  0x0c088005dd00: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 04
  0x0c088005dd10: fa fa 00 00 00 00 00 04 fa fa 00 00 00 00 00 06
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:     fa
  Heap right redzone:    fb
  Freed heap region:     fd
  Stack left redzone:    f1
  Stack mid redzone:     f2
  Stack right redzone:   f3
  Stack partial redzone: f4
  Stack after return:    f5
  Stack use after scope: f8
  Global redzone:        f9
  Global init order:     f6
  Poisoned by user:      f7
  ASan internal:         fe
==24978==ABORTING
Comment 1 Dominik Haumann 2016-04-05 19:23:45 UTC

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