Project

General

Profile

Actions

Bug #750

closed

gtk4: Crash after closing all diplomacy dialogs

Added by Marko Lindqvist 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
gtk4-client
Target version:
Start date:
07/06/2024
Due date:
% Done:

0%

Estimated time:

Description

3.1.2 gtk4-client crashes when the last diplomacy dialog is closed.

This valgrind report is likely related:

3331537 Invalid read of size 8
3331537 at 0x207C87: gui_dialog_destroy_handler (gui_stuff.c:309)
3331537 by 0x5D3872F: g_closure_invoke (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x5D4C87B: ? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x5D4E280: ?
(in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x5D53F05: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x5D53FC2: g_signal_emit (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x535EBF7: ? (in /usr/lib/x86_64-linux-gnu/libgtk-4.so.1.1200.5)
3331537 by 0x5D3E04A: g_object_unref (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x5377D70: ?
(in /usr/lib/x86_64-linux-gnu/libgtk-4.so.1.1200.5)
3331537 by 0x5358F3F: ? (in /usr/lib/x86_64-linux-gnu/libgtk-4.so.1.1200.5)
3331537 by 0x535FDF7: ?
(in /usr/lib/x86_64-linux-gnu/libgtk-4.so.1.1200.5)
3331537 by 0x536EA89: ? (in /usr/lib/x86_64-linux-gnu/libgtk-4.so.1.1200.5)
3331537 by 0x536EA89: ?
(in /usr/lib/x86_64-linux-gnu/libgtk-4.so.1.1200.5)
3331537 by 0x536EA89: ? (in /usr/lib/x86_64-linux-gnu/libgtk-4.so.1.1200.5)
3331537 by 0x529E4D8: ?
(in /usr/lib/x86_64-linux-gnu/libgtk-4.so.1.1200.5)
3331537 by 0x5D3872F: g_closure_invoke (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x5D4CF07: ? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x5D4E280: ?
(in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x5D53F05: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x5D53FC2: g_signal_emit (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8000.3)
3331537 by 0x52A2BC1: ? (in /usr/lib/x86_64-linux-gnu/libgtk-4.so.1.1200.5)
3331537 by 0x1F536B: diplomacy_main_destroy (diplodlg.c:633)
3331537 by 0x1F536B: diplomacy_destroy (diplodlg.c:692)
3331537 by 0x1B7A28: client_handle_packet (packhand_gen.c:239)
3331537 by 0x174FAC: client_packet_input (client_main.c:792)
3331537 by 0x17C693: input_from_server (clinet.c:420)
3331537 by 0x170C9F: get_net_input (gui_main.c:2217)
3331537 by 0x5DDDDFE: ?
(in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.3)
3331537 by 0x5DDFE86: ? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.3)
3331537 by 0x5DE049F: g_main_context_iteration (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.3)
3331537 by 0x5C1843C: g_application_run (in /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.8000.3)
3331537 by 0x1739BB: ui_main (gui_main.c:1867)
3331537 by 0x176279: client_main (client_main.c:703)
3331537 by 0x5EF7C89: (below main) (libc_start_call_main.h:58)
3331537 Address 0xb9138e0 is 32 bytes inside a block of size 64 free'd
3331537 at 0x48431EF: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
3331537 by 0x1F52D0: diplomacy_destroy (diplodlg.c:678)
3331537 by 0x1B7A28: client_handle_packet (packhand_gen.c:239)
3331537 by 0x174FAC: client_packet_input (client_main.c:792)
3331537 by 0x17C693: input_from_server (clinet.c:420)
3331537 by 0x170C9F: get_net_input (gui_main.c:2217)
3331537 by 0x5DDDDFE: ?
(in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.3)
3331537 by 0x5DDFE86: ? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.3)
3331537 by 0x5DE049F: g_main_context_iteration (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.3)
3331537 by 0x5C1843C: g_application_run (in /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.8000.3)
3331537 by 0x1739BB: ui_main (gui_main.c:1867)
3331537 by 0x176279: client_main (client_main.c:703)
3331537 by 0x5EF7C89: (below main) (libc_start_call_main.h:58)
3331537 Block was alloc'd at
3331537 at 0x4840808: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
3331537 by 0x3A6470: fc_real_malloc (mem.c:89)
3331537 by 0x1F554C: create_diplomacy_dialog (diplodlg.c:750)
3331537 by 0x1F554C: popup_diplomacy_dialog (diplodlg.c:222)
3331537 by 0x1F554C: handle_diplomacy_init_meeting (diplodlg.c:154)
3331537 by 0x1B7A37: client_handle_packet (packhand_gen.c:233)
3331537 by 0x174FAC: client_packet_input (client_main.c:792)
3331537 by 0x17C693: input_from_server (clinet.c:420)
3331537 by 0x170C9F: get_net_input (gui_main.c:2217)
3331537 by 0x5DDDDFE: ?
(in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.3)
3331537 by 0x5DDFE86: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.3)
3331537 by 0x5DE049F: g_main_context_iteration (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.3)
3331537 by 0x5C1843C: g_application_run (in /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.8000.3)
3331537 by 0x1739BB: ui_main (gui_main.c:1867)
3331537 by 0x176279: client_main (client_main.c:703)
3331537 by 0x5EF7C89: (below main) (libc_start_call_main.h:58)

Files

Actions

Also available in: Atom PDF