Nothing entered.
[http://sourceforge.net/p/ufoai/bugs/2069 Item 2069] imported from sourceforge.net tracker on 2013-01-28 19:18:54
When a harvester has downed an interceptor and others are still targeting the harvester I got a segfault:
Assertion `(*dest)[0] <= 180.0f && (*dest)[0] >= -180.0f && (*dest)[1] <= 90.0f && (*dest)[1] >= -90.0f' failed.
Here is full backtrace:
-----------------------------------
(gdb) f 3
#3 0x080a3fe5 in AIR_GetDestinationWhilePursuing (shooter=0xa200f18, target=0xa35cb18, dest=0xbfe9c63c)
at src/client/campaign/cp_aircraft.c:1934
1934 assert((*dest)[0] <= 180.0f && (*dest)[0] >= -180.0f && (*dest)[1] <= 90.0f && (*dest)[1] >= -90.0f);
-----------------------------------
(gdb) bt full
#0 0xb7cba7c6 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0xb7cbbfd8 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0xb7cb3840 in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#3 0x080a3fe5 in AIR_GetDestinationWhilePursuing (shooter=0xa200f18, target=0xa35cb18, dest=0xbfe9c63c)
at src/client/campaign/cp_aircraft.c:1934
shooterPos = {0.47557503, 0.691810906, -0.54334712}
targetPos = {0.815394938, 0.538116157, 0.21345298}
targetDestPos = {0.60550338, 0.791965783, 0.0784590021}
shooterDestPos = {-nan(0x400000), -nan(0x400000), -nan(0x400000)}
rotationAxis = {-0.362063915, 0.186335355, 0.913339376}
dist = -nan(0x400000)
angle = 0.870980203
__PRETTY_FUNCTION__ = "AIR_GetDestinationWhilePursuing"
#4 0x080a4067 in AIR_SendAircraftPursuingUFO (aircraft=0xa200f18, ufo=0xa35cb18) at src/client/campaign/cp_aircraft.c:1958
num = 0
dest = {-nan(0x400000), -nan(0x400000)}
#5 0x080c63c1 in AIRFIGHT_ExecuteActions (shooter=0xa200f18, target=0xa35cb18) at src/client/campaign/cl_airfight.c:393
slotIdx = -1
probability = 8.96831017e-44
__PRETTY_FUNCTION__ = "AIRFIGHT_ExecuteActions"
#6 0x080a2261 in CL_CampaignRunAircraft (dt=117, updateRadarOverlay=qtrue) at src/client/campaign/cp_aircraft.c:1230
base = (base_t *) 0xa2006a4
aircraft = (aircraft_t *) 0xa200f18
i = 1
j = 4
k = 2
radarOverlayReset = qtrue
__PRETTY_FUNCTION__ = "CL_CampaignRunAircraft"
#7 0x080ca844 in CL_CampaignRun () at src/client/campaign/cl_campaign.c:820
currenthour = 8
date = {year = 30492, month = 18 '\022', day = 8 '\b', hour = 8 '\b', min = 64 '@', sec = 34 '"'}
currentinterval = 755
checks = 0
dt = 117
i = 0
timeAlreadyFlied = 0
__PRETTY_FUNCTION__ = "CL_CampaignRun"
#8 0x08127738 in MN_MapNodeDraw (node=0xa3d1fd0) at src/client/menu/node/m_node_map.c:41
pos = {4.37863151e-34, -1.82640982}
#9 0x08114c2f in MN_DrawNode (node=0xa3d1fd0) at src/client/menu/m_draw.c:223
child = (menuNode_t *) 0x8118147
#10 0x08114c45 in MN_DrawNode (node=0xa3d1e30) at src/client/menu/m_draw.c:228
child = (menuNode_t *) 0xa3d1fd0
#11 0x08114d5d in MN_Draw () at src/client/menu/m_draw.c:272
hoveredNode = (menuNode_t *) 0xa3d1fd0
menu = (menuNode_t *) 0xa3d1e30
pos = 0
mouseMoved = qfalse
__PRETTY_FUNCTION__ = "MN_Draw"
#12 0x0809692d in SCR_UpdateScreen () at src/client/cl_screen.c:505
No locals.
#13 0x0808e83a in CL_Frame (now=2779515, data=0x0) at src/client/cl_main.c:1098
delta = 97
last_frame = 2779515
#14 0x081476e1 in tick_timer (now=2779515, data=0x1687dca4) at src/common/common.c:1084
timer = (struct timer *) 0x1687dca4
old_interval = 20
lateness = 91
#15 0x081479b9 in Qcommon_Frame () at src/common/common.c:1165
event = (struct event *) 0x2109711c
time_to_next = 0
#16 0x08195f77 in main (argc=1, argv=0xbfe9c9d4) at src/ports/linux/linux_main.c:58
No locals.
-----------------------------------
Unfortunally my interceptors has downed the harvester on second try to reproduce the bug so I cannot send you my savegame. :(
===== Comments Ported from Sourceforge =====
====== tlh2000 (2009-03-19 06:46:07) ======
assigned this to kracken
====== kracken (2009-03-19 17:59:29) ======
this should be fixed in trunk, r23604