Launchpad has imported 26 comments from the remote bug at
https://bugs.kde.org/show_bug.cgi?id=474451.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2023-09-12T13:03:55+00:00 Ultralux97 wrote:

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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/0

------------------------------------------------------------------------
On 2023-09-12T18:22:31+00:00 Arojas-8 wrote:

*** Bug 474429 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/1

------------------------------------------------------------------------
On 2023-09-13T06:37:21+00:00 Arojas-8 wrote:

*** Bug 474466 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/2

------------------------------------------------------------------------
On 2023-09-13T15:50:45+00:00 Arojas-8 wrote:

*** Bug 474491 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/3

------------------------------------------------------------------------
On 2023-09-14T06:24:41+00:00 Arojas-8 wrote:

*** Bug 474512 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/4

------------------------------------------------------------------------
On 2023-09-14T12:41:49+00:00 Arojas-8 wrote:

*** Bug 474521 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/5

------------------------------------------------------------------------
On 2023-09-14T22:48:57+00:00 Matheust-- wrote:

Created attachment 161625
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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/6

------------------------------------------------------------------------
On 2023-09-15T06:38:24+00:00 Arojas-8 wrote:

*** Bug 474536 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/7

------------------------------------------------------------------------
On 2023-09-15T07:26:09+00:00 Zincles wrote:

Created attachment 161627
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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/8

------------------------------------------------------------------------
On 2023-09-15T07:48:42+00:00 Bug-janitor wrote:

A possibly relevant merge request was started @
https://invent.kde.org/frameworks/kio/-/merge_requests/1411

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/9

------------------------------------------------------------------------
On 2023-09-15T09:10:59+00:00 Thibaud-laurent wrote:

Created attachment 161630
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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/10

------------------------------------------------------------------------
On 2023-09-15T09:27:11+00:00 Y-mik6-8 wrote:

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..

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/11

------------------------------------------------------------------------
On 2023-09-15T09:33:40+00:00 Y-mik6-8 wrote:

(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)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/12

------------------------------------------------------------------------
On 2023-09-15T11:54:54+00:00 ervin wrote:

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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/13

------------------------------------------------------------------------
On 2023-09-15T16:06:30+00:00 Arojas-8 wrote:

*** Bug 474555 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/14

------------------------------------------------------------------------
On 2023-09-15T18:43:25+00:00 Fanzhuyifan wrote:

Created attachment 161647
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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/15

------------------------------------------------------------------------
On 2023-09-15T18:50:34+00:00 Fanzhuyifan wrote:

Created attachment 161648
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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/16

------------------------------------------------------------------------
On 2023-09-15T19:01:27+00:00 ervin wrote:

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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/17

------------------------------------------------------------------------
On 2023-09-17T16:45:17+00:00 Pollob666-f wrote:

Created attachment 161676
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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/18

------------------------------------------------------------------------
On 2023-09-18T16:56:18+00:00 Albert Astals Cid wrote:

*** Bug 474654 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/19

------------------------------------------------------------------------
On 2023-09-19T00:49:04+00:00 Givenpurity wrote:

(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?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/20

------------------------------------------------------------------------
On 2023-09-19T05:50:25+00:00 Y-mik6-8 wrote:

(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)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/21

------------------------------------------------------------------------
On 2023-09-25T21:13:33+00:00 Albert Astals Cid wrote:

*** Bug 474850 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/22

------------------------------------------------------------------------
On 2023-09-26T14:16:43+00:00 Arojas-8 wrote:

*** Bug 474902 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/23

------------------------------------------------------------------------
On 2023-11-02T16:40:32+00:00 Fanzhuyifan wrote:

*** Bug 476432 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/28

------------------------------------------------------------------------
On 2023-11-03T09:55:55+00:00 Y-mik6-8 wrote:

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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kio/+bug/2039765/comments/29


** Changed in: kio-apt
       Status: Unknown => Fix Released

** Changed in: kio-apt
   Importance: Unknown => High

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kio in Ubuntu.
https://bugs.launchpad.net/bugs/2039765

Title:
  crash in file_unix isOnCifs if checked against btrfs(when overwriting
  files in btrfs on Dolphin)

To manage notifications about this bug go to:
https://bugs.launchpad.net/kio-apt/+bug/2039765/+subscriptions


-- 
kubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to