Bug 502971

Summary: Clicking desktop icon terminates plasmashell
Product: [Plasma] plasmashell Reporter: drwootton
Component: Desktop icons & Folder View widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: minor CC: hein, nate
Priority: NOR    
Version First Reported In: git-stable-Plasma/6.3   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Desktop icon that crashes the desktop
coredumpctl output for plasmashell crash
Crash traceback with gdb attach to plasmashell process

Description drwootton 2025-04-18 16:06:13 UTC
Created attachment 180386 [details]
Desktop icon that crashes the desktop

SUMMARY
Clicking a desktop icon widget causes plasmashell to abruptly exit

STEPS TO REPRODUCE
1. I'm running applications from the desktop and the system behaves normally
2. I click the desktop icon (desktop widget file attached)
3. The desktop disappears, all running processes invoked from the desktop are terminated and dthe display goes back to the GDM login screen
4. I log back in and all applications that were running are gone.

OBSERVED RESULT
Abrupt desktop exit and running applications terminated.
No popup dialog complianing about a crash appears

EXPECTED RESULT

No crash

SOFTWARE/OS VERSIONS
Windows: N/A 
macOS: N/A
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora 41 kernel 6.13.11-200 
KDE Plasma Version:  6.3.4 (X11)
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Offending desktop widget file attached
Comment 1 Nate Graham 2025-04-18 17:47:14 UTC
That file doesn't cause a crash for me on git master Plasma, built from source also on top of Fedora 41. And it passes `desktop-file-validate` with only warnings. Can you please attach a backtrace of the crash using the `coredumpctl` command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl ?

Thanks!
Comment 2 drwootton 2025-04-18 20:33:56 UTC
Created attachment 180393 [details]
coredumpctl output for plasmashell crash
Comment 3 drwootton 2025-04-18 20:40:25 UTC
I just tried this again and got the crash. Even though I added the debug symbol packages gdb wanted the stack is still nonsense. If I kept hitting enter this would go on probably forever. I got to about stack depth 18000 on another dump and quit. 
Normally I would expect a recursion loop but I'm not seeing that here, or the number of call stack frames until this gets back to the recusrion is really large.
The other threads all look like they might just be waiting, so no idea what's going on, but it's solid failure for me, and not really a serious problem since I just don't click that icon.
Comment 4 drwootton 2025-04-18 21:00:56 UTC
Created attachment 180394 [details]
Crash traceback with gdb attach to plasmashell process
Comment 5 drwootton 2025-04-18 21:02:07 UTC
The first traceback I attached looks like it's nonsense, no idea why. 
I tried this again, using gdb to attach to the running plasmashell process and got what I think is a better crash trace, which I attached.
Comment 6 drwootton 2025-04-21 15:39:29 UTC
Backtraces provided
Comment 7 Nate Graham 2025-04-22 14:42:41 UTC
Thanks for the better backtrace! And sure enough, it's NVIDIA. :( 

Please report this issue to the NVIDIA folks, either by sending an email to linux-bugs@nvidia.com or making a post at https://forums.developer.nvidia.com/c/gpu-graphics/linux. It would be helpful to the NVIDIA developers if you could run `nvidia-bug-report.sh` and attach the resulting file in your report.

Thanks!