{"action":"created","issue":{"url":"https://api.github.com/repos/JACoders/OpenJK/issues/778","labels_url":"https://api.github.com/repos/JACoders/OpenJK/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/JACoders/OpenJK/issues/778/comments","events_url":"https://api.github.com/repos/JACoders/OpenJK/issues/778/events","html_url":"https://github.com/JACoders/OpenJK/issues/778","id":124125354,"number":778,"title":"JKO: SIGSEGV when deflecting rocket with Force","user":{"login":"Civil","id":844380,"avatar_url":"https://avatars.githubusercontent.com/u/844380?v=3","gravatar_id":"","url":"https://api.github.com/users/Civil","html_url":"https://github.com/Civil","followers_url":"https://api.github.com/users/Civil/followers","following_url":"https://api.github.com/users/Civil/following{/other_user}","gists_url":"https://api.github.com/users/Civil/gists{/gist_id}","starred_url":"https://api.github.com/users/Civil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Civil/subscriptions","organizations_url":"https://api.github.com/users/Civil/orgs","repos_url":"https://api.github.com/users/Civil/repos","events_url":"https://api.github.com/users/Civil/events{/privacy}","received_events_url":"https://api.github.com/users/Civil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-28T20:57:35Z","updated_at":"2015-12-29T17:15:01Z","closed_at":null,"body":"In Debug mode it causes SIGABRT, in Release it's SIGSEGV somewhere after.\r\n```\r\nopenjo_sp.x86_64: /home/civil/src/OpenJK/code/rd-vanilla/G2_API.cpp:794: int G2API_InitGhoul2Model(CGhoul2Info_v&, const char*, int, qhandle_t, qhandle_t, int, int): Assertion `model < 8' failed.\r\n\r\nProgram received signal SIGABRT, Aborted.\r\n0x00007ffff6abe528 in raise () from /lib64/libc.so.6\r\n(gdb) backtrace\r\n#0  0x00007ffff6abe528 in raise () from /lib64/libc.so.6\r\n#1  0x00007ffff6abf97a in abort () from /lib64/libc.so.6\r\n#2  0x00007ffff6ab7417 in __assert_fail_base () from /lib64/libc.so.6\r\n#3  0x00007ffff6ab74c2 in __assert_fail () from /lib64/libc.so.6\r\n#4  0x00007ffff0f43fed in G2API_InitGhoul2Model (ghoul2=..., fileName=0x7fffffffc030 \"models/weapons2/noweap/noweap.glm\", customSkin=0, customShader=0, \r\n    modelFlags=0, lodBias=0) at /home/civil/src/OpenJK/code/rd-vanilla/G2_API.cpp:794\r\n#5  0x0000000000472d63 in SV_G2API_InitGhoul2Model (ghoul2=..., fileName=0x7fffffffc030 \"models/weapons2/noweap/noweap.glm\", modelIndex=51, customSkin=0, \r\n    customShader=0, modelFlags=0, lodBias=0) at /home/civil/src/OpenJK/code/server/sv_game.cpp:593\r\n#6  0x00007fffd76c6f6b in G_CreateG2AttachedWeaponModel (ent=0x7fffd7cde0c0 <g_entities+268128>, \r\n    psWeaponModel=0x7fffd7fbb6b0 <weaponData+21200> \"models/weapons2/noweap/noweap.md3\") at /home/civil/src/OpenJK/codeJK2/game/wp_saber.cpp:295\r\n#7  0x00007fffd75eb507 in NPC_ChangeWeapon (newWeapon=18) at /home/civil/src/OpenJK/codeJK2/game/NPC_combat.cpp:844\r\n#8  0x00007fffd75b20ba in ATST_Attack () at /home/civil/src/OpenJK/codeJK2/game/AI_Atst.cpp:228\r\n#9  0x00007fffd75b22f8 in NPC_BSATST_Default () at /home/civil/src/OpenJK/codeJK2/game/AI_Atst.cpp:326\r\n#10 0x00007fffd75e3be5 in NPC_BehaviorSet_ATST (bState=0) at /home/civil/src/OpenJK/codeJK2/game/NPC.cpp:1631\r\n#11 0x00007fffd75e3d77 in NPC_RunBehavior (team=2, bState=0) at /home/civil/src/OpenJK/codeJK2/game/NPC.cpp:1729\r\n#12 0x00007fffd75e4100 in NPC_ExecuteBState (self=0x7fffd7cde0c0 <g_entities+268128>) at /home/civil/src/OpenJK/codeJK2/game/NPC.cpp:1874\r\n#13 0x00007fffd75e4b7a in NPC_Think (self=0x7fffd7cde0c0 <g_entities+268128>) at /home/civil/src/OpenJK/codeJK2/game/NPC.cpp:2165\r\n#14 0x00007fffd7665fd1 in GEntity_ThinkFunc (self=0x7fffd7cde0c0 <g_entities+268128>) at /home/civil/src/OpenJK/codeJK2/game/g_functions.cpp:70\r\n#15 0x00007fffd767068b in G_RunThink (ent=0x7fffd7cde0c0 <g_entities+268128>) at /home/civil/src/OpenJK/codeJK2/game/g_main.cpp:977\r\n#16 0x00007fffd76711f8 in G_RunFrame (levelTime=869350) at /home/civil/src/OpenJK/codeJK2/game/g_main.cpp:1410\r\n#17 0x0000000000475824 in SV_Frame (msec=16, fractionMsec=0) at /home/civil/src/OpenJK/code/server/sv_main.cpp:513\r\n#18 0x000000000044b47c in Com_Frame () at /home/civil/src/OpenJK/code/qcommon/common.cpp:1391\r\n#19 0x00000000004c0a34 in main (argc=1, argv=0x7fffffffd828) at /home/civil/src/OpenJK/shared/sys/sys_main.cpp:789\r\n(gdb) select-frame 4\r\n(gdb) info locals\r\ninfo = {mSlist = std::vector of length 0, capacity 0, mBltlist = std::vector of length 0, capacity 0, mBlist = std::vector of length 0, capacity 0, \r\n  mModelindex = 0, animModelIndexOffset = 0, mCustomShader = 0, mCustomSkin = 0, mModelBoltLink = 0, mSurfaceRoot = 0, mLodBias = 0, mNewOrigin = 0, \r\n  mGoreSetTag = 0, mModel = 0, mFileName = '\\000' <repeats 63 times>, mAnimFrameDefault = 0, mSkelFrameNum = 0, mMeshFrameNum = 0, mFlags = 0, \r\n  mTransformedVertsArray = 0x0, mBoneCache = 0x0, mSkin = 0, mValid = false, currentModel = 0x0, currentModelSize = 0, animModel = 0x0, \r\n  currentAnimModelSize = 0, aHeader = 0x0}\r\nmodel = 8\r\n__PRETTY_FUNCTION__ = \"int G2API_InitGhoul2Model(CGhoul2Info_v&, const char*, int, qhandle_t, qhandle_t, int, int)\"\r\n(gdb) quit\r\n```"},"comment":{"url":"https://api.github.com/repos/JACoders/OpenJK/issues/comments/167833124","html_url":"https://github.com/JACoders/OpenJK/issues/778#issuecomment-167833124","issue_url":"https://api.github.com/repos/JACoders/OpenJK/issues/778","id":167833124,"user":{"login":"ensiform","id":997399,"avatar_url":"https://avatars.githubusercontent.com/u/997399?v=3","gravatar_id":"","url":"https://api.github.com/users/ensiform","html_url":"https://github.com/ensiform","followers_url":"https://api.github.com/users/ensiform/followers","following_url":"https://api.github.com/users/ensiform/following{/other_user}","gists_url":"https://api.github.com/users/ensiform/gists{/gist_id}","starred_url":"https://api.github.com/users/ensiform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensiform/subscriptions","organizations_url":"https://api.github.com/users/ensiform/orgs","repos_url":"https://api.github.com/users/ensiform/repos","events_url":"https://api.github.com/users/ensiform/events{/privacy}","received_events_url":"https://api.github.com/users/ensiform/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T17:15:01Z","updated_at":"2015-12-29T17:15:01Z","body":"https://github.com/JACoders/OpenJK/wiki/Compilation-guide"}}