Bug 474451 - Crash overwriting files
Summary: Crash overwriting files
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.110.0
Platform: Arch Linux Linux
: VHI crash
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords: drkonqi
: 474429 474466 474491 474512 474521 474536 474555 474654 474850 474902 476432 485191 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-09-12 13:03 UTC by ultralux97
Modified: 2024-04-07 21:56 UTC (History)
22 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.111


Attachments
New crash information added by DrKonqi (12.29 KB, text/plain)
2023-09-14 22:48 UTC, Kotz
Details
New crash information added by DrKonqi (11.12 KB, text/plain)
2023-09-15 07:26 UTC, zincles
Details
New crash information added by DrKonqi (16.47 KB, text/plain)
2023-09-15 09:10 UTC, thibaud.laurent
Details
New crash information added by DrKonqi (32.12 KB, text/plain)
2023-09-15 18:43 UTC, fanzhuyifan
Details
New crash information added by DrKonqi (32.32 KB, text/plain)
2023-09-15 18:50 UTC, fanzhuyifan
Details
New crash information added by DrKonqi (8.84 KB, text/plain)
2023-09-17 16:45 UTC, Andalib Bin Haque
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ultralux97 2023-09-12 13:03:55 UTC
Application: okular (23.08.0)

Qt Version: 5.15.10
Frameworks Version: 5.110.0
Operating System: Linux 6.5.2-1-clear x86_64
Windowing System: Wayland
Distribution: Arch Linux
DrKonqi: 5.27.7 [KCrashBackend]

-- Information about the crash:
Steps to reproduce:
1. Open PDF file (saved from exporting a docx from Word if this is relevant)
2. Open typewriter annotation, make some text.
3. Save 

The saving crashes it.

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#6  QString::QString(QString const&) (other=<error reading variable: Cannot access memory at address 0x8>, this=0x55e38737d980, this=<optimized out>, other=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1093
#7  KMountPoint::mountType() const (this=0x0) at /usr/src/debug/kio/kio-5.110.0/src/core/kmountpoint.cpp:411
#8  0x000055e3b494a87d in isOnCifsMount (filePath=...) at /usr/include/qt/QtCore/qshareddata.h:161
#9  FileProtocol::copy(QUrl const&, QUrl const&, int, QFlags<KIO::JobFlag>) (this=0x55e379f75b70, srcUrl=..., destUrl=<optimized out>, _mode=-1, _flags=...) at /usr/src/debug/kio/kio-5.110.0/src/ioslaves/file/file_unix.cpp:743
#10 0x000055e3db31c8db in KIO::SlaveBase::dispatch(int, QByteArray const&) (this=0x55e379f75b80, command=<optimized out>, data=...) at /usr/src/debug/kio/kio-5.110.0/src/core/slavebase.cpp:1364
#11 0x000055e3db31520e in KIO::SlaveBase::dispatchLoop() (this=0x55e379f75b80) at /usr/src/debug/kio/kio-5.110.0/src/core/slavebase.cpp:342
#12 0x000055e3db395e87 in KIO::WorkerThread::run() (this=0x55e3ded98300) at /usr/src/debug/kio/kio-5.110.0/src/core/workerthread.cpp:62
#13 0x000055e3d98f35da in operator() (__closure=<optimized out>) at thread/qthread_unix.cpp:350
#14 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at thread/qthread_unix.cpp:287
#15 QThreadPrivate::start(void*) (arg=0x55e3ded98300) at thread/qthread_unix.cpp:310
#16 0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#17 0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 11 (Thread 0x55e3c4eb86c0 (LWP 6334) "okular:sh5"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000055e3d908952f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000055e3d908bd40 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e3dc112268, cond=0x55e3dc112290) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55e3dc112290, mutex=0x55e3dc112268) at pthread_cond_wait.c:618
#5  0x000055e3cc2c794c in cnd_wait () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.7/src/util/u_queue.c:290
#7  0x000055e3cc31485c in impl_thrd_routine() () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:67
#8  0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 10 (Thread 0x55e3c56b96c0 (LWP 6333) "okular:sh4"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000055e3d908952f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000055e3d908bd40 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e3dc112268, cond=0x55e3dc112290) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55e3dc112290, mutex=0x55e3dc112268) at pthread_cond_wait.c:618
#5  0x000055e3cc2c794c in cnd_wait () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.7/src/util/u_queue.c:290
#7  0x000055e3cc31485c in impl_thrd_routine() () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:67
#8  0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 9 (Thread 0x55e3c5eba6c0 (LWP 6332) "okular:sh3"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000055e3d908952f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000055e3d908bd40 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e3dc112268, cond=0x55e3dc112290) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55e3dc112290, mutex=0x55e3dc112268) at pthread_cond_wait.c:618
#5  0x000055e3cc2c794c in cnd_wait () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.7/src/util/u_queue.c:290
#7  0x000055e3cc31485c in impl_thrd_routine() () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:67
#8  0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 8 (Thread 0x55e3c66bb6c0 (LWP 6331) "okular:sh2"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000055e3d908952f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000055e3d908bd40 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e3dc112268, cond=0x55e3dc112290) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55e3dc112290, mutex=0x55e3dc112268) at pthread_cond_wait.c:618
#5  0x000055e3cc2c794c in cnd_wait () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.7/src/util/u_queue.c:290
#7  0x000055e3cc31485c in impl_thrd_routine() () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:67
#8  0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 7 (Thread 0x55e3c6ebc6c0 (LWP 6330) "okular:sh1"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000055e3d908952f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000055e3d908bd40 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e3dc112268, cond=0x55e3dc112290) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55e3dc112290, mutex=0x55e3dc112268) at pthread_cond_wait.c:618
#5  0x000055e3cc2c794c in cnd_wait () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.7/src/util/u_queue.c:290
#7  0x000055e3cc31485c in impl_thrd_routine() () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:67
#8  0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 6 (Thread 0x55e3c76bd6c0 (LWP 6329) "okular:sh0"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000055e3d908952f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55e3dc1122b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000055e3d908bd40 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e3dc112268, cond=0x55e3dc112290) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55e3dc112290, mutex=0x55e3dc112268) at pthread_cond_wait.c:618
#5  0x000055e3cc2c794c in cnd_wait () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.7/src/util/u_queue.c:290
#7  0x000055e3cc31485c in impl_thrd_routine() () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:67
#8  0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 5 (Thread 0x55e3c7ebe6c0 (LWP 6328) "okular:disk$0"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55e3dc11a8e0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000055e3d908952f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55e3dc11a8e0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000055e3d908bd40 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e3dc11a890, cond=0x55e3dc11a8b8) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55e3dc11a8b8, mutex=0x55e3dc11a890) at pthread_cond_wait.c:618
#5  0x000055e3cc2c794c in cnd_wait () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.7/src/util/u_queue.c:290
#7  0x000055e3cc31485c in impl_thrd_routine() () at ../mesa-23.1.7/src/c11/impl/threads_posix.c:67
#8  0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 4 (Thread 0x55e3cebfe6c0 (LWP 6327) "WaylandEventThr"):
#1  0x000055e3d8014d9d in poll (__timeout=-1, __nfds=2, __fds=0x55e3cebfdcb0) at /usr/include/bits/poll2.h:39
#2  QtWaylandClient::EventThread::run() (this=0x55e3dc06bb90) at /usr/src/debug/qt5-wayland/qtwayland/src/client/qwaylanddisplay.cpp:210
#3  0x000055e3d98f35da in operator() (__closure=<optimized out>) at thread/qthread_unix.cpp:350
#4  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at thread/qthread_unix.cpp:287
#5  QThreadPrivate::start(void*) (arg=0x55e3dc06bb90) at thread/qthread_unix.cpp:310
#6  0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#7  0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 3 (Thread 0x55e3cf3ff6c0 (LWP 6326) "WaylandEventThr"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55e3dc06b490, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000055e3d908952f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55e3dc06b490, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000055e3d908bd40 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e3dc06b440, cond=0x55e3dc06b468) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55e3dc06b468, mutex=0x55e3dc06b440) at pthread_cond_wait.c:618
#5  0x000055e3d98fb364 in QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x55e3dc06b440) at thread/qwaitcondition_unix.cpp:146
#6  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=this@entry=0x55e3dc049e00, mutex=mutex@entry=0x55e3dc049df8, deadline=...) at thread/qwaitcondition_unix.cpp:225
#7  0x000055e3d8014d44 in QtWaylandClient::EventThread::waitForReading() (this=0x55e3dc049dc0) at /usr/src/debug/qt5-wayland/qtwayland/src/client/qwaylanddisplay.cpp:244
#8  QtWaylandClient::EventThread::run() (this=0x55e3dc049dc0) at /usr/src/debug/qt5-wayland/qtwayland/src/client/qwaylanddisplay.cpp:208
#9  0x000055e3d98f35da in operator() (__closure=<optimized out>) at thread/qthread_unix.cpp:350
#10 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at thread/qthread_unix.cpp:287
#11 QThreadPrivate::start(void*) (arg=0x55e3dc049dc0) at thread/qthread_unix.cpp:310
#12 0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#13 0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 2 (Thread 0x55e3d4bff6c0 (LWP 6325) "QDBusConnection"):
#1  0x000055e3d90d571d in __GI___clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/sysv/linux/clock_gettime.c:42
#2  0x000055e3d9ae45ea in qt_clock_gettime (ts=0x55e3d4bfe9a0, clock=1) at kernel/qelapsedtimer_unix.cpp:111
#3  do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at kernel/qelapsedtimer_unix.cpp:166
#4  qt_gettime() () at kernel/qelapsedtimer_unix.cpp:175
#5  QTimerInfoList::updateCurrentTime() (this=this@entry=0x55e3d00013c0) at kernel/qtimerinfo_unix.cpp:91
#6  0x000055e3d9ae4d4a in QTimerInfoList::timerWait(timespec&) (this=this@entry=0x55e3d00013c0, tm=...) at kernel/qtimerinfo_unix.cpp:388
#7  0x000055e3d9ae4fef in timerSourcePrepareHelper (timeout=0x55e3d4bfea74, src=0x55e3d0001360) at kernel/qeventdispatcher_glib.cpp:133
#8  timerSourcePrepare(GSource*, gint*) (source=source@entry=0x55e3d0001360, timeout=timeout@entry=0x55e3d4bfea74) at kernel/qeventdispatcher_glib.cpp:166
#9  0x000055e3d850e40b in g_main_context_prepare_unlocked.part.0.lto_priv.0 (context=0x55e3d0000c50, priority=0x55e3d4bfeb38) at ../glib/glib/gmain.c:3840
#10 0x000055e3d856c099 in g_main_context_prepare_unlocked (priority=0x55e3d4bfeb38, context=0x55e3d0000c50) at ../glib/glib/gmain.c:3780
#11 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x55e3d0000c50, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4330
#12 0x000055e3d850c112 in g_main_context_iteration (context=0x55e3d0000c50, may_block=1) at ../glib/glib/gmain.c:4414
#13 0x000055e3d9aeb53f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55e3d0000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#14 0x000055e3d9a9b404 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55e3d4bfec90, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#15 0x000055e3d98f73b6 in QThread::exec() (this=this@entry=0x55e3dae68660 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#16 0x000055e3dae00a9a in QDBusConnectionManager::run() (this=0x55e3dae68660 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at /usr/src/debug/qt5-base/qtbase/src/dbus/qdbusconnection.cpp:179
#17 0x000055e3d98f35da in operator() (__closure=<optimized out>) at thread/qthread_unix.cpp:350
#18 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at thread/qthread_unix.cpp:287
#19 QThreadPrivate::start(void*) (arg=0x55e3dae68660 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:310
#20 0x000055e3d908c9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#21 0x000055e3d9110dfc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 1 (Thread 0x55e3d4f6b280 (LWP 6324) "okular"):
#1  0x000055e3d850ef6b in g_main_context_check_unlocked (context=0x55e3d0000ec0, max_priority=<optimized out>, fds=<optimized out>, n_fds=<optimized out>) at ../glib/glib/gmain.c:4147
#2  0x000055e3d856c120 in g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x55e3d0000ec0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4346
#3  0x000055e3d850c112 in g_main_context_iteration (context=0x55e3d0000ec0, may_block=1) at ../glib/glib/gmain.c:4414
#4  0x000055e3d9aeb51c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55e3dc06b6e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x000055e3d9a9b404 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ffee57d0e20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#6  0x000055e3daece20e in KJob::exec() (this=this@entry=0x55e3dcf08b40) at /usr/include/qt/QtCore/qflags.h:121
#7  0x000055e3c4415703 in Okular::Part::saveAs(QUrl const&, QFlags<Okular::Part::SaveAsFlag>) (this=this@entry=0x55e3dc222860, saveUrl=..., flags=...) at /usr/src/debug/okular/okular-23.08.0/part/part.cpp:2903
#8  0x000055e3c4416d85 in Okular::Part::saveAs(QUrl const&) (saveUrl=..., this=0x55e3dc222860) at /usr/src/debug/okular/okular-23.08.0/part/part.cpp:2639
#9  Okular::Part::saveFile() (this=0x55e3dc222860) at /usr/src/debug/okular/okular-23.08.0/part/part.cpp:2577
#10 Okular::Part::saveFile() (this=0x55e3dc222860) at /usr/src/debug/okular/okular-23.08.0/part/part.cpp:2572
#11 0x000055e3d9ad1637 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffee57d1110, r=<optimized out>, this=0x55e3dc4893a0, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#12 doActivate<false>(QObject*, int, void**) (sender=0x55e3dc49f6b0, signal_index=4, argv=0x7ffee57d1110) at kernel/qobject.cpp:3925
#13 0x000055e3da76bbb7 in QAction::triggered(bool) (this=this@entry=0x55e3dc49f6b0, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#14 0x000055e3da77160b in QAction::activate(QAction::ActionEvent) (this=0x55e3dc49f6b0, event=<optimized out>) at kernel/qaction.cpp:1161
#15 0x000055e3da7716de in QAction::event(QEvent*) (e=<optimized out>, this=<optimized out>) at kernel/qaction.cpp:1086
#16 QAction::event(QEvent*) (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1075
#17 0x000055e3da77893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55e3dc49f6b0, e=0x7ffee57d12a0) at kernel/qapplication.cpp:3640
#18 0x000055e3d9a9c6f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55e3dc49f6b0, event=0x7ffee57d12a0) at kernel/qcoreapplication.cpp:1064
#19 0x000055e3d9a9c763 in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#20 0x000055e3d9f76fc6 in QShortcutMap::dispatchEvent(QKeyEvent*) (this=this@entry=0x55e3dc044718, e=e@entry=0x7ffee57d1360) at kernel/qshortcutmap.cpp:675
#21 0x000055e3d9f773b5 in QShortcutMap::tryShortcut(QKeyEvent*) (this=0x55e3dc044718, e=0x7ffee57d1360) at kernel/qshortcutmap.cpp:343
#22 0x000055e3d9f2bdf8 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) (window=<optimized out>, timestamp=1889200, keyCode=83, modifiers=..., nativeScanCode=39, nativeVirtualKey=115, nativeModifiers=4, text=..., autorepeat=false, count=1) at kernel/qwindowsysteminterface.cpp:477
#23 0x000055e3d9f45512 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (e=0x55e3dcd142f0) at kernel/qguiapplication.cpp:2398
#24 0x000055e3d9f2a6c5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=...) at kernel/qwindowsysteminterface.cpp:1169
#25 0x000055e3d8050c25 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /usr/lib/libQt5WaylandClient.so.5
#26 0x000055e3d850df19 in g_main_dispatch (context=0x55e3d0000ec0) at ../glib/glib/gmain.c:3476
#27 0x000055e3d856c2b7 in g_main_context_dispatch_unlocked (context=0x55e3d0000ec0) at ../glib/glib/gmain.c:4284
#28 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x55e3d0000ec0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4349
#29 0x000055e3d850c112 in g_main_context_iteration (context=0x55e3d0000ec0, may_block=1) at ../glib/glib/gmain.c:4414
#30 0x000055e3d9aeb51c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55e3dc06b6e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#31 0x000055e3d9a9b404 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffee57d1710, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#32 0x000055e3d9a9c8a3 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#33 0x000055e3d9f3bef2 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#34 0x000055e3da776cda in QApplication::exec() () at kernel/qapplication.cpp:2832
#35 0x000055e3db66d4ca in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular/okular-23.08.0/shell/main.cpp:109
[Inferior 1 (process 6324) detached]

Reported using DrKonqi
Comment 1 Antonio Rojas 2023-09-12 18:22:31 UTC
*** Bug 474429 has been marked as a duplicate of this bug. ***
Comment 2 Antonio Rojas 2023-09-13 06:37:21 UTC
*** Bug 474466 has been marked as a duplicate of this bug. ***
Comment 3 Antonio Rojas 2023-09-13 15:50:45 UTC
*** Bug 474491 has been marked as a duplicate of this bug. ***
Comment 4 Antonio Rojas 2023-09-14 06:24:41 UTC
*** Bug 474512 has been marked as a duplicate of this bug. ***
Comment 5 Antonio Rojas 2023-09-14 12:41:49 UTC
*** Bug 474521 has been marked as a duplicate of this bug. ***
Comment 6 Kotz 2023-09-14 22:48:57 UTC
Created attachment 161625 [details]
New crash information added by DrKonqi

dolphin (23.08.0) using Qt 5.15.10

Steps to reproduce:
1- Create two files, let's say "test1.txt" and "test2.txt".
2- Select "test1.txt", hit Ctrl+C and Ctrl+V.
3- Dolphin will ask what you want to call the new copy, type "test2.txt".
4- Dolphin will ask if you want to overwrite the file.
5- Overwrite it.
6- Dolphin crashes and no file operation is performed.

-- Backtrace (Reduced):
#6  QString::QString(QString const&) (other=<error reading variable: Cannot access memory at address 0x8>, this=0x7f2929f7a980, this=<optimized out>, other=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1093
#7  KMountPoint::mountType() const (this=0x0) at /usr/src/debug/kio/kio-5.110.0/src/core/kmountpoint.cpp:411
#8  0x00007f2940f3c87d in isOnCifsMount (filePath=...) at /usr/include/qt/QtCore/qshareddata.h:161
#9  FileProtocol::copy(QUrl const&, QUrl const&, int, QFlags<KIO::JobFlag>) (this=0x7f29080012d0, srcUrl=..., destUrl=<optimized out>, _mode=420, _flags=...) at /usr/src/debug/kio/kio-5.110.0/src/ioslaves/file/file_unix.cpp:743
#10 0x00007f294aa2e8db in KIO::SlaveBase::dispatch(int, QByteArray const&) (this=0x7f29080012e0, command=<optimized out>, data=...) at /usr/src/debug/kio/kio-5.110.0/src/core/slavebase.cpp:1364
Comment 7 Antonio Rojas 2023-09-15 06:38:24 UTC
*** Bug 474536 has been marked as a duplicate of this bug. ***
Comment 8 zincles 2023-09-15 07:26:09 UTC
Created attachment 161627 [details]
New crash information added by DrKonqi

dolphin (23.08.1) using Qt 5.15.10

Dolphin crashes while trying to override any file.
for example:
create a file at ~/folder1/sth.txt;
create another at ~/folder2/sth.txt;
while I tries to copy the first file to overwrite the second file, while I click the "overwrite" button, the dolphin would immediately crash.
this problem seems to be happend on many other arch linux users. I also tried flatpak version of dolphin, and same bug happened.

-- Backtrace (Reduced):
#6  QString::QString(QString const&) (other=<error reading variable: Cannot access memory at address 0x8>, this=0x7fc869f7a980, this=<optimized out>, other=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1093
#7  KMountPoint::mountType() const (this=0x0) at /usr/src/debug/kio/kio-5.110.0/src/core/kmountpoint.cpp:411
#8  0x00007fc87616987d in isOnCifsMount (filePath=...) at /usr/include/qt/QtCore/qshareddata.h:161
#9  FileProtocol::copy(QUrl const&, QUrl const&, int, QFlags<KIO::JobFlag>) (this=0x7fc82c0012d0, srcUrl=..., destUrl=<optimized out>, _mode=420, _flags=...) at /usr/src/debug/kio/kio-5.110.0/src/ioslaves/file/file_unix.cpp:743
#10 0x00007fc89c5998db in KIO::SlaveBase::dispatch(int, QByteArray const&) (this=0x7fc82c0012e0, command=<optimized out>, data=...) at /usr/src/debug/kio/kio-5.110.0/src/core/slavebase.cpp:1364
Comment 9 Bug Janitor Service 2023-09-15 07:48:42 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1411
Comment 10 thibaud.laurent 2023-09-15 09:10:59 UTC
Created attachment 161630 [details]
New crash information added by DrKonqi

dolphin (23.08.1) using Qt 5.15.10

KDE Dolphin seems to crash whenever I try to cut / paste and replace (or copy / paste and replace) files across two different drives. This does not seem to happen on the same drive.

-- Backtrace (Reduced):
#6  QString::QString(QString const&) (other=<error reading variable: Cannot access memory at address 0x8>, this=0x7ff9fcad9980, this=<optimized out>, other=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1093
#7  KMountPoint::mountType() const (this=0x0) at /usr/src/debug/kio/kio-5.110.0/src/core/kmountpoint.cpp:411
#8  0x00007ffa1d5d587d in isOnCifsMount (filePath=...) at /usr/include/qt/QtCore/qshareddata.h:161
#9  FileProtocol::copy(QUrl const&, QUrl const&, int, QFlags<KIO::JobFlag>) (this=0x7ff9d8000d70, srcUrl=..., destUrl=<optimized out>, _mode=420, _flags=...) at /usr/src/debug/kio/kio-5.110.0/src/ioslaves/file/file_unix.cpp:743
#10 0x00007ffa3d67e8db in KIO::SlaveBase::dispatch(int, QByteArray const&) (this=0x7ff9d8000d80, command=<optimized out>, data=...) at /usr/src/debug/kio/kio-5.110.0/src/core/slavebase.cpp:1364
Comment 11 mike 2023-09-15 09:27:11 UTC
something that might help:

My system is on btrfs. The crash (not okular but kdevelop) crashes when copying a file to /tmp

if I do mount -t tmpfs none /tmp the crash does not happen (KMountPoint::List::findByPath works)

I have my system running off of a cryptsetup lvm. Running stat on / gives me 0:28 whereas mountinfo shows 0:26. guess that's the root cause of the issue..
Comment 12 mike 2023-09-15 09:33:40 UTC
(In reply to mike from comment #11)
> something that might help:
> 
> My system is on btrfs. The crash (not okular but kdevelop) crashes when
> copying a file to /tmp
> 
> if I do mount -t tmpfs none /tmp the crash does not happen
> (KMountPoint::List::findByPath works)
> 
> I have my system running off of a cryptsetup lvm. Running stat on / gives me
> 0:28 whereas mountinfo shows 0:26. guess that's the root cause of the issue..

actually btrfs over lvm over cryptsetup. Guess in that case st_dev in stat does not match mountinfo, so the assumption that mountPtr->deviceId() == buff.st_dev matches at least once is in practice wrong (don't know if this is how it should work or a kernel bug, but the kernel used in my setup is currently 6.2)
Comment 13 Kevin Ottens 2023-09-15 11:54:54 UTC
Git commit a6f7d3117f159f3e0a88ff08b5f69b9bc8612cf7 by Kevin Ottens, on behalf of Kevin Ottens.
Committed on 15/09/2023 at 13:34.
Pushed by ervin into branch 'master'.

Don't crash if KMountPoint gives nothing back while checking for CIFS

M  +3    -0    src/kioworkers/file/file_unix.cpp

https://invent.kde.org/frameworks/kio/-/commit/a6f7d3117f159f3e0a88ff08b5f69b9bc8612cf7
Comment 14 Antonio Rojas 2023-09-15 16:06:30 UTC
*** Bug 474555 has been marked as a duplicate of this bug. ***
Comment 15 fanzhuyifan 2023-09-15 18:43:25 UTC
Created attachment 161647 [details]
New crash information added by DrKonqi

okular (23.08.0) using Qt 5.15.10

Crashes when saving editted file, or when using save as to overwrite existing file. Does not crash when using save as to new file.

-- Backtrace (Reduced):
#6  QString::QString(QString const&) (other=<error reading variable: Cannot access memory at address 0x8>, this=0x7f1627f7e980, this=<optimized out>, other=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1093
#7  KMountPoint::mountType() const (this=0x0) at /usr/src/debug/kio/kio-5.110.0/src/core/kmountpoint.cpp:411
#8  0x00007f16900a587d in isOnCifsMount (filePath=...) at /usr/include/qt/QtCore/qshareddata.h:161
#9  FileProtocol::copy(QUrl const&, QUrl const&, int, QFlags<KIO::JobFlag>) (this=0x7f161c407f70, srcUrl=..., destUrl=<optimized out>, _mode=-1, _flags=...) at /usr/src/debug/kio/kio-5.110.0/src/ioslaves/file/file_unix.cpp:743
#10 0x00007f16c09b48db in KIO::SlaveBase::dispatch(int, QByteArray const&) (this=0x7f161c407f80, command=<optimized out>, data=...) at /usr/src/debug/kio/kio-5.110.0/src/core/slavebase.cpp:1364
Comment 16 fanzhuyifan 2023-09-15 18:50:34 UTC
Created attachment 161648 [details]
New crash information added by DrKonqi

okular (23.08.1) using Qt 5.15.10

crash on save, on save-as to existing file (overwrite). Does not crash on save-as to new file.

-- Backtrace (Reduced):
#6  QString::QString(QString const&) (other=<error reading variable: Cannot access memory at address 0x8>, this=0x7f8197f7e980, this=<optimized out>, other=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1093
#7  KMountPoint::mountType() const (this=0x0) at /usr/src/debug/kio/kio-5.110.0/src/core/kmountpoint.cpp:411
#8  0x00007f81c821387d in isOnCifsMount (filePath=...) at /usr/include/qt/QtCore/qshareddata.h:161
#9  FileProtocol::copy(QUrl const&, QUrl const&, int, QFlags<KIO::JobFlag>) (this=0x7f8140317b20, srcUrl=..., destUrl=<optimized out>, _mode=-1, _flags=...) at /usr/src/debug/kio/kio-5.110.0/src/ioslaves/file/file_unix.cpp:743
#10 0x00007f81eab2b8db in KIO::SlaveBase::dispatch(int, QByteArray const&) (this=0x7f8140317b30, command=<optimized out>, data=...) at /usr/src/debug/kio/kio-5.110.0/src/core/slavebase.cpp:1364
Comment 17 Kevin Ottens 2023-09-15 19:01:27 UTC
Git commit 48322f44323a1fc09305d66d9093fe6c3780709e by Kevin Ottens, on behalf of Kevin Ottens.
Committed on 15/09/2023 at 19:00.
Pushed by ngraham into branch 'kf5'.

Don't crash if KMountPoint gives nothing back while checking for CIFS

M  +3    -0    src/ioslaves/file/file_unix.cpp

https://invent.kde.org/frameworks/kio/-/commit/48322f44323a1fc09305d66d9093fe6c3780709e
Comment 18 Andalib Bin Haque 2023-09-17 16:45:17 UTC
Created attachment 161676 [details]
New crash information added by DrKonqi

dolphin (23.08.0) using Qt 5.15.10

I was trying to overwrite some files in a directory, and it crashed. I tried repeatedly, but everytime it crashed. I am running Fedora KDE Spin, My Fielsystem is BTRFS. I have also tried with Krusader, and the crash happened there also.

-- Backtrace (Reduced):
#4  0x00007ff26e2cf054 in KMountPoint::mountType() const () from /lib64/libKF5KIOCore.so.5
#5  0x00007ff244023136 in FileProtocol::copy(QUrl const&, QUrl const&, int, QFlags<KIO::JobFlag>) () from /usr/lib64/qt5/plugins/kf5/kio/kio_file.so
#6  0x00007ff26e27cfba in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /lib64/libKF5KIOCore.so.5
#7  0x00007ff26e275a3d in KIO::SlaveBase::dispatchLoop() () from /lib64/libKF5KIOCore.so.5
#8  0x00007ff26e2f35e8 in KIO::WorkerThread::run() () from /lib64/libKF5KIOCore.so.5
Comment 19 Albert Astals Cid 2023-09-18 16:56:18 UTC
*** Bug 474654 has been marked as a duplicate of this bug. ***
Comment 20 GivenPurity 2023-09-19 00:49:04 UTC
(In reply to Albert Astals Cid from comment #19)
> *** Bug 474654 has been marked as a duplicate of this bug. ***

But I am running 23.08.1, long after this is "fixed". Still considered a duplicate?
Comment 21 mike 2023-09-19 05:50:25 UTC
(In reply to GivenPurity from comment #20)
> (In reply to Albert Astals Cid from comment #19)
> > *** Bug 474654 has been marked as a duplicate of this bug. ***
> 
> But I am running 23.08.1, long after this is "fixed". Still considered a
> duplicate?

This bug is not in kde gear but in kde frameworks. It was fixed in upstream development and will be release with kde frameworks 5.111 that has not been released yet.

This bug hits everyone who has kio 5.110 and copies (or overwrites) a file on a btrfs using a kde application that uses kio to do that.
This bug was introduced as a fix for the same operation but on cifs where a rename operation could fail.

Essentially it was done by looking up the mountpoint for the destination file and if that is cifs/smb it would behave different. The issue with btrfs is that the way the lookup is done does not work with that filesystem (still doesn't, but for the use case all that is needed is to know if the file is on cifs. A method in kio could not handle that case and exactly that was causing the crash)
Comment 22 Albert Astals Cid 2023-09-25 21:13:33 UTC
*** Bug 474850 has been marked as a duplicate of this bug. ***
Comment 23 Antonio Rojas 2023-09-26 14:16:43 UTC
*** Bug 474902 has been marked as a duplicate of this bug. ***
Comment 24 fanzhuyifan 2023-11-02 16:40:32 UTC
*** Bug 476432 has been marked as a duplicate of this bug. ***
Comment 25 mike 2023-11-03 09:55:55 UTC
For (k)ubuntu see https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765
if this gets more attention maybe someone will backport this to 23.10
Comment 26 rlaggren 2024-01-31 17:49:38 UTC
Same (exact) thing, opensuse 15.5

Why is this marked "Resolved Fixed" when it demonstrably is not? If there is a kludge to make it work, why is it not provided here?
Comment 27 rlaggren 2024-01-31 17:52:31 UTC
It hits me with ext4 file system.
Comment 28 fanzhuyifan 2024-01-31 18:04:10 UTC
(In reply to rlaggren from comment #26)
> Same (exact) thing, opensuse 15.5
> 
> Why is this marked "Resolved Fixed" when it demonstrably is not? If there is
> a kludge to make it work, why is it not provided here?

If you look carefully at the information fields at the top of the page, you can see that this is fixed in Frameworks version 5.111, with the commit fixing the issue being https://invent.kde.org/frameworks/kio/-/commit/48322f44323a1fc09305d66d9093fe6c3780709e. 

Please submit a new bug report if you are on a version newer than 5.111 and you still see this issue. If you are still on versions before 5.111, you would need to contact the maintainers of your distribution to have the fix backported, or to update to the latest version.
Comment 29 rlaggren 2024-02-01 02:24:45 UTC
Thx for you quick response. Done. That is, I found a later version of
kio that was assembled to work with my distro release. I will try to
find the right way to report this to the distro.


On 1/31/24 10:04, bugzilla_noreply@kde.org wrote:
...
> If you look carefully at the information fields at the top of the page, you can
> see that this is fixed in Frameworks version 5.111, with the commit fixing the
> issue being
Comment 30 fanzhuyifan 2024-04-07 21:56:20 UTC
*** Bug 485191 has been marked as a duplicate of this bug. ***