Bug 304810

Summary: krusader crashes on file -> open with
Product: [Applications] krusader Reporter: farmboy0
Component: generalAssignee: Jan Lepper <jan_lepper>
Status: RESOLVED DUPLICATE    
Severity: crash CC: jan_lepper
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description farmboy0 2012-08-08 17:47:27 UTC
Application: krusader (2.4.0-beta1 "Migration")
KDE Platform Version: 4.8.3 (4.8.3) (Compiled from sources)
Qt Version: 4.8.2
Operating System: Linux 3.3.8-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
I tried to open an .eml file but wanted to choose thunderbird as viewing application.
a background process in the same timeframe created new files and sub-directories in
the directory the file resided in.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Krusader (krusader), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f91e4d76760 (LWP 4461))]

Thread 3 (Thread 0x7f91d3b51700 (LWP 4462)):
#0  0x00007f91e127f8d3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f91ddc77b84 in g_main_context_poll (n_fds=1, fds=0x2970dd0, timeout=-1, context=0x292d0d0, priority=<optimized out>) at gmain.c:3402
#2  g_main_context_iterate (context=0x292d0d0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3084
#3  0x00007f91ddc78041 in g_main_context_iteration (context=0x292d0d0, may_block=1) at gmain.c:3152
#4  0x00007f91e1ef3ed6 in QEventDispatcherGlib::processEvents (this=0x28deb30, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f91e1ec3a32 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f91e1ec3ce5 in QEventLoop::exec (this=0x7f91d3b50de0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f91e1dc0198 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f91e1ea2758 in QInotifyFileSystemWatcherEngine::run (this=0x2920a50) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f91e1dc280b in QThreadPrivate::start (arg=0x2920a50) at thread/qthread_unix.cpp:307
#10 0x00007f91df040d0c in start_thread (arg=0x7f91d3b51700) at pthread_create.c:301
#11 0x00007f91e128864d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f91cbfff700 (LWP 7929)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f91d0969324 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f91d0c58100) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f91d0969359 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f91d0c661d4) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f91df040d0c in start_thread (arg=0x7f91cbfff700) at pthread_create.c:301
#4  0x00007f91e128864d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f91e4d76760 (LWP 4461)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00000000004b6480 in KrPopupMenu::performAction (this=0x7fffb9406c30, id=<optimized out>) at /var/tmp/portage/kde-misc/krusader-2.4.0_beta1-r1/work/krusader-2.4.0-beta1/krusader/Panel/krpopupmenu.cpp:332
#8  0x00000000004b6beb in KrPopupMenu::run (pos=<optimized out>, panel=<optimized out>) at /var/tmp/portage/kde-misc/krusader-2.4.0_beta1-r1/work/krusader-2.4.0-beta1/krusader/Panel/krpopupmenu.cpp:60
#9  0x000000000048e429 in ListPanel::popRightClickMenu (this=0x2a6a8c0, loc=...) at /var/tmp/portage/kde-misc/krusader-2.4.0_beta1-r1/work/krusader-2.4.0-beta1/krusader/Panel/listpanel.cpp:948
#10 0x000000000049e5c5 in ListPanel::qt_static_metacall (_o=0x2a6a8c0, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /var/tmp/portage/kde-misc/krusader-2.4.0_beta1-r1/work/krusader-2.4.0_beta1_build/krusader/Panel/moc_listpanel.cpp:134
#11 0x00007f91e1eda513 in QMetaObject::activate (sender=0x2a9b4c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffb9406fe0) at kernel/qobject.cpp:3547
#12 0x000000000049dc63 in KrViewOperator::contextMenu (this=<optimized out>, _t1=<optimized out>) at /var/tmp/portage/kde-misc/krusader-2.4.0_beta1-r1/work/krusader-2.4.0_beta1_build/krusader/Panel/moc_krview.cpp:212
#13 0x00007f91e1eda513 in QMetaObject::activate (sender=0x2a96ac8, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#14 0x00007f91e1ed9689 in QObject::event (this=0x2a96ac8, e=<optimized out>) at kernel/qobject.cpp:1157
#15 0x00007f91e23f6374 in QApplicationPrivate::notify_helper (this=0x26653e0, receiver=0x2a96ac8, e=0x7fffb9407830) at kernel/qapplication.cpp:4551
#16 0x00007f91e23fae4f in QApplication::notify (this=<optimized out>, receiver=0x2a96ac8, e=0x7fffb9407830) at kernel/qapplication.cpp:4412
#17 0x00007f91e4511ba6 in KApplication::notify (this=0x7fffb9407eb0, receiver=0x2a96ac8, event=0x7fffb9407830) at /var/tmp/portage/kde-base/kdelibs-4.8.3/work/kdelibs-4.8.3/kdeui/kernel/kapplication.cpp:311
#18 0x00007f91e1ec4ccb in QCoreApplication::notifyInternal (this=0x7fffb9407eb0, receiver=0x2a96ac8, event=0x7fffb9407830) at kernel/qcoreapplication.cpp:915
#19 0x00007f91e1ef66de in sendEvent (event=0x7fffb9407830, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#20 QTimerInfoList::activateTimers (this=0x26680f0) at kernel/qeventdispatcher_unix.cpp:611
#21 0x00007f91e1ef372d in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#22 0x00007f91ddc77672 in g_main_dispatch (context=0x2667c60) at gmain.c:2441
#23 g_main_context_dispatch (context=0x2667c60) at gmain.c:3011
#24 0x00007f91ddc77e68 in g_main_context_iterate (context=0x2667c60, block=1, dispatch=1, self=<optimized out>) at gmain.c:3089
#25 0x00007f91ddc78041 in g_main_context_iteration (context=0x2667c60, may_block=1) at gmain.c:3152
#26 0x00007f91e1ef3e7f in QEventDispatcherGlib::processEvents (this=0x2663ae0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#27 0x00007f91e249b73e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f91e1ec3a32 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#29 0x00007f91e1ec3ce5 in QEventLoop::exec (this=0x7fffb9407ad0, flags=...) at kernel/qeventloop.cpp:204
#30 0x00007f91e1ec873b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#31 0x000000000045d588 in main (argc=44445280, argv=0x7fffb94098b8) at /var/tmp/portage/kde-misc/krusader-2.4.0_beta1-r1/work/krusader-2.4.0-beta1/krusader/main.cpp:320

Possible duplicates by query: bug 279338, bug 274483.

Reported using DrKonqi
Comment 1 Jan Lepper 2012-08-13 13:31:05 UTC
I can reproduce this, when I
1. open the context menu of a file
2. the file is deleted in the background while the menu is still open
(it doesn't matter if the file is re-created  afterwards)
Comment 2 Jan Lepper 2012-08-13 13:35:48 UTC
submitted too early - here it is again:

I can reproduce this, when I
1. open the context menu of a file
2. the file is deleted in the background while the menu is still open
  (it doesn't matter if the file is re-created immediately afterwards)
3, select open / open with from the menu

Is it posible that this happened in your case ?
Comment 3 farmboy0 2012-08-14 19:19:53 UTC
I am not sure it sounds similar though. Not sure why the file should have been deleted and created again in my case.
Comment 4 Jan Lepper 2012-08-19 15:44:20 UTC
I found out this also happen when a lot of files are created in a short time,  which most likely happened in you case.
The cause is the same as for bug 274483 - now fixed.
Marking as duplicate.

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