[Freeciv-Dev] [bug #16797] Segmentation fault in tile_city()

2010-10-09 Thread pepeto
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

[Freeciv-Dev] [bug #16797] Segmentation fault in tile_city()

2010-10-09 Thread pepeto
Update of bug #16797 (project freeciv): Status:None = Ready For Test Assigned to:None = pepeto ___ Follow-up Comment #5: Fix attached. It

[Freeciv-Dev] [bug #16797] Segmentation fault in tile_city()

2010-10-09 Thread Jason Dorje Short
Follow-up Comment #6, bug #16797 (project freeciv): Yep good catch. The actual bug is in the final loop at the bottom of the function but using ptile throughout does make it easier to read. I'm also going to set punit = NULL right before the loop so any future bugs of this kind trigger

[Freeciv-Dev] [bug #16797] Segmentation fault in tile_city()

2010-10-09 Thread Jason Dorje Short
Update of bug #16797 (project freeciv): Severity: 3 - Normal = 5 - Blocker Status: Ready For Test = Fixed Assigned to: pepeto = jdorje Open/Closed:

[Freeciv-Dev] [bug #16797] Segmentation fault in tile_city()

2010-10-02 Thread Matthias Pfafferodt
URL: http://gna.org/bugs/?16797 Summary: Segmentation fault in tile_city() Project: Freeciv Submitted by: syntron Submitted on: Samstag 02.10.2010 um 11:23 Category: general Severity: 3 - Normal

[Freeciv-Dev] [bug #16797] Segmentation fault in tile_city()

2010-10-02 Thread pepeto
Follow-up Comment #1, bug #16797 (project freeciv): It may be related to bug #16775. I have encountered similar bugs when attempting to fix patch #1850. ___ Reply to this item at: http://gna.org/bugs/?16797

[Freeciv-Dev] [bug #16797] Segmentation fault in tile_city()

2010-10-02 Thread Matthias Pfafferodt
Follow-up Comment #2, bug #16797 (project freeciv): I run some autogames at the moment. This bug killed 12 of 17 games till now. Two there killed by another cause. So only 3 did finish with a victory. ___ Reply to this item at:

[Freeciv-Dev] [bug #16797] Segmentation fault in tile_city()

2010-10-02 Thread pepeto
Follow-up Comment #3, bug #16797 (project freeciv): Applying the patch for bug #16775 seems to fix the problem. ___ Reply to this item at: http://gna.org/bugs/?16797 ___ Message posté