Bug 496132

Summary: Unpluging drawing tablet causes Plasma to crash in QtWayland::zwp_tablet_pad_v2::handle_removed()
Product: [Plasma] plasmashell Reporter: easonqq0000
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: josh, kdedev, nate, nicolas.fella, reza.jahanbakhshi
Priority: NOR Keywords: drkonqi
Version: 6.2.3   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description easonqq0000 2024-11-11 15:45:58 UTC
Application: plasmashell (6.2.3)

ApplicationNotResponding [ANR]: false
Qt Version: 6.8.0
Frameworks Version: 6.8.0
Operating System: Linux 6.11.7-300.fc41.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 41 (Workstation Edition)"
DrKonqi: 6.2.3 [CoredumpBackend]

-- Information about the crash:
When unplug the drawing tablet, many of application crash.

Steps to reproduce:
1. plug drawing tablet
2. use drawing tablet a bit(maybe optional, but I use intentially it when reproducing the issue)
3. unplugin

Symptom:
Following process are crash everytime: kded6, yakuake, xdg-desktop-portal-kde, baloorunner
Following process doesn't crash everytime: plasmashell, kdeconnectd, org_kde_powerdevil

*I have only reproduce three times for this bug report, so some application(xdg-desktop-portal-kde, yakuake...) might be unrelated.

System info:
Fedora workstation 41(`dnf group install kde-desktop-environment`)
Drawing tablet without additional driver(no opentabletdriver, just kernel and kcm-wacom)

The crash can be reproduced every time.

-- Backtrace:
Application: plasmashell (plasmashell), signal: Segmentation fault


warning: Can't open file /memfd:JITCode:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:unknown-usage:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file anon_inode:i915.gem which was expanded to anon_inode:i915.gem during file-backed mapping note processing

warning: Can't open file /memfd:pulseaudio (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JSGCHeap:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:kwin-dmabuf-feedback-table (deleted) during file-backed mapping note processing

warning: Can't open file /home/eason/.cache/plasma_theme_default.kcache (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JSVMStack:QtQml (deleted) during file-backed mapping note processing
[New LWP 20057]
[New LWP 20060]
[New LWP 20726]
[New LWP 20076]
[New LWP 21141]
[New LWP 20898]
[New LWP 23769]
[New LWP 20077]
[New LWP 20088]
[New LWP 20100]
[New LWP 20098]
[New LWP 20727]
[New LWP 20925]
[New LWP 20926]
[New LWP 20099]
[New LWP 21213]
[New LWP 20097]
[New LWP 21192]
[New LWP 21195]
[New LWP 21196]
[New LWP 23648]
[New LWP 21212]
[New LWP 21214]
[New LWP 21211]
[New LWP 23770]
[New LWP 20927]
[New LWP 21215]
[New LWP 23650]
[New LWP 23647]
[New LWP 20924]
[New LWP 23649]
[New LWP 20087]
[New LWP 21094]
[New LWP 20928]
[New LWP 21193]
[New LWP 23771]
[New LWP 21194]
[New LWP 23646]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/bin/plasmashell --no-respawn'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fb530680724 in __pthread_kill_implementation () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7fb52a99cb00 (LWP 20057))]
Cannot QML trace cores :(
/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:516: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  boot_time = datetime.utcfromtimestamp(psutil.boot_time()).strftime('%Y-%m-%dT%H:%M:%S')
/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:533: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
  'timestamp': datetime.utcnow().isoformat(),
[Current thread is 1 (Thread 0x7fb52a99cb00 (LWP 20057))]

Thread 38 (Thread 0x7fb4c8bfb6c0 (LWP 23646)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb530ec2e8f in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt6Core.so.6
#3  0x00007fb532b93859 in QSGRenderThread::processEventsAndWaitForMore() () from /lib64/libQt6Quick.so.6
#4  0x00007fb532b93ae2 in QSGRenderThread::run() () from /lib64/libQt6Quick.so.6
#5  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#6  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#7  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 37 (Thread 0x7fb49b7fe6c0 (LWP 21194)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 36 (Thread 0x7fb4c9bfd6c0 (LWP 23771)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067dc22 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb530ec2e0b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt6Core.so.6
#3  0x00007fb530ebfb43 in QThreadPoolThread::run() () from /lib64/libQt6Core.so.6
#4  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 35 (Thread 0x7fb49bfff6c0 (LWP 21193)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 34 (Thread 0x7fb4d4d7b6c0 (LWP 20928)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 33 (Thread 0x7fb4d69ff6c0 (LWP 21094)):
#0  0x00007fb5306f4a3d in poll () from /lib64/libc.so.6
#1  0x00007fb4d78d8bf6 in poll_func () from /lib64/libpulse.so.0
#2  0x00007fb4d78c2474 in pa_mainloop_poll () from /lib64/libpulse.so.0
#3  0x00007fb4d78ccdb3 in pa_mainloop_iterate () from /lib64/libpulse.so.0
#4  0x00007fb4d78cce80 in pa_mainloop_run () from /lib64/libpulse.so.0
#5  0x00007fb4d78ddb6f in thread () from /lib64/libpulse.so.0
#6  0x00007fb4d787b51b in internal_thread_func () from /usr/lib64/pulseaudio/libpulsecommon-17.0.so
#7  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#8  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 32 (Thread 0x7fb50febe6c0 (LWP 20087)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 31 (Thread 0x7fb4be2436c0 (LWP 23649)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 30 (Thread 0x7fb4e2ac66c0 (LWP 20924)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb530ec2e8f in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt6Core.so.6
#3  0x00007fb532b93859 in QSGRenderThread::processEventsAndWaitForMore() () from /lib64/libQt6Quick.so.6
#4  0x00007fb532b93ae2 in QSGRenderThread::run() () from /lib64/libQt6Quick.so.6
#5  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#6  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#7  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 29 (Thread 0x7fb4bf2456c0 (LWP 23647)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 28 (Thread 0x7fb4bda426c0 (LWP 23650)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 27 (Thread 0x7fb48f7fe6c0 (LWP 21215)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 26 (Thread 0x7fb4cafff6c0 (LWP 20927)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 25 (Thread 0x7fb4bd1fa6c0 (LWP 23770)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067dc22 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb530ec2e0b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt6Core.so.6
#3  0x00007fb530ebfb43 in QThreadPoolThread::run() () from /lib64/libQt6Core.so.6
#4  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 24 (Thread 0x7fb499ffb6c0 (LWP 21211)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb530ec2e8f in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt6Core.so.6
#3  0x00007fb532b93859 in QSGRenderThread::processEventsAndWaitForMore() () from /lib64/libQt6Quick.so.6
#4  0x00007fb532b93ae2 in QSGRenderThread::run() () from /lib64/libQt6Quick.so.6
#5  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#6  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#7  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 23 (Thread 0x7fb48ffff6c0 (LWP 21214)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 22 (Thread 0x7fb4997fa6c0 (LWP 21212)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 21 (Thread 0x7fb4bea446c0 (LWP 23648)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 20 (Thread 0x7fb49a7fc6c0 (LWP 21196)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 19 (Thread 0x7fb49affd6c0 (LWP 21195)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 18 (Thread 0x7fb4bc9f96c0 (LWP 21192)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb530ec2e8f in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt6Core.so.6
#3  0x00007fb532b93859 in QSGRenderThread::processEventsAndWaitForMore() () from /lib64/libQt6Quick.so.6
#4  0x00007fb532b93ae2 in QSGRenderThread::run() () from /lib64/libQt6Quick.so.6
#5  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#6  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#7  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 17 (Thread 0x7fb50ee3c6c0 (LWP 20097)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 16 (Thread 0x7fb498ff96c0 (LWP 21213)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 15 (Thread 0x7fb50dc076c0 (LWP 20099)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 14 (Thread 0x7fb4e1ac46c0 (LWP 20926)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 13 (Thread 0x7fb4e22c56c0 (LWP 20925)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 12 (Thread 0x7fb4eefbc6c0 (LWP 20727)):
#0  0x00007fb5306f4f70 in ppoll () from /lib64/libc.so.6
#1  0x00007fb52f94e8a3 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#2  0x00007fb52f8ef783 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fb530fe9de3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#4  0x00007fb530d0221b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#5  0x00007fb530e18d85 in QThread::exec() () from /lib64/libQt6Core.so.6
#6  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#7  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#8  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 11 (Thread 0x7fb50e5a66c0 (LWP 20098)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 10 (Thread 0x7fb50d3716c0 (LWP 20100)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 9 (Thread 0x7fb50f6bd6c0 (LWP 20088)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb5182be79d in cnd_wait () from /lib64/libgallium-24.2.6.so
#3  0x00007fb51829ab2b in util_queue_thread_func () from /lib64/libgallium-24.2.6.so
#4  0x00007fb5182be6cc in impl_thrd_routine () from /lib64/libgallium-24.2.6.so
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 8 (Thread 0x7fb51b5fe6c0 (LWP 20077)):
#0  0x00007fb5306f4a3d in poll () from /lib64/libc.so.6
#1  0x00007fb531f0c375 in QtWaylandClient::EventThread::run() () from /lib64/libQt6WaylandClient.so.6
#2  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#3  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#4  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 7 (Thread 0x7fb4faffd6c0 (LWP 23769)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067dc22 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb530ec2e0b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt6Core.so.6
#3  0x00007fb530ebfb43 in QThreadPoolThread::run() () from /lib64/libQt6Core.so.6
#4  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 6 (Thread 0x7fb4e32c76c0 (LWP 20898)):
#0  0x00007fb5306f4f70 in ppoll () from /lib64/libc.so.6
#1  0x00007fb52f94e8a3 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#2  0x00007fb52f8ef783 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fb530fe9de3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#4  0x00007fb530d0221b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#5  0x00007fb530e18d85 in QThread::exec() () from /lib64/libQt6Core.so.6
#6  0x00007fb532aaf6d4 in QQuickPixmapReader::run() () from /lib64/libQt6Quick.so.6
#7  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#8  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#9  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 5 (Thread 0x7fb4d573f6c0 (LWP 21141)):
#0  0x00007fb5306f4f70 in ppoll () from /lib64/libc.so.6
#1  0x00007fb52f94e8a3 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#2  0x00007fb52f8ef783 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fb530fe9de3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#4  0x00007fb530d0221b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#5  0x00007fb530e18d85 in QThread::exec() () from /lib64/libQt6Core.so.6
#6  0x00007fb4d5804e6d in KCupsConnection::run() () from /lib64/libkcupslib.so.6.2.3
#7  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#8  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#9  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 4 (Thread 0x7fb51bdff6c0 (LWP 20076)):
#0  0x00007fb53067ae69 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fb53067d8b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fb530ec2e8f in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt6Core.so.6
#3  0x00007fb531f0c30e in QtWaylandClient::EventThread::run() () from /lib64/libQt6WaylandClient.so.6
#4  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#5  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#6  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 3 (Thread 0x7fb4effff6c0 (LWP 20726)):
#0  0x00007fb5306f4f70 in ppoll () from /lib64/libc.so.6
#1  0x00007fb52f94e8a3 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#2  0x00007fb52f8ef783 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fb530fe9de3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#4  0x00007fb530d0221b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#5  0x00007fb530e18d85 in QThread::exec() () from /lib64/libQt6Core.so.6
#6  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#7  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#8  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 2 (Thread 0x7fb51c9ff6c0 (LWP 20060)):
#0  0x00007fb5306f4f70 in ppoll () from /lib64/libc.so.6
#1  0x00007fb52f94e8a3 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#2  0x00007fb52f8ef783 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fb530fe9de3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#4  0x00007fb530d0221b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#5  0x00007fb530e18d85 in QThread::exec() () from /lib64/libQt6Core.so.6
#6  0x00007fb531e4f681 in QDBusConnectionManager::run() () from /lib64/libQt6DBus.so.6
#7  0x00007fb530eb638b in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#8  0x00007fb53067e797 in start_thread () from /lib64/libc.so.6
#9  0x00007fb53070278c in __clone3 () from /lib64/libc.so.6

Thread 1 (Thread 0x7fb52a99cb00 (LWP 20057)):
[KCrash Handler]
#4  0x0000000000000020 in ?? ()
#5  0x00007fb53043e056 in ffi_call_unix64 () from /lib64/libffi.so.8
#6  0x00007fb53043974d in ffi_call_int.lto_priv () from /lib64/libffi.so.8
#7  0x00007fb53043c64e in ffi_call () from /lib64/libffi.so.8
#8  0x00007fb533c9310e in wl_closure_invoke.constprop () from /lib64/libwayland-client.so.0
#9  0x00007fb533c93979 in dispatch_event () from /lib64/libwayland-client.so.0
#10 0x00007fb533c93d73 in wl_display_dispatch_queue_pending () from /lib64/libwayland-client.so.0
#11 0x00007fb531f0c1d2 in QtWaylandClient::QWaylandDisplay::flushRequests() () from /lib64/libQt6WaylandClient.so.6
#12 0x00007fb530d4d172 in QObject::event(QEvent*) () from /lib64/libQt6Core.so.6
#13 0x00007fb53323d6b8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt6Widgets.so.6
#14 0x00007fb530cf3a38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt6Core.so.6
#15 0x00007fb530cf7765 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt6Core.so.6
#16 0x00007fb530fea68f in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt6Core.so.6
#17 0x00007fb52f8ee28c in g_main_context_dispatch_unlocked.lto_priv () from /lib64/libglib-2.0.so.0
#18 0x00007fb52f94e7b8 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#19 0x00007fb52f8ef783 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#20 0x00007fb530fe9de3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#21 0x00007fb530d0221b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#22 0x00007fb530cfda2e in QCoreApplication::exec() () from /lib64/libQt6Core.so.6
#23 0x000055d7bd5e2173 in main ()

Reported using DrKonqi
Comment 1 easonqq0000 2024-11-12 02:03:43 UTC
I look closely at some tracebacks of other applications that also crashed when unplugging drawing tablet, `QtWayland::zwp_tablet_pad_v2::handle_removed(void*, zwp_tablet_pad_v2*)` appear many times.
Maybe libQt6WaylandClient.so.6 is the culprit.

I believe [QWaylandTabletPadV2::zwp_tablet_pad_v2_removed](https://github.com/qt/qtwayland/blob/88f94bdbea19725b3c1a09e1f868c14dff286f53/src/client/qwaylandtabletv2.cpp#L620) cause such error, but without more knowledge about its code, I can't proceed smoothly.

Following tracebacks are repeated:
```
#4  0x00007f7974bd9027 in QtWayland::zwp_tablet_pad_v2::handle_removed(void*, zwp_tablet_pad_v2*) () from /lib64/libQt6WaylandClient.so.6
#5  0x00007f797348f056 in ffi_call_unix64 () from /lib64/libffi.so.8
#6  0x00007f797348a74d in ffi_call_int.lto_priv () from /lib64/libffi.so.8
#7  0x00007f797348d64e in ffi_call () from /lib64/libffi.so.8
#8  0x00007f7975aa210e in wl_closure_invoke.constprop () from /lib64/libwayland-client.so.0
#9  0x00007f7975aa2979 in dispatch_event () from /lib64/libwayland-client.so.0
#10 0x00007f7975aa2d73 in wl_display_dispatch_queue_pending () from /lib64/libwayland-client.so.0
#11 0x00007f7974b9e1d2 in QtWaylandClient::QWaylandDisplay::flushRequests() () from /lib64/libQt6WaylandClient.so.6
#12 0x00007f797554d172 in QObject::event(QEvent*) () from /lib64/libQt6Core.so.6
#13 0x00007f79754f3a38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt6Core.so.6
#14 0x00007f79754f7765 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt6Core.so.6
```
Comment 2 TraceyC 2024-11-12 22:57:41 UTC
This trace looks like bug 482768 but that was supposed to be fixed in Plasma 6.1.3
I'll let one of the more knowledgeable contributors take a closer look
Comment 3 easonqq0000 2024-11-13 02:12:24 UTC
Okay, notify me when that was released.

Thank for your help beforehand.

By the way, I look at the issue and commit, but I hardly found it related(maybe my skill issue).
Comment 4 Nate Graham 2024-11-13 18:43:59 UTC

*** This bug has been marked as a duplicate of bug 496048 ***
Comment 5 Reza Jahanbakhshi 2024-12-02 09:14:33 UTC
#482768
Comment 6 Reza Jahanbakhshi 2024-12-02 09:23:03 UTC
Sorry, I misclicked before adding my comment.
https://bugs.kde.org/show_bug.cgi?id=482768 does not resolve this issue as it's already released with 6.1.3 and thisis still happening with 6.2.4 on Arch Linux. Below is the callstack for one I reproduced just now. I'm attaching the coredump too.

Core was generated by `/usr/bin/plasmashell --no-respawn'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007ce729ca53f4 in ?? () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7ce723e53a00 (LWP 2153))]
(gdb) bt
#0  0x00007ce729ca53f4 in ?? () from /usr/lib/libc.so.6
#1  0x00007ce729c4c120 in raise () from /usr/lib/libc.so.6
#2  0x00007ce72cc652a1 in KCrash::defaultCrashHandler(int) () from /usr/lib/libKF6Crash.so.6
#3  <signal handler called>
#4  0x00007ce72b32a387 in QtWayland::zwp_tablet_pad_v2::handle_removed(void*, zwp_tablet_pad_v2*) () from /usr/lib/libQt6WaylandClient.so.6
#5  0x00007ce729887596 in ?? () from /usr/lib/libffi.so.8
#6  0x00007ce72988400e in ?? () from /usr/lib/libffi.so.8
#7  0x00007ce729886bd3 in ffi_call () from /usr/lib/libffi.so.8
#8  0x00007ce72ccdc8b0 in ?? () from /usr/lib/libwayland-client.so.0
#9  0x00007ce72ccdd139 in ?? () from /usr/lib/libwayland-client.so.0
#10 0x00007ce72ccdd553 in wl_display_dispatch_queue_pending () from /usr/lib/libwayland-client.so.0
#11 0x00007ce72b2f1266 in QtWaylandClient::QWaylandDisplay::flushRequests() () from /usr/lib/libQt6WaylandClient.so.6
#12 0x00007ce72a3a348a in QObject::event(QEvent*) () from /usr/lib/libQt6Core.so.6
#13 0x00007ce72c2fe31a in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt6Widgets.so.6
#14 0x00007ce72a3585a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt6Core.so.6
#15 0x00007ce72a359035 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt6Core.so.6
#16 0x00007ce72a5c23fc in ?? () from /usr/lib/libQt6Core.so.6
#17 0x00007ce728df3559 in ?? () from /usr/lib/libglib-2.0.so.0
#18 0x00007ce728e56157 in ?? () from /usr/lib/libglib-2.0.so.0
#19 0x00007ce728df2a55 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0x00007ce72a5bf71d in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt6Core.so.6
#21 0x00007ce72a364566 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt6Core.so.6
#22 0x00007ce72a359a2f in QCoreApplication::exec() () from /usr/lib/libQt6Core.so.6
#23 0x00005e58910e217f in ?? ()
#24 0x00007ce729c34e08 in ?? () from /usr/lib/libc.so.6
#25 0x00007ce729c34ecc in __libc_start_main () from /usr/lib/libc.so.6
#26 0x00005e58910e2695 in ?? ()
Comment 7 Reza Jahanbakhshi 2024-12-02 10:14:02 UTC
I created a new crash report to be able to send the coredumps and I'm closing it as a duplicate to this one.
https://bugs.kde.org/show_bug.cgi?id=496924
Comment 8 Reza Jahanbakhshi 2024-12-02 10:15:19 UTC
*** Bug 496924 has been marked as a duplicate of this bug. ***
Comment 9 Nicolas Fella 2024-12-02 10:32:47 UTC

*** This bug has been marked as a duplicate of bug 496048 ***