Bug 486098

Summary: Creating and closing sequentially two QMainWindows core-dumps with KDE
Product: [Frameworks and Libraries] frameworks-kwidgetsaddons Reporter: wolf.seifert
Component: generalAssignee: Christoph Feck <cfeck>
Status: REPORTED ---    
Severity: crash CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 6.1.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Reproducer: mainwindows.cpp and CMakeLists.txt

Description wolf.seifert 2024-04-25 06:18:50 UTC
Created attachment 168890 [details]
Reproducer: mainwindows.cpp and CMakeLists.txt

SUMMARY
When creating and closing sequentially two QMainWindows the second one core-dumps when clicking on it. This only happens for the KDE version, the pure Qt version works fine.

STEPS TO REPRODUCE
1. Unzip the attached mainwindows.zip
2. $ cmake .
3. $ cmake --build .
4. $ ./mainwindows (close first window and click on second)
Segmentation fault (core dumped)
5. $ LD_LIBRARY_PATH=/home/wolfgang/qt/6.7.0/gcc_64/lib ./mainwindows (works fine)

OBSERVED RESULT
When clicking on the second mainwindows menubar the application crashes.
When using pure Qt it works as expected.

EXPECTED RESULT
The second mainwindows menubar "Close" should close the mainwindow and quit the application.
Pure Qt and KDE version should behave the same, only the look & feel may differ.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Graphics Platform: Wayland
Comment 1 wolf.seifert 2024-04-25 06:26:44 UTC
By "closing" I meant triggering the menubars "Close" menu.
Comment 2 wolf.seifert 2025-02-06 12:11:35 UTC
Still the same.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Graphics Platform: Wayland
Comment 3 wolf.seifert 2025-02-28 08:18:47 UTC
Still the same.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Graphics Platform: Wayland
Comment 4 wolf.seifert 2025-06-19 04:43:34 UTC
Still the same.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Graphics Platform: Wayland