Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2005:
[Freeciv-Dev] (PR#13092) [awk@xxxxxxxxxxxx: [Pkg-freeciv-devel] Bug#3090
Home

[Freeciv-Dev] (PR#13092) [awk@xxxxxxxxxxxx: [Pkg-freeciv-devel] Bug#3090

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jordi@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#13092) [awk@xxxxxxxxxxxx: [Pkg-freeciv-devel] Bug#309046: freeciv: Segfaults when telling a unit to "go" while on glacier.]
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 20 May 2005 10:07:34 -0700
Reply-to: bugs@xxxxxxxxxxx

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

Uh oh.

#0  0x081079a4 in create_danger_segment (pf_map=0x91156a8,
dir=DIR8_NORTHEAST,
    d_node1=0x8bcfc68, length=24) at path_finding.c:795
795         node = &pf_map->lattice[ptile->index];
(gdb) bt
#0  0x081079a4 in create_danger_segment (pf_map=0x91156a8,
dir=DIR8_NORTHEAST,
    d_node1=0x8bcfc68, length=24) at path_finding.c:795
#1  0x08108087 in danger_iterate_map (pf_map=0x91156a8) at
path_finding.c:953
#2  0x08107d0b in danger_iterate_map (pf_map=0x91156a8) at
path_finding.c:1040
  ...
#889 0x08107d0b in danger_iterate_map (pf_map=0x91156a8) at
path_finding.c:1040
#890 0x08106e7d in pf_next (pf_map=0x91156a8) at path_finding.c:322
#891 0x08108648 in danger_get_path (pf_map=0x91156a8, ptile=0x413339d0)
    at path_finding.c:1174
#892 0x0807a2e5 in update_last_part (ptile=0x413339d0) at goto.c:139
#893 0x0807b55a in draw_line (dest_tile=0x0) at goto.c:765
#894 0x081330d9 in move_mapcanvas (w=0x86f82e0, ev=0x86efe80, data=0x0)
    at mapctrl.c:364
#895 0x4014d99e in _gtk_marshal_BOOLEAN__BOXED ()
   from /usr/lib/libgtk-x11-2.0.so.0
#896 0x40433736 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#897 0x40444dcf in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#898 0x40443c8c in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#899 0x40444126 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#900 0x4023cd87 in gtk_widget_send_expose () from
/usr/lib/libgtk-x11-2.0.so.0
#901 0x4014c4b2 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#902 0x4014b306 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#903 0x40348825 in _gdk_events_queue () from /usr/lib/libgdk-x11-2.0.so.0
#904 0x4048a582 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#905 0x4048b5f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#906 0x4048b930 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#907 0x4048bed3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#908 0x4014abb3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#909 0x0812a487 in ui_main (argc=1, argv=0xbffff904) at gui_main.c:1211
#910 0x08070d8b in main (argc=1, argv=0xbffff904) at civclient.c:350

(gdb) select 0
(gdb) p ptile
$1 = (struct tile *) 0x0
(gdb) p pf_map->tile
$2 = (struct tile *) 0x4131ad04
(gdb) p length
$3 = 24
(gdb) p pf_map->tile->x
$4 = 11
(gdb) p pf_map->tile->y
$5 = 87
(gdb) p node->tile
There is no member named tile.
(gdb) p node
$6 = (struct pf_node *) 0x91156a8
(gdb) p node->dir_to_here
$7 = 224 'à'

So I don't know how this happens.  It is reproducable from the savegame
but doesn't normally happen.

-jason




[Prev in Thread] Current Thread [Next in Thread]