Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2003:
[Freeciv-Dev] Re: (PR#7009) Segfault in first turn
Home

[Freeciv-Dev] Re: (PR#7009) Segfault in first turn

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ajmitch@xxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7009) Segfault in first turn
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Mon, 1 Dec 2003 00:32:32 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7009 >

On Sun, Nov 30, 2003 at 11:30:20PM -0800, Guest wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7009 >
> 
> Using CVS (HEAD) updated a few minutes ago, although this issue has been
> present for a few days: 
> On ending the first turn, in civserver:
> Program received signal SIGSEGV, Segmentation fault.
> 0x080b2a5d in build_landarea_map_turn_0 (pcmap=0x817d904) at score.c:214
> 214           pcmap->player_landarea[owner]++;
> (gdb) bt full
> #0  0x080b2a5d in build_landarea_map_turn_0 (pcmap=0x817d904) at score.c:214
>         i = 3
>         x = 3
>         y = 0
>         WMI_index = 3
>         turn = 0

>         owner = 1075843300

That is the problem. The ptile->city field is probably garbage.

I can't reproduce this. Valgrind doesn't find any invalid memory
reads.

How can this problem be reproduces?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "SIGDANGER - The System is likely to crash soon"




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