Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10502) Assertion failure in create_tmap for dry world
Home

[Freeciv-Dev] (PR#10502) Assertion failure in create_tmap for dry world

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10502) Assertion failure in create_tmap for dry world
From: "Benedict Adamson" <badamson@xxxxxxxxxxx>
Date: Tue, 12 Oct 2004 12:46:09 -0700
Reply-to: rt@xxxxxxxxxxx

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

[Resending because previous attempts did not register in RT]

Freeciv 2.0.0-beta1 crashes for a small world with a large fraction of
landmass, because of an assertion failure:
civserver: temperature_map.c:78: create_tmap: Assertion `temperature_map
== ((void *)0)' failed.

This is the stack trace:
#3  0x400a8b3f in __assert_fail () from /lib/libc.so.6
#4  0x0813b9f8 in create_tmap (real=false) at temperature_map.c:78
#5  0x08138058 in initworld (pstate=0xbffff6e0) at mapgen.c:1623
#6  0x08138250 in mapgenerator2 () at mapgen.c:1690
#7  0x08136409 in map_fractal_generate (autosize=true) at mapgen.c:1029
#8  0x080515c0 in srv_loop () at srv_main.c:1775
#9  0x080511cf in srv_main () at srv_main.c:1622
#10 0x0804a8fb in main (argc=3, argv=0xbffffa34) at civserver.c:167

Attached is an autogame that reproduces the problem for my computer
(Debian GNU/Linux sarge, gcc 3.3.5). Note that I complied after
configuring with CFLAGS="-O0 -g".




set size 1
set aifill 3
set startunits cccccxxxx
set researchcost 4
set foodbox 5

set landmass 85

set generator 2
set specials 1000
set dispersion 4
set huts 0
set barbarians 0
normal

set mapseed 13
set gameseed 101

set timeout -1
create Caesar
start



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