Bug 497321

Summary: Krusader crashes on quit from editor with :wq
Product: [Applications] krusader Reporter: Vladimir Eremeev <wl2776>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: CONFIRMED ---    
Severity: crash CC: alex.bikadorov, krusader-bugs-null
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Vladimir Eremeev 2024-12-11 11:18:08 UTC
Application: krusader (2.8.1 "A New Day")

Qt Version: 5.15.13
Frameworks Version: 5.115.0
Operating System: Linux 6.8.0-50-generic x86_64
Windowing System: X11
Distribution: Ubuntu 24.04.1 LTS
DrKonqi: 5.27.11 [KCrashBackend]

-- Information about the crash:
Configure embedded text editor to work in Vi mode.
Open a file in the embedded text editor.
Make edits.
Save and quit like with Vim by pressing `:wq`

The crash can be reproduced every time.

-- Backtrace:
Application: Krusader (krusader), signal: Segmentation fault

[KCrash Handler]
#4  0x0000777f8d8c00ef in ?? () from /lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#5  0x0000777fc2706343 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x0000777fc336bd45 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x0000777fc26d8118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x0000777fc26db94b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x0000777fc2735c0f in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x0000777fc0f145b5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x0000777fc0f73717 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x0000777fc0f13a53 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x0000777fc2735279 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x0000777fc26d6a7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x0000777fc26df3e8 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00005cee8e74c283 in ?? ()
#17 0x0000777fc1c2a1ca in __libc_start_call_main (main=main@entry=0x5cee8e748ae0, argc=argc@entry=3, argv=argv@entry=0x7ffdc2890a38) at ../sysdeps/nptl/libc_start_call_main.h:58
#18 0x0000777fc1c2a28b in __libc_start_main_impl (main=0x5cee8e748ae0, argc=3, argv=0x7ffdc2890a38, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdc2890a28) at ../csu/libc-start.c:360
#19 0x00005cee8e74dae5 in ?? ()
[Inferior 1 (process 2802) detached]

Reported using DrKonqi
Comment 1 Alex Bikadorov 2024-12-14 12:18:05 UTC
With Krusader master (the KF6 port) there is no crash for ":wq" and ":q" but instead nothing happens. So, something doesn't work.

The "Vi mode" is an inbuild functionality of KParts. It is also included in Kate and KWrite but there the quit commands work as expected.
Maybe some signal/slot connection is missing.