Bug 313070 - Crash when closing document
Summary: Crash when closing document
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 3.10.1
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 317080 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-11 13:34 UTC by Sandro Mani
Modified: 2013-08-15 13:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (7.36 KB, text/plain)
2013-03-19 03:27 UTC, Maarten ter Huurne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sandro Mani 2013-01-11 13:34:59 UTC
Application: kate (3.9.97)
KDE Platform Version: 4.9.97
Qt Version: 4.8.4
Operating System: Linux 3.7.0-1.fdbz57136.fc19.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
Closed a document with CTRL+W

Happens very irregularly, nor clear pattern.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kate (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f8e54003880 (LWP 21661))]

Thread 3 (Thread 0x7f8e2d4ac700 (LWP 21662)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f8e3cd34917 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f8e3d041660 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f8e3cd34949 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f8e52639d15 in start_thread (arg=0x7f8e2d4ac700) at pthread_create.c:308
#4  0x00007f8e50c53c4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f8da9153700 (LWP 21985)):
#0  0x00007ffff41f3847 in clock_gettime ()
#1  0x00007f8e50c6856d in clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007f8e5291f684 in do_gettime (frac=0x7f8da9152a28, sec=0x7f8da9152a20) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f8e529f47dd in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f8d9c002660) at kernel/qeventdispatcher_unix.cpp:354
#5  0x00007f8e529f4b23 in QTimerInfoList::timerWait (this=0x7f8d9c002660, tm=...) at kernel/qeventdispatcher_unix.cpp:461
#6  0x00007f8e529f358c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f8da9152b14) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f8e529f3635 in timerSourcePrepare (source=<optimized out>, timeout=timeout@entry=0x7f8da9152b14) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f8e4d39de08 in g_main_context_prepare (context=context@entry=0x7f8d9c0009a0, priority=priority@entry=0x7f8da9152b78) at gmain.c:3055
#9  0x00007f8e4d39e49e in g_main_context_iterate (context=context@entry=0x7f8d9c0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3339
#10 0x00007f8e4d39e6a4 in g_main_context_iteration (context=0x7f8d9c0009a0, may_block=1) at gmain.c:3420
#11 0x00007f8e529f3ed6 in QEventDispatcherGlib::processEvents (this=0x7f8d9c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f8e529c45bf in QEventLoop::processEvents (this=this@entry=0x7f8da9152cd0, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f8e529c4848 in QEventLoop::exec (this=0x7f8da9152cd0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f8e528c6730 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#15 0x00007f8e529a4def in QInotifyFileSystemWatcherEngine::run (this=0x2d74450) at io/qfilesystemwatcher_inotify.cpp:256
#16 0x00007f8e528c970c in QThreadPrivate::start (arg=0x2d74450) at thread/qthread_unix.cpp:338
#17 0x00007f8e52639d15 in start_thread (arg=0x7f8da9153700) at pthread_create.c:308
#18 0x00007f8e50c53c4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f8e54003880 (LWP 21661)):
[KCrash Handler]
#6  QWidget::isAncestorOf (this=0x2fdcf40, child=0x4002db0) at kernel/qwidget.cpp:8273
#7  0x00007f8e51b8dcc1 in QStackedLayout::setCurrentIndex (this=0x1ad36a0, index=9) at kernel/qstackedlayout.cpp:317
#8  0x00007f8e351334a9 in KateViewSpace::showView (this=0x18e71f0, document=<optimized out>) at /usr/src/debug/kate-4.9.97/kate/app/kateviewspace.cpp:177
#9  0x00007f8e3512d3cb in KateViewManager::deleteView (this=this@entry=0x1a90da0, view=0x4002db0, view@entry=0x284b240, delViewSpace=delViewSpace@entry=true) at /usr/src/debug/kate-4.9.97/kate/app/kateviewmanager.cpp:432
#10 0x00007f8e3512d5c8 in KateViewManager::closeViews (this=0x1a90da0, doc=0x4f3a090) at /usr/src/debug/kate-4.9.97/kate/app/kateviewmanager.cpp:671
#11 0x00007f8e3511e2f6 in KateDocManager::closeDocument (this=0x182ae30, doc=0x4002db0, closeUrl=true) at /usr/src/debug/kate-4.9.97/kate/app/katedocmanager.cpp:301
#12 0x00007f8e3512b868 in KateViewManager::slotDocumentClose (this=<optimized out>, document=0x4f3a090) at /usr/src/debug/kate-4.9.97/kate/app/kateviewmanager.cpp:272
#13 0x00007f8e529dac9f in QMetaObject::activate (sender=0x1adb6d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff41c50c0) at kernel/qobject.cpp:3539
#14 0x00007f8e51b54232 in QAction::triggered (this=this@entry=0x1adb6d0, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#15 0x00007f8e51b54420 in QAction::activate (this=0x1adb6d0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#16 0x00007f8e51b54587 in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1183
#17 0x00007f8e53918727 in KAction::event (this=<optimized out>, event=0x7ffff41c5660) at /usr/src/debug/kdelibs-4.9.97/kdeui/actions/kaction.cpp:131
#18 0x00007f8e51b5a3ec in QApplicationPrivate::notify_helper (this=this@entry=0x1655960, receiver=receiver@entry=0x1adb6d0, e=e@entry=0x7ffff41c5660) at kernel/qapplication.cpp:4562
#19 0x00007f8e51b5e86a in QApplication::notify (this=0x7ffff41c6e80, receiver=0x1adb6d0, e=0x7ffff41c5660) at kernel/qapplication.cpp:4423
#20 0x00007f8e539f1de6 in KApplication::notify (this=0x7ffff41c6e80, receiver=0x1adb6d0, event=0x7ffff41c5660) at /usr/src/debug/kdelibs-4.9.97/kdeui/kernel/kapplication.cpp:311
#21 0x00007f8e529c586e in QCoreApplication::notifyInternal (this=0x7ffff41c6e80, receiver=0x1adb6d0, event=0x7ffff41c5660) at kernel/qcoreapplication.cpp:946
#22 0x00007f8e51b8b0a4 in sendEvent (event=0x7ffff41c5660, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#23 QShortcutMap::dispatchEvent (this=this@entry=0x1655a80, e=e@entry=0x7ffff41c5c30) at kernel/qshortcutmap.cpp:884
#24 0x00007f8e51b8c6d3 in QShortcutMap::tryShortcutEvent (this=0x1655a80, o=<optimized out>, e=0x7ffff41c5c30) at kernel/qshortcutmap.cpp:364
#25 0x00007f8e51b60549 in QApplication::notify (this=0x7ffff41c6e80, receiver=0x284af90, e=0x7ffff41c5c30) at kernel/qapplication.cpp:3986
#26 0x00007f8e539f1de6 in KApplication::notify (this=0x7ffff41c6e80, receiver=0x284af90, event=0x7ffff41c5c30) at /usr/src/debug/kdelibs-4.9.97/kdeui/kernel/kapplication.cpp:311
#27 0x00007f8e529c586e in QCoreApplication::notifyInternal (this=0x7ffff41c6e80, receiver=0x284af90, event=0x7ffff41c5c30) at kernel/qcoreapplication.cpp:946
#28 0x00007f8e51bf67ba in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x284af90, grab=grab@entry=false, type=QEvent::KeyPress, code=87, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=1, nativeScanCode=25, nativeVirtualKey=119, nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1866
#29 0x00007f8e51bf6bf1 in QKeyMapperPrivate::translateKeyEvent (this=0x1684250, keyWidget=0x284af90, event=0x7ffff41c6650, grab=false) at kernel/qkeymapper_x11.cpp:1836
#30 0x00007f8e51bd44f8 in QApplication::x11ProcessEvent (this=0x7ffff41c6e80, event=0x7ffff41c6650) at kernel/qapplication_x11.cpp:3553
#31 0x00007f8e51bfa87c in x11EventSourceDispatch (s=s@entry=0x1653410, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#32 0x00007f8e4d39e2a5 in g_main_dispatch (context=0x1655af0) at gmain.c:2784
#33 g_main_context_dispatch (context=context@entry=0x1655af0) at gmain.c:3288
#34 0x00007f8e4d39e5e8 in g_main_context_iterate (context=context@entry=0x1655af0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3359
#35 0x00007f8e4d39e6a4 in g_main_context_iteration (context=0x1655af0, may_block=1) at gmain.c:3420
#36 0x00007f8e529f3eb6 in QEventDispatcherGlib::processEvents (this=0x1655750, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#37 0x00007f8e51bfa55e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#38 0x00007f8e529c45bf in QEventLoop::processEvents (this=this@entry=0x7ffff41c6a20, flags=...) at kernel/qeventloop.cpp:149
#39 0x00007f8e529c4848 in QEventLoop::exec (this=0x7ffff41c6a20, flags=...) at kernel/qeventloop.cpp:204
#40 0x00007f8e529c9638 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#41 0x00007f8e3538ce6d in kdemain (argc=3, argv=<optimized out>) at /usr/src/debug/kate-4.9.97/kate/app/katemain.cpp:380
#42 0x000000000040822a in launch (argc=argc@entry=3, _name=_name@entry=0x15d5d88 "/usr/bin/kate", args=0x15d5dcf "\001", args@entry=0x15d5d96 "-b", cwd=cwd@entry=0x0, envc=envc@entry=1, envs=<optimized out>, envs@entry=0x15d5dd7 "DISPLAY=:0", reset_env=false, tty=tty@entry=0x0, avoid_loops=false, startup_id_str=startup_id_str@entry=0x15d5dea "PC4;1357832115;977876;2499_TIME32459764") at /usr/src/debug/kdelibs-4.9.97/kinit/kinit.cpp:726
#43 0x00000000004090bb in handle_launcher_request (sock=8, who=<optimized out>) at /usr/src/debug/kdelibs-4.9.97/kinit/kinit.cpp:1218
#44 0x0000000000409700 in handle_requests (waitForPid=waitForPid@entry=0) at /usr/src/debug/kdelibs-4.9.97/kinit/kinit.cpp:1411
#45 0x0000000000405307 in main (argc=4, argv=<optimized out>, envp=0x7ffff41c7cc0) at /usr/src/debug/kdelibs-4.9.97/kinit/kinit.cpp:1899

Reported using DrKonqi
Comment 1 Dominik Haumann 2013-02-20 11:32:12 UTC
@Sandro: Did you have this issue again since KDE 4.10.0?
The backtrace doesn't match the path in the source code, so maybe the packages were broken somehow? I'll close as resolved waiting-for-info for now.
Comment 2 Sandro Mani 2013-02-20 11:35:54 UTC
Haven't seen the issue recently with the latest packages, closing.
Comment 3 Maarten ter Huurne 2013-03-19 03:27:20 UTC
Created attachment 78194 [details]
New crash information added by DrKonqi

kate (3.10.1) on KDE Platform 4.10.1 "release 545" using Qt 4.8.4

- What I was doing when the application crashed:

I accidentally wrote "kate git add <path>" instead of "git add <path>", so the already-open Kate instance tried to open the non-existing files "git" and "add". For one of those, I first closed the notice saying the file didn't exist by clicking the Close button inside the notice, then closed the empty document using CTRL-W. At that point, Kate crashed.

I'm using the KDE 4.10.x repository for openSUSE 12.2:
http://download.opensuse.org/repositories/KDE:/Release:/410/openSUSE_12.2/

-- Backtrace (Reduced):
#6  QWidget::isAncestorOf (this=0x6a77050, child=0x6c9f2e0) at kernel/qwidget.cpp:8273
#7  0x00007fa380c6d121 in QStackedLayout::setCurrentIndex (this=0x1eaa140, index=1) at kernel/qstackedlayout.cpp:317
#8  0x00007fa36d9cf0b9 in KateViewSpace::showView (this=0x1e3a980, document=<optimized out>) at /usr/src/debug/kate-4.10.1/kate/app/kateviewspace.cpp:177
#9  0x00007fa36d9c8fcb in KateViewManager::deleteView (this=this@entry=0x1d297b0, view=0x6c9f2e0, view@entry=0x6b904c0, delViewSpace=delViewSpace@entry=true) at /usr/src/debug/kate-4.10.1/kate/app/kateviewmanager.cpp:432
#10 0x00007fa36d9c91c8 in KateViewManager::closeViews (this=0x1d297b0, doc=0x6b065e0) at /usr/src/debug/kate-4.10.1/kate/app/kateviewmanager.cpp:671
Comment 4 Maarten ter Huurne 2013-03-19 03:33:39 UTC
To me, both the problem description and the stack trace look very similar to this bug. If you agree, please reopen this bug; it seems I don't have the privileges to do so.
Comment 5 Dominik Haumann 2013-03-23 15:48:18 UTC
*** Bug 317080 has been marked as a duplicate of this bug. ***
Comment 6 Dominik Haumann 2013-08-12 12:48:48 UTC
Could you reproduce again in the meantime? Steps to reproduce would help tremendously to get this fixed.
Comment 7 Sandro Mani 2013-08-15 13:26:05 UTC
I have not encountered the issue since. I'll close it again.