*** If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports Please remove this comment after reading and before submitting - thanks! *** SUMMARY STEPS TO REPRODUCE 1. navigate to settings -> Configure Kontact... 2. close the configuration window using the close button 3. repeat steps 1 and 2 (alternatively, close the Kontact main window using the close button) OBSERVED RESULT the application crashes due to a segmentation fault EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: Gentoo Linux KDE Plasma Version: 6.5.4 KDE Frameworks Version: 6.21.0 Qt Version: 6.10.1 ADDITIONAL INFORMATION When closing the configuration window, the function KontactKCMultiDialog::closeEvent deletes all KCModules currently held, after which the window gets hidden. When reopening it, the previously deleted KCModules are not recreated. The next activation of KontactKCMultiDialog::closeEvent triggers a NULL pointer dereference by attempting to remove the already deleted KCModules once again.
A possibly relevant merge request was started @ https://invent.kde.org/pim/kontact/-/merge_requests/38
This was fixed by https://invent.kde.org/pim/kontact/-/merge_requests/37