{"action":"created","issue":{"url":"https://api.github.com/repos/JACoders/OpenJK/issues/809","repository_url":"https://api.github.com/repos/JACoders/OpenJK","labels_url":"https://api.github.com/repos/JACoders/OpenJK/issues/809/labels{/name}","comments_url":"https://api.github.com/repos/JACoders/OpenJK/issues/809/comments","events_url":"https://api.github.com/repos/JACoders/OpenJK/issues/809/events","html_url":"https://github.com/JACoders/OpenJK/issues/809","id":139582592,"number":809,"title":"Segmentation Fault","user":{"login":"erfg12","id":2896026,"avatar_url":"https://avatars.githubusercontent.com/u/2896026?v=3","gravatar_id":"","url":"https://api.github.com/users/erfg12","html_url":"https://github.com/erfg12","followers_url":"https://api.github.com/users/erfg12/followers","following_url":"https://api.github.com/users/erfg12/following{/other_user}","gists_url":"https://api.github.com/users/erfg12/gists{/gist_id}","starred_url":"https://api.github.com/users/erfg12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erfg12/subscriptions","organizations_url":"https://api.github.com/users/erfg12/orgs","repos_url":"https://api.github.com/users/erfg12/repos","events_url":"https://api.github.com/users/erfg12/events{/privacy}","received_events_url":"https://api.github.com/users/erfg12/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JACoders/OpenJK/labels/A%20-%20Engine","name":"A - Engine","color":"009800"},{"url":"https://api.github.com/repos/JACoders/OpenJK/labels/T%20-%20Bug","name":"T - Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-09T13:51:51Z","updated_at":"2016-03-28T23:08:07Z","closed_at":null,"body":"When I try to load my mod and use the command \"addbot reelo\", I get this error.\r\n\r\n```\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x000000000040c076 in CM_PointLeafnum_r (p=0xffffffffffffd840, num=0,\r\n    local=0x770160 <cmg>) at /root/OpenJK/codemp/qcommon/cm_test.cpp:43\r\n43                              d = p[plane->type] - plane->dist;\r\n```\r\n\r\nIf I use valgrind I get some more information.\r\n\r\n```\r\n==11461== Invalid read of size 4\r\n==11461==    at 0x40C076: CM_PointLeafnum_r(float const*, int, clipMap_s*) (cm_test.cpp:43)\r\n==11461==    by 0x40C124: CM_PointLeafnum(float const*) (cm_test.cpp:61)\r\n==11461==    by 0x4749A5: SV_inPVS(float const*, float const*) (sv_game.cpp:95)\r\n==11461==    by 0x4831B8: SV_GameSystemCalls(long*) (sv_gameapi.cpp:1898)\r\n==11461==    by 0x43E41B: VM_DllSyscall(long, ...) (vm.cpp:95)\r\n==11461==    by 0x11C6B335: trap_InPVS (in /root/jk3/clanmod/jampgamex86_64.so)\r\n==11461==    by 0x11C4F3DE: NAV_ClearPathToPoint (in /root/jk3/clanmod/jampgamex86_64.so)\r\n==11461==    by 0x11C318E1: vmMain (in /root/jk3/clanmod/jampgamex86_64.so)\r\n==11461==    by 0x43EB60: VM_Call(vm_s*, int, long, long, long, long, long, long, long, long, long, long, long, long) (vm.cpp:295)\r\n==11461==    by 0x47E1B9: GVM_NAV_ClearPathToPoint(int, float*, float*, float*, int, int) (sv_gameapi.cpp:324)\r\n==11461==    by 0x4620E4: CNavigator::TestNodePath(sharedEntity_s*, int, float*, qboolean_e) (navigator.cpp:1168)\r\n==11461==    by 0x4621DA: CNavigator::TestBestFirst(sharedEntity_s*, int, int) (navigator.cpp:1210)\r\n==11461==  Address 0xfffffffffefff7e0 is not stack'd, malloc'd or (recently) free'd\r\n==11461==\r\n==11461==\r\n==11461== Process terminating with default action of signal 11 (SIGSEGV): dumping core\r\n==11461==  Access not within mapped region at address 0xFFFFFFFFFEFFF7E0\r\n==11461==    at 0x40C076: CM_PointLeafnum_r(float const*, int, clipMap_s*) (cm_test.cpp:43)\r\n==11461==    by 0x40C124: CM_PointLeafnum(float const*) (cm_test.cpp:61)\r\n==11461==    by 0x4749A5: SV_inPVS(float const*, float const*) (sv_game.cpp:95)\r\n==11461==    by 0x4831B8: SV_GameSystemCalls(long*) (sv_gameapi.cpp:1898)\r\n==11461==    by 0x43E41B: VM_DllSyscall(long, ...) (vm.cpp:95)\r\n==11461==    by 0x11C6B335: trap_InPVS (in /root/jk3/clanmod/jampgamex86_64.so)\r\n==11461==    by 0x11C4F3DE: NAV_ClearPathToPoint (in /root/jk3/clanmod/jampgamex86_64.so)\r\n==11461==    by 0x11C318E1: vmMain (in /root/jk3/clanmod/jampgamex86_64.so)\r\n==11461==    by 0x43EB60: VM_Call(vm_s*, int, long, long, long, long, long, long, long, long, long, long, long, long) (vm.cpp:295)\r\n==11461==    by 0x47E1B9: GVM_NAV_ClearPathToPoint(int, float*, float*, float*, int, int) (sv_gameapi.cpp:324)\r\n==11461==    by 0x4620E4: CNavigator::TestNodePath(sharedEntity_s*, int, float*, qboolean_e) (navigator.cpp:1168)\r\n==11461==    by 0x4621DA: CNavigator::TestBestFirst(sharedEntity_s*, int, int) (navigator.cpp:1210)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/JACoders/OpenJK/issues/comments/202619163","html_url":"https://github.com/JACoders/OpenJK/issues/809#issuecomment-202619163","issue_url":"https://api.github.com/repos/JACoders/OpenJK/issues/809","id":202619163,"user":{"login":"erfg12","id":2896026,"avatar_url":"https://avatars.githubusercontent.com/u/2896026?v=3","gravatar_id":"","url":"https://api.github.com/users/erfg12","html_url":"https://github.com/erfg12","followers_url":"https://api.github.com/users/erfg12/followers","following_url":"https://api.github.com/users/erfg12/following{/other_user}","gists_url":"https://api.github.com/users/erfg12/gists{/gist_id}","starred_url":"https://api.github.com/users/erfg12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erfg12/subscriptions","organizations_url":"https://api.github.com/users/erfg12/orgs","repos_url":"https://api.github.com/users/erfg12/repos","events_url":"https://api.github.com/users/erfg12/events{/privacy}","received_events_url":"https://api.github.com/users/erfg12/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T23:08:07Z","updated_at":"2016-03-28T23:08:07Z","body":"Fixed by changing args from int to intptr_t in vmMain, dllEntry and syscall."}}