URL:
<http://gna.org/bugs/?21853>
Summary: Segfault while autosaving player style in autogame
Project: Freeciv
Submitted by: sveinung
Submitted on: Fri 21 Mar 2014 12:07:33 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: 2.6.0
Discussion Lock: Any
Operating System: None
Planned Release:
_______________________________________________________
Details:
The autogame used the civ2civ3 ruleset, had the AI set to hard and was set to
be saved each 105 (+/-5) turn. (I don't remember the exact value I set
saveturns to)
Since no patch I had applied during the crash touches saving I assume the
problem is present in trunk.
Backtrace from gdb below:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6a94ada in strlen () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0 0x00007ffff6a94ada in strlen () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x000000000061a10b in real_fc_strdup (str=str@entry=0x40 <Address 0x40 out
of bounds>, called_as=called_as@entry=0x664ca9 "strdup", line=line@entry=2911,
file=file@entry=0x6d7a85 "registry_ini.c") at mem.c:141
dest = <optimized out>
#2 0x000000000061da7e in section_entry_str_new
(psection=psection@entry=0x1f26ce0, name=<optimized out>,
value=value@entry=0x40 <Address 0x40 out of bounds>,
escaped=escaped@entry=true) at registry_ini.c:2911
pentry = 0x1f27400
#3 0x00000000006213d2 in secfile_insert_str_full (secfile=<optimized out>,
string=0x40 <Address 0x40 out of bounds>, comment=comment@entry=0x0,
allow_replace=allow_replace@entry=false, no_escape=no_escape@entry=false,
include=include@entry=false, path=path@entry=0x688f09
"player%d.style_by_name")
at registry_ini.c:1131
fullpath =
"player12.style_by_name\000e\000team_no\000\000\000\000\000\000\000\000[",
'\000' <repeats 15 times>, "
f\333\366\377\177\000\000\030\000\000\000\000\000\000\000\335%f\000\000\000\000\000w\000\000\000\000\000\000\000\270rm\000\000\000\000\000\270(\271\000\000\000\000\000\200\354\250\366\377\177\000\000\060\000\000\000\000\000\000\000\030\000\000\000\000\000\000\000\030\000\000\000\000\000\000\000\035\240a\000\000\000\000\000
l\362\001", '\000' <repeats 12 times>, "`F\260\001\000\000\000\000`l\362\001",
'\000' <repeats 12 times>, "\237{a\000\000\000\000\000
S\365\001\000\000\000\000"...
ent_name = 0x7fffffffd279 "style_by_name"
psection = 0x1f26ce0
pentry = 0x0
args = {{gp_offset = 48, fp_offset = 48, overflow_arg_area =
0x7fffffffd770, reg_save_area = 0x7fffffffd670}}
__FUNCTION__ = "secfile_insert_str_full"
#4 0x00000000004c818a in sg_save_player_main (plr=plr@entry=0x19c0980,
saving=<optimized out>) at savegame2.c:3946
i = <optimized out>
plrno = <optimized out>
ship = 0x19c0b50
#5 0x00000000004c96fc in sg_save_players (saving=<optimized out>) at
savegame2.c:3503
pplayer = 0x19c0980
_pslot = 0xb928c0
#6 savegame2_save_real (scenario=<optimized out>, save_reason=0x3000000028
<Address 0x3000000028 out of bounds>, file=0x19c0980) at savegame2.c:625
No locals.
#7 savegame2_save (file=file@entry=0x1f55320,
save_reason=save_reason@entry=0x66448c "Autosave",
scenario=scenario@entry=false) at savegame2.c:528
__FUNCTION__ = "savegame2_save"
savetimer = <optimized out>
#8 0x0000000000437cb0 in save_game
(orig_filename=orig_filename@entry=0x7fffffffe200 "freeciv-T0214-Y01570-auto",
save_reason=save_reason@entry=0x66448c "Autosave",
scenario=scenario@entry=false) at srv_main.c:1288
filepath =
"freeciv-T0214-Y01570-auto\000\377\377\377\177\000\000\377\377\377\377\377\177\000\000\300\337\377\377\377\177\000\000\277\341\377\377\377\177\000\000\340O\333\366\377\177",
'\000' <repeats 34 times>, "\030*\301", '\000' <repeats 15 times>, "\301",
'\000' <repeats 14 times>,
"@\201\001\000\000\000\000@\276\301\000\000\000\000\000\353\001\000\000\000\000\000\000\025\342\377\377\377\177\000\000\377\343\377\377\377\177\000\000\362\336\377\377\377\177\000\000\361\336\377\377\377\177\000\000\026nb\000\000\000\000\000\001\000\000\000\f\000\000\000"...
dot = <optimized out>
filename = <optimized out>
file = 0x1f55320
timer_cpu = 0x1e7fb80
timer_user = 0x223df10
__FUNCTION__ = "save_game"
#9 0x00000000004380f8 in save_game_auto
(save_reason=save_reason@entry=0x66448c "Autosave", type=type@entry=AS_TURN)
at srv_main.c:1405
filename =
"freeciv-T0214-Y01570-auto\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\242\000\000\000\002\000\000\000\001\000\000\000\002\000\000\000\n\000\000\000\005\000\000\000\001\000\000\000\062\000\000\000\062\000\000\000\005\000\000\000\000\000"...
reason_filename = 0x0
#10 0x000000000043a8bd in save_game_auto (type=AS_TURN, save_reason=0x66448c
"Autosave") at srv_main.c:1096
reason_filename = 0x0
#11 srv_running () at srv_main.c:2381
save_counter = 0
i = <optimized out>
is_new_turn = true
skip_mapimg = false
eot_timer = <optimized out>
need_send_pending_events = false
#12 srv_main () at srv_main.c:2881
__FUNCTION__ = "srv_main"
#13 0x00000000004322ce in main (argc=3, argv=0x7fffffffe648) at
civserver.c:454
inx = 3
showhelp = <optimized out>
showvers = <optimized out>
option = <optimized out>
__FUNCTION__ = "main"
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21853>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev