[Freeciv-Dev] (PR#40068) server crash

2008-02-03 Thread Jason Short

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

 [wsimpson - Sat Feb 02 23:07:04 2008]:
 
 Jason Short wrote:
  Looks to me like this means dsite-location is invalid.  I have no
  familiarity with this code however.
 
 That's (my) very new border code.  I'll take a look at it.
 
 What I don't understand is why it's not reproducible?  Usually, that
 means
 an uninitialized variable, but all these structures are zeroed with
 calloc(),
 so that's unlikely

Saving and loading doesn't generally give identical AI behavior so if
this is caused by AI units moving or something then you won't get the
same behavior from the savegame most likely.

-jason


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


[Freeciv-Dev] (PR#40068) server crash

2008-02-02 Thread Christian Knoke

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


SVN S2_2 rev 14375 02 FEB 2008 GTK2

Unreproducible server crash. I think I was moving a trireme. Previous
savegame attached. Core file available on request. Backtrace follows.

Christian


[EMAIL PROTECTED]:~$ civclient
2: Alte Attribute wurden entfernt.

(civclient:17913): Gtk-CRITICAL **: gtk_progress_set_percentage: assertion
`percentage = 0  percentage = 1.0' failed
2: Verbindung zum Server verloren!

Core was generated by `civserver -p 5556 -q 1 -e --saves ~/.freeciv/saves'.
Program terminated with signal 11, Segmentation fault.
#0  0x08052439 in map_distance_vector (dx=0xbff034e4, dy=0xbff034e0, tile0=0x4, 
tile1=0x8a9c59c) at map.c:912
912   base_map_distance_vector(dx, dy,

(gdb) bt full
#0  0x08052439 in map_distance_vector (dx=0xbff034e4, dy=0xbff034e0, tile0=0x4, 
tile1=0x8a9c59c) at map.c:912
No locals.
#1  0x080524e6 in sq_map_distance (tile0=0x4, tile1=0x8a9c59c) at map.c:524
dx = 136853264
dy = 145343900
#2  0x080d72de in map_claim_border (ptile=0x8a9d49c, powner=0x82842ec) at 
maphand.c:1844
dsite = (struct vision_site *) 0x84535f8
r = value optimized out
downer = value optimized out
dtile_cr_radius = 3
psite = (struct vision_site *) 0x85ba010
range = value optimized out
#3  0x080d76aa in map_calculate_borders () at maphand.c:1904
myiter = (struct genlist_link *) 0x84adda8
pcity_player = (struct player *) 0x82842ec
cities_to_refresh = (struct city_list *) 0x8423438
#4  0x080b06b4 in end_turn () at srv_main.c:833
No locals.
#5  0x080b14bd in srv_running () at srv_main.c:1867
pplayer_index = value optimized out
eot_timer = (struct timer *) 0x8c75690
save_counter = 1
is_new_turn = true
__PRETTY_FUNCTION__ = srv_running
#6  0x080b1a6c in srv_main () at srv_main.c:2194
No locals.
#7  0x0804aaea in main (argc=Cannot access memory at address 0x4
) at civserver.c:265
inx = 8
showhelp = false
showvers = false
option = value optimized out
(gdb) quit

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



22testa-0300.sav.gz
Description: Binary data
___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] (PR#40068) server crash

2008-02-02 Thread Jason Short

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

 [chrisk - Sat Feb 02 12:25:18 2008]:
 
 
 SVN S2_2 rev 14375 02 FEB 2008 GTK2
 
 Unreproducible server crash. I think I was moving a trireme. Previous
 savegame attached. Core file available on request. Backtrace follows.

tile0 is being passed in a 0x04, obviously an invalid value.  From the
maphand code:

  struct vision_site *dsite = map_get_player_site(dtile, downer);
  int r = sq_map_distance(dsite-location, dtile);

Looks to me like this means dsite-location is invalid.  I have no
familiarity with this code however.

-jason


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


Re: [Freeciv-Dev] (PR#40068) server crash

2008-02-02 Thread William Allen Simpson

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

Jason Short wrote:
 Looks to me like this means dsite-location is invalid.  I have no
 familiarity with this code however.
 
That's (my) very new border code.  I'll take a look at it.

What I don't understand is why it's not reproducible?  Usually, that means
an uninitialized variable, but all these structures are zeroed with calloc(),
so that's unlikely



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