Follow-up Comment #2, bug #21590 (project freeciv):

It crashes for me when the popup about incompatible tileset is drawn. At this
point, the map is redrawn with inconsistent tileset maybe.

Valgrind says:

==7737== Invalid read of size 1
==7737==    at 0x4BF1A8: fill_terrain_sprite_layer (tilespec.c:4528)
==7737==    by 0x4C5C1F: fill_sprite_array (tilespec.c:4921)
==7737==    by 0x49A0EB: put_one_element (mapview_common.c:987)
==7737==    by 0x49E190: update_map_canvas (mapview_common.c:1177)
==7737==    by 0x49F34B: unqueue_mapview_updates (mapview_common.c:2617)
==7737==    by 0x452D96: map_canvas_expose (mapview.c:383)
==7737==    by 0x5B1D814: _gtk_marshal_BOOLEAN__BOXED (gtkmarshalers.c:86)
==7737==    by 0x675C3B7: g_closure_invoke (in
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4000.0)
==7737==    by 0x676DD3C: ??? (in
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4000.0)
==7737==    by 0x67756F8: g_signal_emit_valist (in
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4000.0)
==7737==    by 0x6775CE1: g_signal_emit (in
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4000.0)
==7737==    by 0x5C2D723: gtk_widget_event_internal (gtkwidget.c:5010)
==7737==  Address 0x778 is not stack'd, malloc'd or (recently) free'd
==7737== 
==7737== 
==7737== Process terminating with default action of signal 11 (SIGSEGV)
==7737==  Access not within mapped region at address 0x778
==7737==    at 0x4BF1A8: fill_terrain_sprite_layer (tilespec.c:4528)
==7737==    by 0x4C5C1F: fill_sprite_array (tilespec.c:4921)
==7737==    by 0x49A0EB: put_one_element (mapview_common.c:987)
==7737==    by 0x49E190: update_map_canvas (mapview_common.c:1177)
==7737==    by 0x49F34B: unqueue_mapview_updates (mapview_common.c:2617)
==7737==    by 0x452D96: map_canvas_expose (mapview.c:383)
==7737==    by 0x5B1D814: _gtk_marshal_BOOLEAN__BOXED (gtkmarshalers.c:86)
==7737==    by 0x675C3B7: g_closure_invoke (in
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4000.0)
==7737==    by 0x676DD3C: ??? (in
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4000.0)
==7737==    by 0x67756F8: g_signal_emit_valist (in
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4000.0)
==7737==    by 0x6775CE1: g_signal_emit (in
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4000.0)
==7737==    by 0x5C2D723: gtk_widget_event_internal (gtkwidget.c:5010)
==7737==  If you believe this happened as a result of a stack
==7737==  overflow in your program's main thread (unlikely but
==7737==  possible), you can try to increase the size of the
==7737==  main thread stack using the --main-stacksize= flag.
==7737==  The main thread stack size used in this run was 8388608.



    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21590>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to