Project

General

Profile

Actions

Bug #2306

closed

gtk4: Double destruction of diplomacy dialog

Added by Marko Lindqvist 15 days ago. Updated 5 days ago.

Status:
Closed
Priority:
Normal
Category:
gtk4-client
Target version:
Start date:
09/29/2026
Due date:
% Done:

0%

Estimated time:

Description

Closing of the diplodlg (a gui_dialog) will destroy it. There's also conditional code to destroy it in diplomacy_destroy(). That's duplicate destruction (or at least use-after-free before deciding to abort the second destruction), when ever the condition in diplomacy_destroy() is fulfilled. All this leads to frequent crash some time after diplomacy dialog close.


Files


Related issues 1 (1 open — 0 closed)

Blocks Task #2218: Release 3.2.7NewMarko Lindqvist09/05/2026

Actions
Actions #2

Updated by Marko Lindqvist 15 days ago ยท Edited

The crashes seemed to happen especially on the client not accepting/cancelling the treaty last, but only receiving the close info from server, so use two clients connected to different players to reproduce. There's less reproducibility success with AI players.

Actions #3

Updated by Marko Lindqvist 13 days ago

Actions #4

Updated by Marko Lindqvist 5 days ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF