Bug 420807 - Krusader crashes when editing a text file
Summary: Krusader crashes when editing a text file
Status: RESOLVED WORKSFORME
Alias: None
Product: krusader
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-04-30 15:07 UTC by DaBler
Modified: 2022-11-07 05:09 UTC (History)
4 users (show)

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


Attachments
New crash information added by DrKonqi (5.03 KB, text/plain)
2020-05-04 09:41 UTC, DaBler
Details
The file on which it crashed. (4.82 KB, application/zip)
2020-05-04 09:43 UTC, DaBler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DaBler 2020-04-30 15:07:11 UTC
Application: krusader (2.7.2 "Peace of Mind")
 (Compiled from sources)
Qt Version: 5.14.1
Frameworks Version: 5.67.0
Operating System: Linux 5.4.28-gentoo-6 x86_64
Distribution: Gentoo/Linux

-- Information about the crash:
Krusader crashes during editing a text file in internal editor. I just pressed a key and that was it.

-- Backtrace:
Application: Krusader (krusader), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f51362f07c0 (LWP 38933))]

Thread 2 (Thread 0x7f512daa1700 (LWP 38936)):
#0  0x00007f51394ee15f in __GI___poll (fds=0x7f512801c420, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f51385798ee in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f512801c420, timeout=<optimized out>, context=0x7f5128000c20) at ../glib-2.62.6/glib/gmain.c:4253
#2  g_main_context_iterate (context=context@entry=0x7f5128000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.62.6/glib/gmain.c:3949
#3  0x00007f5138579a0f in g_main_context_iteration (context=0x7f5128000c20, may_block=may_block@entry=1) at ../glib-2.62.6/glib/gmain.c:4015
#4  0x00007f5139c477ab in QEventDispatcherGlib::processEvents (this=0x7f5128000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f5139beff8b in QEventLoop::exec (this=this@entry=0x7f512daa0db0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#6  0x00007f5139a3af4e in QThread::exec (this=this@entry=0x7f513ad3eda0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#7  0x00007f513acb9557 in QDBusConnectionManager::run (this=0x7f513ad3eda0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#8  0x00007f5139a3bf9f in QThreadPrivate::start (arg=0x7f513ad3eda0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:342
#9  0x00007f5138fc6027 in start_thread (arg=<optimized out>) at pthread_create.c:479
#10 0x00007f51394f8c4f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f51362f07c0 (LWP 38933)):
[KCrash Handler]
#7  0x00007f5134622abb in QV4::MarkStack::drain (this=this@entry=0x7ffd8ad629e0) at ../../include/QtQml/5.14.1/QtQml/private/../../../../../src/qml/memory/qv4heap_p.h:73
#8  0x00007f51346ac251 in QV4::PersistentValueStorage::mark (this=<optimized out>, markStack=markStack@entry=0x7ffd8ad629e0) at jsruntime/qv4persistent.cpp:243
#9  0x00007f5134622e3b in QV4::MemoryManager::collectRoots (this=this@entry=0x55687b4063a0, markStack=markStack@entry=0x7ffd8ad629e0) at memory/qv4mm.cpp:876
#10 0x00007f513462305d in QV4::MemoryManager::mark (this=this@entry=0x55687b4063a0) at memory/qv4mm.cpp:917
#11 0x00007f5134624bf6 in QV4::MemoryManager::runGC (this=0x55687b4063a0) at memory/qv4mm.cpp:1052
#12 0x00007f5134626e88 in QV4::MemoryManager::allocate (size=96, allocator=0x55687b4063b0, this=this@entry=0x55687b4063a0) at ../../include/QtQml/5.14.1/QtQml/private/../../../../../src/qml/memory/qv4mm_p.h:328
#13 QV4::MemoryManager::allocData (this=this@entry=0x55687b4063a0, size=size@entry=96) at memory/qv4mm.cpp:802
#14 0x00007f5134626ee2 in QV4::MemoryManager::allocObjectWithMemberData (this=0x55687b4063a0, vtable=<optimized out>, nMembers=<optimized out>) at memory/qv4mm.cpp:825
#15 0x00007f5134759441 in QV4::MemoryManager::allocateObject<QV4::ArgumentsObject> (ic=0x7f5125a51200, this=<optimized out>) at jsruntime/qv4argumentsobject_p.h:93
#16 QV4::MemoryManager::allocObject<QV4::ArgumentsObject, QV4::CppStackFrame*> (ic=0x7f5125a51200, this=<optimized out>) at ../../include/QtQml/5.14.1/QtQml/private/../../../../../src/qml/memory/qv4mm_p.h:227
#17 QV4::Runtime::CreateMappedArgumentsObject::call (engine=<optimized out>) at jsruntime/qv4runtime.cpp:1917
#18 0x00007f512780d06e in ?? ()
#19 0x0000000000000000 in ?? ()
[Inferior 1 (process 38933) detached]

Reported using DrKonqi
Comment 1 Davide Gianforte 2020-05-01 20:44:48 UTC
Can you post the file you are editing? The use of QML is strange.
Comment 2 DaBler 2020-05-04 09:41:25 UTC
Created attachment 128128 [details]
New crash information added by DrKonqi

krusader (2.7.2 "Peace of Mind") using Qt 5.14.1

Krusader crashes repeatedly when editing text files. These are C source codes.

-- Backtrace (Reduced):
#7  0x00007fcd9e9fcd91 in QV4::Heap::Base::mark (markStack=0x7ffd5f8b2770, this=0x7fcd8fbc1758) at ../../include/QtQml/5.14.1/QtQml/private/../../../../../src/qml/memory/qv4mmdefs_p.h:123
#8  QV4::Managed::mark (markStack=0x7ffd5f8b2770, this=0x7fcd8fbc1768) at jsruntime/qv4managed_p.h:204
#9  QV4::MemoryManager::collectFromJSStack (this=this@entry=0x557196544e10, markStack=markStack@entry=0x7ffd5f8b2770) at memory/qv4mm.cpp:1221
#10 0x00007fcd9e9fce2c in QV4::MemoryManager::collectRoots (this=this@entry=0x557196544e10, markStack=markStack@entry=0x7ffd5f8b2770) at memory/qv4mm.cpp:873
#11 0x00007fcd9e9fd05d in QV4::MemoryManager::mark (this=this@entry=0x557196544e10) at memory/qv4mm.cpp:917
Comment 3 DaBler 2020-05-04 09:43:20 UTC
Created attachment 128129 [details]
The file on which it crashed.

Here is the required file.
Comment 4 Davide Gianforte 2020-05-08 10:33:13 UTC
Thanks.
Comment 5 Toni Asensi Esteve 2020-05-08 22:47:19 UTC
Thanks for reporting, DaBler. The file didn't cause a crash in my case using the git version of Krusader. 

Would you follow the steps of
    https://commits.kde.org/krusader?path=INSTALL
to use the git version of Krusader and perform the tests?
Comment 6 Davide Gianforte 2020-05-11 05:32:46 UTC
Also, can you try to repeat the same actions on Kate?

Thanks
Comment 7 DaBler 2020-05-13 08:23:09 UTC
To clarify the situation: Krusader will not crash again when I open the attached file. It falls sporadically when editing C source codes. However, when I open the problematic file again, everything works fine. The crash occurs approximately once a week (I use Krusader intensively every day.)
Comment 8 Justin Zobel 2022-10-08 00:38:50 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 9 Bug Janitor Service 2022-10-23 05:00:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2022-11-07 05:09:32 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!