Nothing entered.
[http://sourceforge.net/p/ufoai/bugs/2614 Item 2614] imported from sourceforge.net tracker on 2013-01-28 19:43:45
Something like this: https://sourceforge.net/tracker/?func=detail&aid=3025167&group_id=157793&atid=805242
During enemy turn game crashed with SIGABRT. I found this bug the first time. The map was medium farm (summer) with Harvester UFO
Game v2.3 compiled for AMD64 Ubuntu Linux 10.04.
"version" is "UFO: Alien Invasion 2.3 AMD64 Jul 2 2010 Linux DEBUG build 30785"
error message:
Team 7's round started!
ufo: src/game/g_combat.c:1051: G_GetShotFromType: Assertion `firemode >= 0' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff5b3ea75 in raise () from /lib/libc.so.6
backtrace:
(gdb) bt full
#0 0x00007ffff5b3ea75 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007ffff5b425c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007ffff5b37941 in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#3 0x00007fffcebbeaa2 in G_GetShotFromType (ent=0x7fffe003d3f8, shootType=-536620040, firemode=-1, weapon=0x7fffffffe058, container=0x7fffffffe078, fd=0x7fffffffe060) at src/game/g_combat.c:1051
fdArray = 0x63cc390
od = 0x63cc110
item = 0x7fffcf4aeaa0
__PRETTY_FUNCTION__ = "G_GetShotFromType"
#4 0x00007fffcebbeb7b in G_ClientShoot (player=0x7fffd0b3a8b0, ent=0x7fffe003d3f8, at=0x7fffe0038344 "d|", shootType=-536620040, firemode=-1, mock=0x0, allowReaction=qtrue, z_align=0) at src/game/g_combat.c:1087
fd = 0x0
weapon = 0x7fffcf4aeaa0
dir = {0, 0, 7.49149153e-39}
center = {0, 0, 0}
target = {0, 0, 0}
shotOrigin = {0, 0, 8.19429316e-39}
i = 16711680
ammo = 5847643
prevDir = 0
reactionLeftover = 33581690
shots = 0
container = 3
mask = 0
quiet = qtrue
__PRETTY_FUNCTION__ = "G_ClientShoot"
#5 0x00007fffcebb42b6 in AI_ActorThink (player=0x7fffd0b3a8b0, ent=0x7fffe003d3f8) at src/game/g_ai.c:981
fdIdx = -1
bestAia = {to = "xi\001", stop = "xi\001", shootType = -536620040, shots = 255 '\377', target = 0x7fffe0038298, fd = 0x4cd8d60, z_align = 0}
#6 0x00007fffcebb44d6 in AI_Run () at src/game/g_ai.c:1044
ent = 0x7fffe003d3f8
player = 0x7fffd0b3a8b0
i = 1
#7 0x00007fffcebc4e8f in G_RunFrame () at src/game/g_main.c:420
No locals.
#8 0x000000000053ded3 in SV_RunGameFrame () at src/server/sv_game.c:418
No locals.
#9 0x0000000000540bcb in SV_Frame (now=1160347, data=0x0) at src/server/sv_main.c:772
No locals.
#10 0x0000000000518bf1 in tick_timer (now=1160347, data=0x7fffd0a35348) at src/common/common.c:1014
timer = 0x7fffd0a35348
old_interval = 100
lateness = 13
#11 0x00000000005190d2 in Qcommon_Frame () at src/common/common.c:1165
time_to_next = 0
event = 0x115b6008
#12 0x0000000000585a32 in main (argc=1, argv=0x7fffffffe348) at src/ports/linux/linux_main.c:53
No locals.
===== Comments Ported from Sourceforge =====
====== sadkov (2010-07-06 11:02:38) ======
config.log
====== sadkov (2010-07-06 16:27:38) ======
Now I updated sources recompilled my game. It is build 30916 now.
The same bug exists.
Error message:
Team 7's round started!
ufo: src/game/g_combat.c:1051: G_GetShotFromType: Assertion `firemode >= 0' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff5b3ea75 in raise () from /lib/libc.so.6
backtrace:
(gdb) bt full
#0 0x00007ffff5b3ea75 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007ffff5b425c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007ffff5b37941 in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#3 0x00007fffc36f3aa2 in G_GetShotFromType (ent=0x7fffd19a4648, shootType=-778418616, firemode=-1, weapon=0x7fffffffe058, container=0x7fffffffe078, fd=0x7fffffffe060) at src/game/g_combat.c:1051
fdArray = 0x6377410
od = 0x6377190
item = 0x7fffc3fe3b60
__PRETTY_FUNCTION__ = "G_GetShotFromType"
#4 0x00007fffc36f3b7b in G_ClientShoot (player=0x7fffd3beefd0, ent=0x7fffd19a4648, at=0x7fffd199fb64 "|}", shootType=-778418616, firemode=-1, mock=0x0, allowReaction=qtrue, z_align=0) at src/game/g_combat.c:1087
fd = 0x0
weapon = 0x7fffc3fe3b60
dir = {0, 0, -nan(0x7fe0c0)}
center = {0, 0, 0}
target = {0, 0, 0}
shotOrigin = {0, 0, 4.48415509e-44}
i = 16711680
ammo = 0
prevDir = 0
reactionLeftover = 40589
shots = 0
container = 3
mask = 0
quiet = qtrue
__PRETTY_FUNCTION__ = "G_ClientShoot"
#5 0x00007fffc36e92b6 in AI_ActorThink (player=0x7fffd3beefd0, ent=0x7fffd19a4648) at src/game/g_ai.c:981
fdIdx = -1
bestAia = {to = "\222\223", stop = "\222\223", shootType = -778418616, shots = 255 '\377', target = 0x7fffd199fab8, fd = 0x4cd8d60, z_align = 0}
#6 0x00007fffc36e94d6 in AI_Run () at src/game/g_ai.c:1044
ent = 0x7fffd19a4648
player = 0x7fffd3beefd0
i = 1
#7 0x00007fffc36f9e8f in G_RunFrame () at src/game/g_main.c:420
No locals.
#8 0x000000000053dedf in SV_RunGameFrame () at src/server/sv_game.c:418
No locals.
#9 0x0000000000540bd7 in SV_Frame (now=1675915, data=0x0) at src/server/sv_main.c:772
No locals.
#10 0x0000000000518bfd in tick_timer (now=1675915, data=0x7fffe0364538) at src/common/common.c:1014
timer = 0x7fffe0364538
old_interval = 100
lateness = 48
#11 0x00000000005190de in Qcommon_Frame () at src/common/common.c:1165
time_to_next = 0
event = 0x1122bc08
#12 0x0000000000585a3e in main (argc=1, argv=0x7fffffffe348) at src/ports/linux/linux_main.c:53
No locals.
====== tlh2000 (2010-07-06 19:03:31) ======
are you really using the 2.3 branch? or trunk?
====== sadkov (2010-07-07 06:32:56) ======
Yes, I use 2.3 branch, I download it from https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/branches/ufoai_2.3/
====== sadkov (2010-07-07 09:48:46) ======
save with crash
====== sadkov (2010-07-07 09:51:05) ======
Well, I have attached save where you can reproduce the bug (enter the mission and wait the turns until the enemy alien shoots).
====== sadkov (2010-07-07 11:01:51) ======
I also found the same crash with SIGSEGV. This crash also happens when enemy shoots. Here are the error message and backtrace:
LoadLibrary (./base/game.so)
==== InitGame ====
SV_AssembleMap: Sequential map assembly in 3 ms
CM_LoadMap: "-tropic/tr_ +h01 +h02 +h03 +h04 +craft_drop_firebird +craft_crash_scout +f06 +h03 +f01 +h01 +f06 +f02 +f06 +f07 +p01" "-24 0 0 -8 -8 0 -8 8 0 8 24 0 0 -24 0 -24 -24 0 -24 -8 0 8 -8 0 -24 8 0 8 8 0 8 16 0 0 24 0 -24 24 0 -8 24 0 16 24 0"
Rerouted for RMA in 0.0s
checksum for the map '+tropic': 3284938111
ufo script checksum 2070961926
Created AI player (team 0)
Created AI player (team 7)
-------------------------------------
Connecting to localhost...
connection attempt from loopback connection
load material file: 'materials/tropic.mat'
added light, ambient=0.476837
Starting the game...
victor has joined team 1
music change to alBasrahM (from PsymongN5)
music change to van_mission2 (from alBasrahM)
(player 0) It's team 1's round
victor has taken control over team 1.
Team 1 ended round
Team 7's round started!
[STATS] alien (Rniuk Uk Kronok) kills civilian (a c) with Burst of plaspistol_ammo
[STATS] alien (Uonak Uk Kronok) kills civilian (b c) with Stab of kerrblade
********************
ERROR: Game Error: G_GetShotFromType: unknown shoot type 391550600.
********************
Shutdown server: Server crashed.
==== ShutdownGame ====
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff04fbde7 in ?? () from /lib/libgcc_s.so.1
(gdb) bt full
#0 0x00007ffff04fbde7 in ?? () from /lib/libgcc_s.so.1
No symbol table info available.
#1 0x00007ffff04fc66e in _Unwind_Backtrace () from /lib/libgcc_s.so.1
No symbol table info available.
#2 0x00007ffff5c0a36e in backtrace () from /lib/libc.so.6
No symbol table info available.
#3 0x0000000000587092 in Sys_Backtrace () at src/ports/unix/unix_main.c:543
symbols = {0x587092, 0x517246, 0x53d4d8, 0x5222c6, 0x260ffffe350, 0x5c9bfc, 0x0, 0x2c04928, 0x1ffffd830, 0x80, 0x7fffffffd830, 0x7fffdc14ae80, 0x7fffffffd870, 0x0, 0x5, 0xffffffffffffffff, 0x5c9bfc, 0x2c04928,
0x7fffffffd8c0, 0x115ae1d8, 0x7fffffffe350, 0x0, 0x0, 0x2c04928, 0x7fffffffd8c0, 0x51a45c, 0x7fffffffd8c0, 0x4e24b9, 0x58807c, 0x5bee2d, 0x0, 0x115ae1d8, 0x3696218, 0x17569688, 0x7fffffffd8e0, 0x51a4b9, 0x58807c,
0x5bee2d, 0x7fffffffd910, 0x4e2b94, 0x7fffffffd910, 0x43a748, 0x58807c, 0x58809c, 0x7fffffffd920, 0x42f5a0, 0x7fffffffd940, 0x42e5e9, 0x7fffffffd940, 0x587630}
i = 0
#4 0x0000000000517246 in Com_Error (code=1, fmt=0x5d3433 "Game Error: %s") at src/common/common.c:275
argptr = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7fffffffda50, reg_save_area = 0x7fffffffd990}}
msg = "Game Error: G_GetShotFromType: unknown shoot type 391550600.\n", '\000' <repeats 4034 times>
recursive = qfalse
#5 0x000000000053d4d8 in SV_error (fmt=0x7fffce2859b0 <Address 0x7fffce2859b0 out of bounds>) at src/server/sv_game.c:85
msg = "G_GetShotFromType: unknown shoot type 391550600.\n\000\000\000\000\000\000\000\240\026\301\002", '\000' <repeats 36 times>"\377, \377\377\377\000\000\000\000\v\000\000\000\000\000\000\000\000\005K\006\000\000\000\000 \000\000\334\377\177\000\000\000\000\250\303\000\000\020C\000\000@A\000\000\000\000\000\000\250\303\000\000\020C\000\000@A", '\000' <repeats 16 times>"\377, \177", '\000' <repeats 30 times>"\377, \177\000\000(K\300\002\377\377\377\377\001\000\000\000\001\000\000\000\360\201\\\000\000\000\000\000p\335\377\377\377\177\000\000\260\334\377\377\377\177\000\000VRS\000\000\000\000\000\230\002\000\000;\000\000\000\377\377\377\377", '\000' <repeats 12 times>, "z\226R\000\000\000\000\000s\000\000\000\000\000\000"...
argptr = {{gp_offset = 16, fp_offset = 48, overflow_arg_area = 0x7fffffffdf50, reg_save_area = 0x7fffffffde90}}
#6 0x00007fffce2448d0 in ?? ()
No symbol table info available.
#7 0x000000000000000a in ?? ()
No symbol table info available.
#8 0x00007fffffffe070 in ?? ()
No symbol table info available.
#9 0x00007fffffffe088 in ?? ()
No symbol table info available.
#10 0x00007fffffffe068 in ?? ()
No symbol table info available.
#11 0x1756968800000000 in ?? ()
No symbol table info available.
#12 0x0000000017569688 in ?? ()
No symbol table info available.
#13 0x00007fffff008271 in ?? ()
No symbol table info available.
#14 0x000a0004ffffe020 in ?? ()
No symbol table info available.
#15 0x0000000000002020 in ?? ()
No symbol table info available.
#16 0x00000000176dd020 in ?? ()
No symbol table info available.
#17 0x00007fffffffe0b0 in ?? ()
No symbol table info available.
#18 0x00007fffce244b7b in ?? ()
No symbol table info available.
#19 0x00007fffffffe080 in ?? ()
No symbol table info available.
#20 0x0623bbd5f271ac00 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#21 0x0000000000000000 in ?? ()
No symbol table info available.
====== sadkov (2010-07-10 06:35:58) ======
This bug was found on just every battle in campaign mode (skirmish and multiplayer was not tested).
In this bug firemode can be any number.
====== sadkov (2010-07-17 11:06:49) ======
The bug was fixed in the last build. (31037)
====== sadkov (2010-07-17 11:19:44) ======
I'm sorry, bug wasn't fixed - it appeared again.
====== geever (2010-07-18 12:25:47) ======
Please check r31041 or later. Reopen if not fixed.
-geever
====== sf-robot (2010-09-25 02:20:36) ======
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).