URL:
<http://gna.org/bugs/?15458>
Summary: create_unit_virtual() assert pplayer != NULL failed
Project: Freeciv
Submitted by: cazfi
Submitted on: Monday 02/22/2010 at 19:28
Category: None
Severity: 3 - Normal
Priority: 1 - Later
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release:
Discussion Lock: Any
Operating System: None
Planned Release:
_______________________________________________________
Details:
Crash from 2.2.0 server running galactic ruleset 0.2.4 (
http://forum.freeciv.org/viewtopic.php?t=3900&start=90 )
Program terminated with signal 6, Aborted.
#0 0x00007fdae89304b5 in *__GI_raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt full
#0 0x00007fdae89304b5 in *__GI_raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
pid = <value optimized out>
selftid = <value optimized out>
#1 0x00007fdae8933f50 in *__GI_abort () at abort.c:92
act = {__sigaction_handler = {sa_handler = 0x61af79, sa_sigaction =
0x61af79},
sa_mask = {__val = {140578182605032, 140735483543216, 1420,
140735483543456,
140578181753286, 206158430232, 140735483543472,
140735483543248,
140578181664168, 206158430256, 140735483543496, 37530032,
876688,
8243128152309657696, 8031651138266538272, 140735483553588}},
sa_flags = -391968365, sa_restorer = 0x61a860}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007fdae8929481 in *__GI___assert_fail (
assertion=0x61af79 "pplayer != ((void *)0)", file=<value optimized out>,
line=1420, function=0x61b0d0 "create_unit_virtual") at assert.c:81
buf = 0x23ca9b0 "freeciv-server: common/unit.c:1420:
create_unit_virtual: Assertion `pplayer != ((void *)0)' failed.\n"
#3 0x000000000057930e in create_unit_virtual (pplayer=0x0, pcity=0x0,
punittype=0x951c48, veteran_level=0)
at common/unit.c:1420
punit = 0x23ccc90
__PRETTY_FUNCTION__ = "create_unit_virtual"
#4 0x0000000000446b2d in create_unit_full (pplayer=0x0,
ptile=0x7fda00000003,
type=0x951c48, veteran_level=0, homecity_id=0, moves_left=-1, hp_left=-1,
ptrans=0x0) at server/unittools.c:1357
punit = 0x1fb0be0
pcity = 0x6888100e0
__PRETTY_FUNCTION__ = "create_unit_full"
#5 0x0000000000446aef in create_unit (pplayer=0x0, ptile=0x7fda00000003,
type=0x951c48, veteran_level=0, homecity_id=0, moves_left=-1)
at server/unittools.c:1343
No locals.
#6 0x00000000005b0197 in api_actions_create_unit (pplayer=0x0,
ptile=0x7fda00000003,
ptype=0x951c48, veteran_level=0, homecity=0x0, moves_left=-1)
at server/scripting/api_actions.c:52
No locals.
#7 0x00000000005ade90 in tolua_api_create_unit00 (tolua_S=0x1fb0be0)
at server/scripting/api_gen.c:1825
tolua_ret = 0x1f37c40
pplayer = 0x0
homecity = 0x0
moves_left = -1
ptile = 0x7fda00000003
ptype = 0x951c48
veteran_level = 0
tolua_err = {index = -2004811312, array = 32767, type = 0x5ac903
"\270\001"}
#8 0x00000000005b74e2 in luaD_precall (L=0x1fb0be0, func=0x1f37b90,
nresults=0)
at dependencies/lua-5.1/src/ldo.c:319
ci = 0x22c01c8
n = -1
cl = 0x21ff320
funcr = 160
#9 0x00000000005cc796 in luaV_execute (L=0x1fb0be0, nexeccalls=2)
at dependencies/lua-5.1/src/lvm.c:587
b = 7
nresults = 0
i = 58736860
ra = 0x1f37b90
cl = 0x2201d80
base = 0x1f37b60
k = 0x1f394c0
pc = 0x1f3965c
#10 0x00000000005b778d in luaD_call (L=0x1fb0be0, func=0x1f37b10,
nResults=1)
at dependencies/lua-5.1/src/ldo.c:377
No locals.
#11 0x00000000005b2464 in f_call (L=0x1fb0be0, ud=0x7fff88810800)
at dependencies/lua-5.1/src/lapi.c:800
c = 0x7fff88810800
#12 0x00000000005b6700 in luaD_rawrunprotected (L=0x1fb0be0, f=0x5b242f
<f_call>,
ud=0x7fff88810800)
at dependencies/lua-5.1/src/ldo.c:116
lj = {previous = 0x0, b = {{__jmpbuf = {16, -4799144688912561926,
4368480,
140735483547728, 0, 0, -4799144688946116358,
4798887639089678586},
__mask_was_saved = 0, __saved_mask = {__val = {35589128,
33230136,
140735483545392, 6061520, 140735483545552, 34539440,
140735483545504, 4368480, 140735483547728, 0, 0, 6044960,
32733968,
4, 6427900, 35622960}}}}, status = 0}
#13 0x00000000005b7b97 in luaD_pcall (L=0x1fb0be0, func=0x5b242f <f_call>,
u=0x7fff88810800, old_top=32, ef=16)
at dependencies/lua-5.1/src/ldo.c:463
status = 32733952
oldnCcalls = 0
old_ci = 0
old_allowhooks = 1 '\001'
old_errfunc = 0
#14 0x00000000005b250d in lua_pcall (L=0x1fb0be0, nargs=1, nresults=1,
errfunc=1)
at dependencies/lua-5.1/src/lapi.c:821
c = {func = 0x1f37b10, nresults = 1}
status = 0
func = 16
#15 0x00000000005a8fab in script_call (L=0x1fb0be0, narg=1, nret=1)
at server/scripting/script.c:128
status = 0
base = 1
#16 0x00000000005a9493 in script_callback_invoke (
callback_name=0x22b7280 "hut_enter_callback", nargs=1,
args=0x7fff888108e0)
at server/scripting/script.c:250
nres = 41927504
res = false
#17 0x00000000005a9f1a in script_signal_emit (signal_name=0x5e101d
"hut_enter",
nargs=1)
at server/scripting/script_signal.c:258
myiter = 0x0
pcallback = 0x1f396c0
hash = 0x21ff540
signal = 0x260c720
args = {{gp_offset = 32, fp_offset = 48, overflow_arg_area =
0x7fff888109e0,
reg_save_area = 0x7fff88810920}}
#18 0x000000000044a18e in unit_enter_hut (punit=0x22cce60)
at server/unittools.c:2377
pplayer = 0x983c90
behavior = HUT_NORMAL
#19 0x000000000044c00c in move_unit (punit=0x22cce60, pdesttile=0x20f24f0,
move_cost=3)
at server/unittools.c:3038
saved_id = 229
pplayer = 0x983c90
psrctile = 0x20f07b0
pcity = 0x0
ptransporter = 0x0
old_vision = 0x23c1d40
new_vision = 0x23bee50
saved_id = 229
unit_lives = true
__PRETTY_FUNCTION__ = "move_unit"
#20 0x00000000004ce2b7 in unit_move_handling (punit=0x22cce60,
pdesttile=0x20f24f0,
igzoc=false, move_diplomat_city=false)
at server/unithand.c:1366
move_cost = 3
pplayer = 0x983c90
pcity = 0x0
__PRETTY_FUNCTION__ = "unit_move_handling"
#21 0x0000000000467afe in ai_unit_attack (punit=0x22cce60, ptile=0x20f24f0)
at ai/aitools.c:1019
bodyguard = 0x0
sanity = 229
alive = false
__PRETTY_FUNCTION__ = "ai_unit_attack"
#22 0x00000000004659c5 in ai_unit_execute_path (punit=0x22cce60,
path=0x23be020)
at ai/aitools.c:221
ptile = 0x20f24f0
id = 229
is_ai = true
i = 1
#23 0x00000000004566f1 in ai_military_rampage (punit=0x22cce60, thresh_adj=1,
thresh_move=1) at ai/aiunit.c:686
count = 3
path = 0x23be020
__PRETTY_FUNCTION__ = "ai_military_rampage"
#24 0x000000000045a1d5 in ai_military_attack (pplayer=0x983c90,
punit=0x22cce60)
at ai/aiunit.c:1749
dest_tile = 0x950088
id = 229
ct = 10
pcity = 0x0
start_tile = 0x20f07b0
__PRETTY_FUNCTION__ = "ai_military_attack"
#25 0x000000000045b198 in ai_manage_military (pplayer=0x983c90,
punit=0x22cce60)
at ai/aiunit.c:2092
id = 229
__PRETTY_FUNCTION__ = "ai_manage_military"
#26 0x000000000045ba43 in ai_manage_unit (pplayer=0x983c90, punit=0x22cce60)
at ai/aiunit.c:2275
bodyguard = 0x0
is_ferry = false
__PRETTY_FUNCTION__ = "ai_manage_unit"
#27 0x000000000045bfb7 in ai_manage_units (pplayer=0x983c90)
at ai/aiunit.c:2381
punit = 0x22cce60
punit_numbers = 0x7fff88810d80
punit_index = 8
punit_size = 13
#28 0x00000000004e0b1b in ai_do_first_activities (pplayer=0x983c90)
at ai/aihand.c:436
No locals.
#29 0x0000000000430234 in ai_start_phase ()
at server/srv_main.c:648
MY_i = 15
pplayer = 0x983c90
#30 0x0000000000430971 in begin_phase (is_new_phase=true)
at server/srv_main.c:801
No locals.
#31 0x00000000004339c5 in srv_running ()
at server/srv_main.c:2054
eot_timer = 0x1f03770
save_counter = 7
is_new_turn = true
need_send_pending_events = false
__PRETTY_FUNCTION__ = "srv_running"
#32 0x000000000043481b in srv_main ()
at server/srv_main.c:2464
No locals.
#33 0x000000000042b5a1 in main (argc=17, argv=0x7fff88811058)
at server/civserver.c:362
inx = 17
showhelp = false
showvers = false
option = 0x1f06800 "P, \002"
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15458>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev