Follow-up Comment #4, bug #16797 (project freeciv):

I can reproduce, loading file #10638. Valgrind report:

==25011== Invalid read of size 8
==25011==    at 0x577DD9: unit_tile (unit.c:1367)
==25011==    by 0x4212B6: kill_unit (unittools.c:1856)
==25011==    by 0x4B10F9: unit_attack_handling (unithand.c:1103)
==25011==    by 0x4B073E: unit_move_handling (unithand.c:1426)
==25011==    by 0x42D684: ai_unit_attack (aitools.c:928)
==25011==    by 0x445D4F: adv_unit_execute_path (advgoto.c:100)
==25011==    by 0x4321B2: ai_military_rampage (aiunit.c:715)
==25011==    by 0x434BAD: ai_military_attack (aiunit.c:1800)
==25011==    by 0x43640E: ai_manage_military (aiunit.c:2145)
==25011==    by 0x437553: ai_manage_unit (aiunit.c:2330)
==25011==    by 0x438E77: ai_manage_units (aiunit.c:2436)
==25011==    by 0x4BB5C8: ai_do_first_activities (aihand.c:482)
==25011==  Address 0xa9b7d18 is 8 bytes inside a block of size 224 free'd
==25011==    at 0x4C280BD: free (vg_replace_malloc.c:366)
==25011==    by 0x41C036: server_remove_unit (unittools.c:1481)
==25011==    by 0x4201F7: wipe_unit (unittools.c:1569)
==25011==    by 0x4212F2: kill_unit (unittools.c:1859)
==25011==    by 0x4B10F9: unit_attack_handling (unithand.c:1103)
==25011==    by 0x4B073E: unit_move_handling (unithand.c:1426)
==25011==    by 0x42D684: ai_unit_attack (aitools.c:928)
==25011==    by 0x445D4F: adv_unit_execute_path (advgoto.c:100)
==25011==    by 0x4321B2: ai_military_rampage (aiunit.c:715)
==25011==    by 0x434BAD: ai_military_attack (aiunit.c:1800)
==25011==    by 0x43640E: ai_manage_military (aiunit.c:2145)
==25011==    by 0x437553: ai_manage_unit (aiunit.c:2330)



    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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