JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.03k stars 614 forks source link

Segfault in StandardBotAI #379

Closed haoNoQ closed 11 years ago

haoNoQ commented 11 years ago

0e7777a46c96e249de829bdb1c1fbfe240bd1f03 gentoo linux x64

Running multiplayer->solo game->duel, usually crashes on the second bot duel, probably when i click left mouse button to switch between bots' views.

Program received signal SIGSEGV, Segmentation fault.
0xefc9d9be in StandardBotAI (bs=0xefe4efc4 <bg_pool+12900>, thinktime=0.0179999992) at /home/noq/openjk/OpenJK/codemp/game/ai_main.c:6720
6720                                    desiredIndex = bs->wpCurrent->index-1;
(gdb) bt
#0  0xefc9d9be in StandardBotAI (bs=0xefe4efc4 <bg_pool+12900>, thinktime=0.0179999992) at /home/noq/openjk/OpenJK/codemp/game/ai_main.c:6720
#1  0xefc8f4be in BotAI (client=0, thinktime=0.0179999992) at /home/noq/openjk/OpenJK/codemp/game/ai_main.c:751
#2  0xefca01a2 in BotAIStartFrame (time=25299) at /home/noq/openjk/OpenJK/codemp/game/ai_main.c:7527
#3  0x080d13c4 in GVM_BotAIStartFrame (time=25299) at /home/noq/openjk/OpenJK/codemp/server/sv_gameapi.cpp:125
#4  0x080c4bcf in SV_BotFrame (time=25299) at /home/noq/openjk/OpenJK/codemp/server/sv_bot.cpp:592
#5  0x080cd8c1 in SV_Frame (msec=18) at /home/noq/openjk/OpenJK/codemp/server/sv_main.cpp:1042
#6  0x080691c2 in Com_Frame () at /home/noq/openjk/OpenJK/codemp/qcommon/common.cpp:1552
#7  0x0817bd3b in main (argc=1, argv=0xffffd224) at /home/noq/openjk/OpenJK/codemp/sys/sys_main.cpp:636
(gdb) print bs
$1 = (bot_state_t *) 0xefe4efc4 <bg_pool+12900>
(gdb) print bs->wpCurrent
$2 = (wpobject_t *) 0x0

Not sure what else to mention.

ensiform commented 11 years ago

There is already an issue for this. Closing Duplicate of issue #111.