Razish / japp

JA++ server and client modification for Jedi Academy
GNU General Public License v2.0
44 stars 30 forks source link

ja++ serverside segmentation fault #359

Closed sgerbino closed 8 years ago

sgerbino commented 8 years ago

There seems to be a crash when activating a lift/elevator while using the latest OpenJK/ja++ and using Linux client/server.

Version information

Server

sgerbino@debian:~/builds/OpenJK/build$ uname -a
Linux debian 4.1.5-x86_64-linode61 #7 SMP Mon Aug 24 13:46:31 EDT 2015 x86_64 GNU/Linux

sgerbino@debian:~/builds/OpenJK/build$ git rev-parse HEAD
bdb1caec3f3ed5c2c9a78ed0a13aca080216a694

sgerbino@debian:~/builds/japp$ git rev-parse HEAD
e589db509154c2894e271c6f9a3948477d9d60d5

Client

[sgerbino@elysium ~]$ uname -a
Linux elysium 4.3.3-2-ARCH #1 SMP PREEMPT Wed Dec 23 20:09:18 CET 2015 x86_64 GNU/Linux

[sgerbino@elysium OpenJK]$ git rev-parse HEAD
bdb1caec3f3ed5c2c9a78ed0a13aca080216a694

[sgerbino@elysium japp]$ git rev-parse HEAD
e589db509154c2894e271c6f9a3948477d9d60d5

Server output snippet

sgerbino@debian:~/builds/OpenJK/build$ ./openjkded.x86_64 +set fs_game "japlus" +exec server.cfg
OpenJK-MP: v1.0.1.0 linux-x86_64 Dec 30 2015
----- FS_Startup -----
Current search path:
/home/sgerbino/.local/share/openjk/japlus
./japlus
/home/sgerbino/.local/share/openjk/base/jedicouncilgcx.pk3 (318 files)
/home/sgerbino/.local/share/openjk/base/jawatemple.pk3 (288 files)
/home/sgerbino/.local/share/openjk/base/assets3.pk3 (16 files)
/home/sgerbino/.local/share/openjk/base/assets2.pk3 (62 files)
/home/sgerbino/.local/share/openjk/base/assets1.pk3 (8320 files)
/home/sgerbino/.local/share/openjk/base/assets0.pk3 (15346 files)
/home/sgerbino/.local/share/openjk/base
./base

----------------------
24350 files in pk3 files
execing mpdefault.cfg
execing openjk_server.cfg
sv_cheats is read only.
couldn't exec autoexec.cfg
----- Initializing Renderer ----
--- Common Initialization Complete ---
Hostname: debian
IP: 127.0.1.1
Opening IP socket: localhost:29070
execing server.cfg
^9Cvar ^7sv_pure = ^9"^70^9"^7, ^7the default
------ Server Initialization ------
Server: mp/ffa3
----- FS_Startup -----
Current search path:
/home/sgerbino/.local/share/openjk/japlus
./japlus
/home/sgerbino/.local/share/openjk/base/jedicouncilgcx.pk3 (318 files)
/home/sgerbino/.local/share/openjk/base/jawatemple.pk3 (288 files)
/home/sgerbino/.local/share/openjk/base/assets3.pk3 (16 files)
/home/sgerbino/.local/share/openjk/base/assets2.pk3 (62 files)
/home/sgerbino/.local/share/openjk/base/assets1.pk3 (8320 files)
/home/sgerbino/.local/share/openjk/base/assets0.pk3 (15346 files)
/home/sgerbino/.local/share/openjk/base
./base

----------------------
24350 files in pk3 files
VM_Create: jampgamex86_64.so succeeded
Logging to logs/sv/console.log
Logging to logs/sv/security.log
Logging to logs/sv/admin.log
------------------------------------------------------------
InitGame: \capturelimit\0\dmflags\72\duel_fraglimit\10\fraglimit\00\g_debugMelee\0\g_duelWeaponDisable\1\g_forceBasedTeams\1\g_forcePowerDisable\0\g_gametype\0\g_jediVmerc\0\g_maxForceRank\7\g_noSpecMove\0\g_privateDuel\59\g_saberLocking\1\g_siegeRespawn\20\g_siegeTeam1\0\g_siegeTeam2\0\g_siegeTeamSwitch\1\g_stepSlideFix\0\g_weaponDisable\518019\japp_unlagged\1\sv_allowDownload\1\sv_autoDemo\0\sv_floodProtect\0\sv_fps\125\sv_hostname\^1plunder's dojo^7\sv_maxclients\32\sv_maxPing\0\sv_maxRate\25000\sv_minPing\0\timelimit\00\version\JAmp: v1.0.1.0 linux-x86_64 Dec 30 2015\g_maxHolocronCarry\3\g_needpass\0\protocol\26\mapname\mp/ffa3\sv_privateClients\0\bot_minplayers\0\Hosted_By\plunder\Website\nodelink.co\bg_fighterAltControl\0\g_showDuelHealths\0\gamename\JA+ Mod v2.6 B1\japp_version\JA++, 64 bits, Jan  2 2016, e589db5\jp_cinfo\69271907\jp_gripSpeedScale\0.4\pmove_overbounce\1\v\2.6B1\ssf\5F

Mod version: JA++, 64 bits, Jan  2 2016, e589db5
G_ReadSessionData: reading session/meta.json...done
-- Initialising ICARUS
]ICARUS Instance successfully created
Loading admin accounts (admins.json)
Loading admin strings
Loading telemarks (telemarks/mp/ffa3.json)
^2JPLua:^1 Failed to load main scripts: lua/init.lua
   LoadFile: Failed to load lua/init.lua, file doesn't exist

broadcast: print "Server: sv_cheats changed to 0\n"
Resolving masterjk3.ravensoft.com
masterjk3.ravensoft.com resolved to 104.40.82.212:29060
Sending heartbeat to masterjk3.ravensoft.com
Resolving master.jkhub.org
master.jkhub.org resolved to 178.33.231.116:29060
Sending heartbeat to master.jkhub.org
FinishSpawningItem: weapon_blaster startsolid at (-248 576 368)
Client 0 connecting with 16 challenge ping
cjp_client: 1.4B4... assumed JA+ csf 0x5... final csf 0x1F
Writing session file session/client00.json
ClientUserinfoChanged: 0 n\^1p^9lunder\t\0\model\jawa/default\ds\m\st\Kyle\st2\none\c1\0\c2\10\c3\0\c4\255\hc\100\
ClientConnect: 0 (^1p^9lunder^7) [IP: 98.116.89.234:29070^7]
broadcast: print "^1p^9lunder^7 @@@PLCONNECT\n"
Sending heartbeat to masterjk3.ravensoft.com
Sending heartbeat to master.jkhub.org
FinishSpawningItem: weapon_rocket_launcher startsolid at (2144 1008 424)
FinishSpawningItem: ammo_powercell startsolid at (-1168 -400 400)
FinishSpawningItem: ammo_powercell startsolid at (-1168 -448 400)
FinishSpawningItem: weapon_disruptor startsolid at (-96 80 688)
ClientUserinfoChanged: 0 <no change>
broadcast: print "^1p^9lunder^7 @@@PLENTER\n"
ClientBegin: 0
FinishSpawningItem: ammo_powercell startsolid at (1640 -568 240)
FinishSpawningItem: ammo_powercell startsolid at (1640 -512 240)
FinishSpawningItem: weapon_thermal startsolid at (-1152 320 368)
]Segmentation fault

Steps to reproduce

On the client, log in to the server and trigger any door, elevator, or lift.

Workaround

Server commit hash de4e37ff08fcfef56f5d95b35d6f649105a6e769 does not show this issue and seems to work with japp client head of branch. On the server, build and install commit de4e37ff08fcfef56f5d95b35d6f649105a6e769 of japp.

sgerbino commented 8 years ago

Steps to reproduce on Twitch: http://www.twitch.tv/p1und3r/v/33255652

ensiform commented 8 years ago

The stack trace would be more helpful than just showing it says seg fault. The commit you posted only affects client changes so you'll need to find a serverside commit that affects after that.