Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2005:
[Freeciv-Dev] (PR#14984) GTK2 client segfaults at end of game
Home

[Freeciv-Dev] (PR#14984) GTK2 client segfaults at end of game

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#14984) GTK2 client segfaults at end of game
From: "Guillaume Melquiond" <guillaume.melquiond@xxxxxxxxx>
Date: Sun, 25 Dec 2005 15:35:58 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14984 >

Backtrace:

#0  0x0807ba8b in get_unit_info_label_text1 (punits=0x0) at speclist.h:110
        str = {str = 0x91eff30 "0 units", n = 8, n_alloc = 37}
        count = <value optimized out>
#1  0x08107378 in update_unit_info_label (punits=0x0) at mapview.c:212
        label = (GtkWidget *) 0x8c1c2a0
#2  0x0806f899 in handle_game_state (value=4) at packhand.c:376

According to its comment, update_unit_info_label is supposed to clear
labels when its argument is NULL. Yet it does not test for it, and
get_unit_info_label_text1 later segfaults when it tries to get the
size of punits.





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#14984) GTK2 client segfaults at end of game, Guillaume Melquiond <=