Created attachment 146295 [details] Backtrace from segfault. SUMMARY While playing a game against the computer using the gnuchess game engine and the xboard protocal Knights crashed with a segmentation fault. STEPS TO REPRODUCE 1. Start a new game with 1 human player and one computer playing (gnuchess & xboard) 2. Play the game for a little while 3. Game will crash while "Computer is thinking" OBSERVED RESULT The game hung at "computer is thinking" for several minutes before eventually crashing. EXPECTED RESULT Game shouldn't crash SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.23.5 KDE Frameworks Version: 5.90.0 Qt Version: 5.15.2 Kernel Version: 5.16.5-arch1-1 (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7-6820HQ CPU @ 2.70GHz Memory: 31.2 GiB of RAM Graphics Processor: Quadro M1000M/PCIe/SSE2 ADDITIONAL INFORMATION
Created attachment 146296 [details] Game log Attaching the game log file as well just encase it is helpful.
Created attachment 149274 [details] dbg log Every time I let Stockfish fight against itself it crashes, I used dbg with debuginfod to get all the info into log file so I am uploading it here. The log has a lot of useless info but when you look there is also all the info to fix the bug.
*** Bug 468227 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/games/knights/-/merge_requests/22
Git commit 3572b3f4e79b57b5a56248100cc8652c219bac06 by Albert Astals Cid, on behalf of Dawid Trendota. Committed on 18/02/2024 at 23:32. Pushed by aacid into branch 'master'. Fix crash while playing against CPU Crash was caused by dereference of invalidates QList iterator. Fixed by using removeIf instead of remove values in iterator based loop. Closes #449639 M +4 -3 src/rules/chessrules.cpp https://invent.kde.org/games/knights/-/commit/3572b3f4e79b57b5a56248100cc8652c219bac06
Git commit 68447942a52c8cc8a732a1cc71c5bf7f0cb85d5d by Albert Astals Cid, on behalf of Dawid Trendota. Committed on 18/02/2024 at 23:35. Pushed by aacid into branch 'release/24.02'. Fix crash while playing against CPU Crash was caused by dereference of invalidates QList iterator. Fixed by using removeIf instead of remove values in iterator based loop. Closes #449639 (cherry picked from commit 3572b3f4e79b57b5a56248100cc8652c219bac06) M +4 -3 src/rules/chessrules.cpp https://invent.kde.org/games/knights/-/commit/68447942a52c8cc8a732a1cc71c5bf7f0cb85d5d