[Freeciv-Dev] (PR#40521) server hang on completely unbuildable worklist

2008-10-08 Thread Timothy Brownawell

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40521 

Build city, go to worklist tab, check show future targets, add
something you can't build. Wait for the first (buildable) item to be
built, or buy it. Watch the server spin forever in
worklist_change_build_target.



while(!success) {
if (worklist_peek_ith(...))
/* FALSE, unbuildable item */
success = can_city_build_now(...)
else
/* when index is out of range,
   should probably be break/return */
success = FALSE;

switch(target.kind) {
/* find we can't build it, send
   various messages, maybe remove it,
   don't return or break */
}
}


$ svn info
Path: .
URL: svn://svn.gna.org/svn/freeciv/branches/S2_2
Repository Root: svn://svn.gna.org/svn/freeciv
Repository UUID: a0f10bec-cc02-0410-94fc-a9cfff90b4cd
Revision: 15242




___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] (PR#40520) civserver hangs and more

2008-10-08 Thread Christian Knoke

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40520 

Christian Knoke wrote on Oct 07, 12:26 (-0700):

 load 2-0125.sav.gz, start with chris, buy Caravan in Gahzni and click turn
 done: civserver hangs. Logs and core dumps available.

related to PR#40521, since core says:

(gdb) bt full
#0  0xb7fcb410 in ?? ()
No symbol table info available.
#1  0xbff0b3ac in ?? ()
No symbol table info available.
#2  0x01b6 in ?? ()
No symbol table info available.
#3  0x8441 in ?? ()
No symbol table info available.
#4  0xb7ed4593 in open () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#5  0xb7e78142 in _IO_file_open () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#6  0xb7e782e8 in _IO_file_fopen () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#7  0xb7e6d8c9 in fgets () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#8  0xb7e6fe0a in fopen64 () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#9  0x0804c01f in vreal_freelog (level=1,
message=0x8185b64 worklist_change_build_target() has unrecognized
#target kind (%d), ap=0xbff0b6b8 )
at log.c:278
fs = value optimized out
buf = letzte Mitteilung 524288mal wiederholt (insgesamt 1048576

Wiederholungen)\000��\031\000\000\000�d��\031\000\000\000�d8\bA\000\000\000\000\000\000\000(���\000\000\000\000�h���d��\000\000\000\000H�T\b\000\000\000\000\003\000\000\000Y\000\000\\000\000\0001\000\000\000P\000\000\000�W\030\b\200���qW\030\b�O���d���y;[EMAIL
 PROTECTED]...
bufbuf = {
  worklist_change_build_target() has unrecognized target kind
(0)\000n=29\000or (51,23) \Kaohsiung\[5]\000th., '\0' repeats 413
times,
  worklist_change_build_target() has unrecognized target kind
(0)\000n=45\000.\000\\000et\\000gz.sav.gz\ in data path., '\0' repeats
410 times}
bufbuf1 = true
repeated = 1940747
next = 2097152
prev = 1048576
prev_level = 1
#10 0x0804c372 in real_freelog (level=1,
message=0x8185b64 worklist_change_build_target() has unrecognized
#target kind (%d)) at log.c:342
ap = 0xbff0b6b8 
#11 0x080d7a83 in choose_build_target (pplayer=0x82adec8, pcity=0x8881178)
at cityturn.c:1096
No locals.
---Type return to continue, or q return to quit---
#12 0x080da6dd in city_build_stuff (pplayer=0x82adec8, pcity=0x8881178) at
cityturn.c:1523
__PRETTY_FUNCTION__ = city_build_stuff
#13 0x080dae6e in update_city_activities (pplayer=0x82adec8) at
cityturn.c:1740
pcity = (struct city *) 0x8881178
gold = 12
#14 0x080bb5e1 in srv_running () at srv_main.c:807
pplayer = value optimized out
eot_timer = (struct timer *) 0x8516fb8
save_counter = 1
is_new_turn = false
__PRETTY_FUNCTION__ = srv_running
#15 0x080bbf46 in srv_main () at srv_main.c:2226
No locals.
#16 0x0804aff7 in main (argc=Cannot access memory at address 0x8441
) at civserver.c:283
inx = 12
showhelp = false
showvers = false
option = value optimized out
(gdb)


-- 
Christian Knoke* * *http://cknoke.de
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev