LucasForums

LucasForums (http://www.lucasforums.com/index.php)
-   Open Jedi Project (OJP) (http://www.lucasforums.com/forumdisplay.php?f=542)
-   -   Linux Server Crash (Segmentation Fault) (http://www.lucasforums.com/showthread.php?t=177245)

Mantis01 04-04-2007 02:25 AM

Linux Server Crash (Segmentation Fault)
 
This thread is branch from,
http://lucasforums.com/showthread.php?t=174838

And bug trac ticket is in,
https://opensvn.csie.org/traccgi/ojp/ticket/218

to Razor,
I had tracked this critical bug.
Following reporting,

Quote:

Originally Posted by razorace
I'm still working on getting the MeatGrinder to work. *shakes fist* Based on my qconsole.log output. It looks like there's a problem with the ROFF system and this is causing a system crash at game shutdown.

Are you getting something like a "Can't load ROFF file (null)" error?

I overlooked it. :(
In 0.0.9t(from compiled "LatestOJPEnhancedBeta.zip"), I'm getting spam error "Can't load ROFF file (null)" and finally crashed.
But that error occurs in only map mp/ffa4 and mp/ffa5.
Error does not occur in map mp/ffa1,2, and 3 without server crash.
Any idea?

razorace 04-04-2007 02:43 AM

Very interesting. Did you happen to get the qconsole.log of the resulting crash?

Mantis01 04-04-2007 03:16 AM

Quote:

Originally Posted by razorace
Very interesting. Did you happen to get the qconsole.log of the resulting crash?

Very thanks for your quick reply.
This bug is always happen in my environment.
Following log is "g_log" output (I dunno "qconsole.log").

Quote:

5:16 InitGame: \version\JAmp: v1.0.1.1 linux-i386 Nov 10 2003\dmflags\0\fraglimit\40\timelimit\5\capturelim it\0\g_maxHolocronCarry\3\g_privateDuel\1\g_saberL ocking\1\g_maxForceRan
k\6\duel_fraglimit\10\g_forceBasedTeams\0\g_duelWe aponDisable\1\g_gametype\0\g_needpass\0\protocol\2 6\mapname\mp/ffa5\sv_privateClients\0\sv_hostname\Test Server\sv_maxclients\8\sv_
maxRate\10000\sv_minPing\0\sv_maxPing\0\sv_floodPr otect\1\sv_fps\20\sv_allowDownload\0\bot_minplayer s\8\g_MaxGameClients\16\g_debugMelee\0\g_stepSlide Fix\1\g_noSpecMove\0\gamename\O
JP Enhanced v0.0.9t\g_jediVmerc\0\g_allowNPC\1\g_saberDamageSc ale\1\g_saberanimspeed\1\g_forceRegenTime\500\g_do dgeRegenTime\1000\g_forcePowerDisable\0\g_weaponDi sable\0\g_siegeResp
awn\20\g_saberWallDamageScale\0.4\g_siegeTeamSwitc h\1\bg_fighterAltControl\0\g_siegeTeam1\none\g_sie geTeam2\none\g_showDuelHealths\0\g_minHumans\2\g_m axBots\1\g_allowBotLimit\0\ojp_
skipcutscenes\0\ojp_allowBodyDodge\1
5:16 ClientConnect: 0
5:16 *****Spawning Bot BrokenTrojan^7*****
5:16 ClientBegin: 0
5:16 ClientConnect: 1
5:16 *****Spawning Bot ^6Da^6Hack^7*****
5:16 ClientBegin: 1
5:16 ClientConnect: 2
5:16 *****Spawning Bot ^1Angry^6Woman^7*****
5:16 ClientBegin: 2
5:16 ClientConnect: 3
5:16 *****Spawning Bot ^1NeedySith^7*****
5:16 ClientBegin: 3
5:16 ClientConnect: 4
5:16 *****Spawning Bot ^5Jedi^5Battlemaster^7*****
5:16 ClientBegin: 4
5:16 ClientConnect: 5
5:16 *****Spawning Bot ^2Running^1Fist^7*****
5:16 ClientBegin: 5
5:16 ClientConnect: 6
5:16 *****Spawning Bot ^2Looser^6Attacker^7*****
5:16 ClientBegin: 6
5:16 ClientConnect: 7
5:16 *****Spawning Bot ^5MissRaven^7*****
5:16 ClientBegin: 7
5:34 -8<------- Crash Information ------->8-
5:34 Please forward to the OJP team.
5:34 ---------------------------------------
5:34 Version: OJP Enhanced v0.0.9t Linux
5:34 Build Date: Apr 1 2007 5:34 Build Time: 12:45:11 5:34 Map: mp/ffa5
5:34 Signal: Segmentation fault (11)
5:34 Siginfo: 0xbfd300cc
5:34 Code: 1
5:34 Faulting Memory Ref/Instruction: 0xc4c30f60
5:34 DSO Information:
5:34 0xb7f52000 /lib/libdl.so.2
5:34 0xb7f2d000 /lib/tls/libm.so.6
5:34 0xb7f25000 /usr/lib/libcxa.so.1
5:34 0xb7def000 /lib/tls/libc.so.6
5:34 0xb7f5b000 /lib/ld-linux.so.2
5:34 0xb7c8e000 /lib/libnss_files.so.2
5:34 0xb5e35000 /home/jampd/ojpenhanced/jampgamei386.so
5:34 Stack frames: 12 entries
5:34 Backtrace:
5:34 (1) /home/jampd/ojpenhanced/jampgamei386.so(Touch_PlatCenterTrigger+0x27) [0xb5f583d7]
5:34 (2) [0xb7f5a440]
5:34 (3) /home/jampd/ojpenhanced/jampgamei386.so(G_TouchTriggers+0x274) [0xb5f19824]
5:34 (4) /home/jampd/ojpenhanced/jampgamei386.so(ClientThink_real+0x1719) [0xb5f1d1e9]
5:34 (5) /home/jampd/ojpenhanced/jampgamei386.so(G_RunClient+0x48) [0xb5f1f548]
5:34 (6) /home/jampd/ojpenhanced/jampgamei386.so(G_RunFrame+0x89a) [0xb5f4bc7a]
5:34 (7) /home/jampd/ojpenhanced/jampgamei386.so(vmMain+0xc4) [0xb5f46b84]
5:34 (8) ./linuxjampded [0x8088d43]
5:34 (9) ./linuxjampded [0x80579f4]
5:34 (10) ./linuxjampded [0x8075047]
5:34 (11) ./linuxjampded [0x80c5abe]
5:34 (12) /lib/tls/libc.so.6(__libc_start_main+0xe7) [0xb7e03f47]
5:34 -8<--------------------------------->8-

5:34 Attempting to clean up.
5:34 ShutdownGame:
5:34 ------------------------------------------------------------

ensiform 04-04-2007 03:33 AM

What ver of glibc does ur server use?

Mantis01 04-04-2007 03:47 AM

Quote:

Originally Posted by ensiform
What ver of glibc does ur server use?

I have two or more environments.
gcc is v.3.4.6 in present server, but I have never built the binary due to this bug,
Quote:

Originally Posted by Mantis01
In 0.0.9t(from compiled "LatestOJPEnhancedBeta.zip"),


razorace 04-04-2007 12:10 PM

Well, that last backtrace appears to have crashed in a different place than last time. I hate linux bugs!

For now, try running the game without TABBots on the same maps.

Mantis01 04-04-2007 11:18 PM

Quote:

Originally Posted by razorace
Well, that last backtrace appears to have crashed in a different place than last time. I hate linux bugs!

For now, try running the game without TABBots on the same maps.

I don't know the reason that server crash is linux bugs or OJP code.
Isn't there problem in C++ pointer ?

Okay, I will try running without TABBots.
Let me know how to disable TABBots (in cvar ?).

Mantis01 04-04-2007 11:44 PM

And I noticed my server don't output Warning Message with 0.0.9t official beta binary.
Warning message is "Crap! The last entry scanner in RemoveFirstOpenList?() totally failed."
https://opensvn.csie.org/traccgi/ojp/ticket/202

razorace 04-05-2007 12:02 PM

Since that bug is nearly impossible to get you probably got that bug during a bad compile. Linux seems to screw up .so compiles sometimes.

ensiform 04-07-2007 09:51 PM

Btw Mantis, gcc and glibc are not the same thing. glibc is a set of shared libraries and gcc is ur compiler.

Actually razor, that bug would occur for dumbledore quite often when he compiled my mod with TABBots, so we just commented it out... And it was all latest same code of TAB. I don't know if it occurs anymore though. And the TABBots spam all hell when a map doesn't have any waypoints. Such as most custom siege maps. (Different message though as I recall; but I don't remember what it was.) I don't see it mostly now though because I changed most of my bot messages to G_DPrintf (G_Printf but only when developer is set to 1 on server)

razorace 04-07-2007 10:18 PM

Yeah, the cause seems to have been one of the changes in the TABBot code. Still trying to figure it out.

Mantis01 04-08-2007 07:05 AM

Quote:

Originally Posted by ensiform
Btw Mantis, gcc and glibc are not the same thing. glibc is a set of shared libraries and gcc is ur compiler.

Oops, you right.
Glibc version is 2.3.6 in my present environment.

razorace 04-11-2007 12:06 AM

It looks like Linux instability is due to the use of TABBots. If you want to improve your stability, turn off the TABBots until I can figure out a fix.

Mantis01 04-11-2007 06:48 AM

Quote:

Originally Posted by razorace
It looks like Linux instability is due to the use of TABBots. If you want to improve your stability, turn off the TABBots until I can figure out a fix.

Good.
I'll do it, my master.
I can't wait the fix.

Sr. Canseco 08-01-2013 07:37 PM

Hello, i make a tutorial to fix this.

http://jkhub.org/tutorials/article/1...-linux-server/

This forum lives?

razorace 02-05-2014 07:59 PM

The forum lives (kind of). I still lurk here if my email spam filter doesn't kill my subscription emails. :)


All times are GMT -4. The time now is 11:50 AM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.