Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2001:
[Freeciv-Dev] Re: bug in function get_worker_city (PR#742)
Home

[Freeciv-Dev] Re: bug in function get_worker_city (PR#742)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: bug in function get_worker_city (PR#742)
From: Thue <thue@xxxxxxx>
Date: Fri, 13 Apr 2001 14:38:33 -0700 (PDT)

Hmm; I cannot reproduce this.
Looking at the code it looks ok.
Could you play a few more turns on that savegame so I have a sure way to 
reproduce the crash?

Looking at the code, one (and pretty much only) thing that could go wrong 
with the symtoms of the core dump was that a statement inside an assert was 
not evaluated, see
http://www.freeciv.org/lxr/source/server/citytools.c?v=cvs#L1795
You might want to try removing the assert but leave the statement.
(which compiler are you using? Any unusual options?)

-Thue

On Friday 13 April 2001 20:13, Nicolas Brunel wrote:
> Hello,
>
>   I encountered a bug playing friday the 13 th april cvs version.
> The savegame can be found on ftp.freeciv.org in the incoming directory.
> The bug will occur after the year 3250 bc. Please solve the problem
> by patching the sources with the appropriate corrections.
>
> Happy bug hunting,
>
> Nicolas Brunel
>
> Ps
>
> gdb message is :
>
> #0  0x809328c in get_worker_city (pcity=0x8870c18, x=135510900,
> y=-1073744292)
>     at city.c:114
> #1  0x8062d51 in update_city_tile_status (pcity=0x8870c18,
> city_x=135510900,
>     city_y=-1073744292) at citytools.c:1852
> #2  0x8064067 in server_set_worker_city (pcity=0x81ff1d8, city_x=2,
> city_y=4)
>     at citytools.c:1796
> #3  0x80650a1 in worker_loop (pcity=0x81ff1d8, foodneed=0xbffff6a8,
>     prodneed=0xbffff6ac, workers=0xbffff6b0) at cityturn.c:651
> #4  0x80653d5 in auto_arrange_workers (pcity=0x81ff1d8) at cityturn.c:738
> #5  0x8061a72 in create_city (pplayer=0x813bb74, x=34, y=20,
>     name=0xbffff7ac "Liepaja") at citytools.c:1056
> #6  0x80544f2 in handle_unit_build_city (pplayer=0x813bb74,
> req=0xbffff79c)
>     at unithand.c:475
> #7  0x808b97c in ai_do_build_city (pplayer=0x813bb74, punit=0x81fd878)
>     at settlers.c:69
> #8  0x808f9fd in auto_settler_findwork (pplayer=0x813bb74,
> punit=0x81fd878)
>     at settlers.c:1307
> #9  0x808ffb2 in auto_settlers_player (pplayer=0x813bb74) at
> settlers.c:1366
> #10 0x80907fa in auto_settlers () at settlers.c:1478
> #11 0x804cc9b in srv_main () at srv_main.c:471
> #12 0x8049ac6 in main (argc=3, argv=0xbffffab4) at civserver.c:147
> #13 0x4004816b in __libc_start_main () from /lib/libc.so.6




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: bug in function get_worker_city (PR#742), Thue <=