Bug 341993

Summary: Krusader krashes if krviewer is closed via Alt+F4 key combination
Product: [Applications] krusader Reporter: Laci <laci357>
Component: krviewerAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: davide, krusader-bugs-null
Priority: NOR    
Version First Reported In: 2.4.0-beta1 "Migration"   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Laci 2014-12-18 06:35:44 UTC
Opening a file via F3 (krviewer) and then closing the viewer via Alt+F4 key combination makes Krusader to crash.

Reproducible: Always

Steps to Reproduce:
1. Open a .html or .txt file using the F3 key (opens the file via krviewer by default)
2. Close the file using the Alt+F4 key combination.

Actual Results:  
Krusader crashes and the bug report assistant shows up. 

Expected Results:  
Close krviewer (and all of its tabs if multiple files were viewed, so multiple tabs were open) 

KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.4.0-030400-generic x86_64
Distribution: elementary OS Luna

-- Backtrace:
Application: Krusader (krusader), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f40c3649780 (LWP 12180))]

Thread 4 (Thread 0x7f40b91e5700 (LWP 12182)):
#0  0x00007f40c9c75933 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f40c663dff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f40c663e45a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f40b91ea98b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f40c665f9b5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f40c79f4e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f40c9c812ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f40b89e4700 (LWP 12183)):
#0  0x00007f40c9c75933 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f40c663dff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f40c663e45a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f40c034e5e6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f40c665f9b5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f40c79f4e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f40c9c812ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f40aa690700 (LWP 12184)):
#0  0x00007f40c663d8b0 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f40c663df6a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f40c663e124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f40ca970426 in QEventDispatcherGlib::processEvents (this=0x7f40a40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f40ca93fc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f40ca93fed7 in QEventLoop::exec (this=0x7f40aa68fdd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f40ca83efa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f40ca91f9ff in QInotifyFileSystemWatcherEngine::run (this=0xf2b0b0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f40ca841fcb in QThreadPrivate::start (arg=0xf2b0b0) at thread/qthread_unix.cpp:298
#9  0x00007f40c79f4e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00007f40c9c812ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f40c3649780 (LWP 12180)):
[KCrash Handler]
#6  parent (this=0x14cf280) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:273
#7  parentWidget (this=0x14cf280) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:1033
#8  QWidget::window (this=0x14cf280) at kernel/qwidget.cpp:4334
#9  0x00007f40cae6459a in QApplicationPrivate::dispatchEnterLeave (enter=0xfbd520, leave=0x14cf280) at kernel/qapplication.cpp:2753
#10 0x00007f40caee2bab in QApplication::x11ProcessEvent (this=0x7fff41bbdc40, event=0x7fff41bbd500) at kernel/qapplication_x11.cpp:3730
#11 0x00007f40caf0c112 in x11EventSourceDispatch (s=0x937400, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#12 0x00007f40c663dd13 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007f40c663e060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007f40c663e124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007f40ca9703bf in QEventDispatcherGlib::processEvents (this=0x904b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#16 0x00007f40caf0bd9e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#17 0x00007f40ca93fc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#18 0x00007f40ca93fed7 in QEventLoop::exec (this=0x7fff41bbd8a0, flags=...) at kernel/qeventloop.cpp:204
#19 0x00007f40ca944f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#20 0x000000000044c46f in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/krusader-2.4.0~beta1/krusader/main.cpp:320

Possible duplicates by query: bug 330767.

Report to https://bugs.kde.org
Comment 1 Davide Gianforte 2016-12-25 21:09:46 UTC
Can you reproduce this on a newer version? 2.5.0 or at least 2.4.0-beta3.

Thanks.
Comment 2 Davide Gianforte 2017-07-15 08:11:43 UTC
No response - closing.