Follow-up Comment #2, bug #21900 (project freeciv):
Here's a related stack trace from a segmentation fault crash, also in
action_prob() and handle_unit_get_actions() in actions.c
Program terminated with signal 11, Segmentation fault.
#0 0x08198459 in player_has_real_embassy (pplayer=pplayer@entry=0x0,
pplayer2=pplayer2@entry=0x9d134f8)
at player.c:189
No locals.
#1 0x0819849e in player_has_embassy (pplayer=0x0, pplayer2=0x9d134f8) at
player.c:178
No locals.
#2 0x08145591 in can_see_techs_of_target (pow_player=pow_player@entry=0x0,
target_player=target_player@entry=0x9d134f8) at metaknowledge.c:247
No locals.
#3 0x0812b268 in tech_can_be_stolen (target_player=0x9d134f8,
actor_player=0x0) at actions.c:447
No locals.
#4 action_prob (wanted_action=wanted_action@entry=ACTION_SPY_STEAL_TECH,
actor_player=0x0,
actor_tile=actor_tile@entry=0x0, actor_unit=actor_unit@entry=0x0,
target_player=target_player@entry=0x9d134f8,
target_city=target_city@entry=0xaf50ec0,
target_tile=target_tile@entry=0x9db5a80,
target_unit=target_unit@entry=0x0, target_specialist=0x0,
target_output=0x0, target_building=0x0, actor_specialist=0x0,
actor_output=0x0, actor_building=0x0,
actor_city=0x0) at actions.c:609
known = 2
chance = 254
#5 0x0812bb40 in action_prob_vs_city (actor_unit=actor_unit@entry=0x0,
action_id=action_id@entry=7,
target_city=target_city@entry=0xaf50ec0) at actions.c:660
No locals.
#6 0x080e0180 in handle_unit_get_actions (pc=pc@entry=0x82977a0
<connections>, actor_unit_id=663,
target_tile_id=11062) at unithand.c:239
act = 7
actor_player = <optimized out>
actor_unit = 0x0
target_tile = <optimized out>
probabilities = {255, 0, 0, 255, 255, 255, 255, 0, 0, 0}
target_unit = 0x0
target_city = 0xaf50ec0
#7 0x0809d879 in server_handle_packet
(type=type@entry=PACKET_UNIT_GET_ACTIONS,
packet=packet@entry=0xb043938, pplayer=pplayer@entry=0xa2e58d0,
pconn=pconn@entry=0x82977a0 <connections>) at hand_gen.c:250
No locals.
#8 0x08051608 in server_packet_input (pconn=pconn@entry=0x82977a0
<connections>, packet=0xb043938,
type=87) at srv_main.c:1702
pplayer = 0xa2e58d0
__FUNCTION__ = "server_packet_input"
#9 0x080d58c7 in incoming_client_packets (pconn=<optimized out>) at
sernet.c:450
command_ok = <optimized out>
packet = {data = 0xb043938, type = PACKET_UNIT_GET_ACTIONS}
#10 server_sniff_all_input () at sernet.c:842
pconn = 0x82977a0 <connections>
nb = <optimized out>
i = <optimized out>
s = <optimized out>
max_desc = <optimized out>
readfs = {fds_bits = {128, 0 <repeats 31 times>}}
writefs = {fds_bits = {0 <repeats 32 times>}}
exceptfs = {fds_bits = {0 <repeats 32 times>}}
tv = {tv_sec = 0, tv_usec = 999998}
__FUNCTION__ = "server_sniff_all_input"
#11 0x08052e2d in srv_running () at srv_main.c:2401
save_counter = 1
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:2879
__FUNCTION__ = "srv_main"
#13 0x0804cb02 in main (argc=17, argv=0xbf974d94) at civserver.c:458
inx = 17
showhelp = <optimized out>
showvers = <optimized out>
option = <optimized out>
__FUNCTION__ = "main"
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21900>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev