Raised This Month: $51 Target: $400
 12% 

Linux Random Unrecoverable Crashes


Post New Thread Reply   
 
Thread Tools Display Modes
moxie2020
Veteran Member
Join Date: Aug 2011
Old 05-26-2012 , 15:00   Re: Linux Random Unrecoverable Crashes
Reply With Quote #11

Quote:
Originally Posted by x00 View Post
Should be in "/your/server/directory/orangebox".
Did your server crash?

-x00
Hmmm. Nothing in orangebox folder.

Yes I had 1 server crash.

Does it only create a file on a crash?

Last edited by moxie2020; 05-26-2012 at 15:06.
moxie2020 is offline
x00
Member
Join Date: Sep 2011
Old 05-26-2012 , 15:22   Re: Linux Random Unrecoverable Crashes
Reply With Quote #12

Quote:
Originally Posted by moxie2020 View Post
Hmmm. Nothing in orangebox folder.

Yes I had 1 server crash.

Does it only create a file on a crash?
Usually yes, you can try to attach gdb directly to the process.
Start gdb, use "attach <pid>" and type "continue". On a crash, get a stacktrace with "bt" and copy that. You can run gdb in screen.

-x00
__________________
꞉⋮꞉
x00 is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 05-26-2012 , 18:52   Re: Linux Random Unrecoverable Crashes
Reply With Quote #13

Quote:
Originally Posted by x00 View Post
Usually yes, you can try to attach gdb directly to the process.
Start gdb, use "attach <pid>" and type "continue". On a crash, get a stacktrace with "bt" and copy that. You can run gdb in screen.

-x00
Ok, sorry very new to linux so I'm trying to get this right. I should start a new screen. Run gdb then attach the pid and type continue? Can I debug more that one server at a time? Do I need to use multiple gdb screens?
moxie2020 is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-02-2012 , 01:25   Re: Linux Random Unrecoverable Crashes
Reply With Quote #14

Quote:
Originally Posted by x00 View Post
Usually yes, you can try to attach gdb directly to the process.
Start gdb, use "attach <pid>" and type "continue". On a crash, get a stacktrace with "bt" and copy that. You can run gdb in screen.

-x00
Ok, Still having trouble with this. I have multiple locations running 10-12 servers each. How do you tell which pid is which? Can you attach more than one pid in the gdb screen or do I need to run 10 of those too?
moxie2020 is offline
pillepallus
Senior Member
Join Date: Oct 2011
Old 06-02-2012 , 11:55   Re: Linux Random Unrecoverable Crashes
Reply With Quote #15

"ps" command will bring up more information about pid.

i.e. ps -ef|grep SCREEN

then its easy to idenity the right one.

Last edited by pillepallus; 06-02-2012 at 12:07.
pillepallus is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-03-2012 , 14:34   Re: Linux Random Unrecoverable Crashes
Reply With Quote #16

Quote:
Originally Posted by pillepallus View Post
"ps" command will bring up more information about pid.

i.e. ps -ef|grep SCREEN

then its easy to idenity the right one.
Ugh. Linux is hard.

I tried to attach and got this message:
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.

I looked at the ptrace_scope file and its blank.

Last edited by moxie2020; 06-03-2012 at 15:00. Reason: update
moxie2020 is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-03-2012 , 16:23   Re: Linux Random Unrecoverable Crashes
Reply With Quote #17

Do I need to launch servers as root? I created a new user and used it to install srcds. Is this why servers are crashing and why -debug isn't working?
moxie2020 is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-04-2012 , 15:36   Re: Linux Random Unrecoverable Crashes
Reply With Quote #18

glibc detected *** ./srcds_linux: malloc(): memory corruption:

Finally a crash error. Anyone have a solution for this?
moxie2020 is offline
8088
Veteran Member
Join Date: Jan 2008
Old 06-05-2012 , 13:28   Re: Linux Random Unrecoverable Crashes
Reply With Quote #19

Quote:
Originally Posted by moxie2020 View Post
I tried to attach and got this message:
If you login as the user that owns the pid, you normally can attach to the process/screen without problems. However, if you su to that user, it tends to give problems.
Quote:
Do I need to launch servers as root?
No, absolutely not.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-05-2012 , 22:04   Re: Linux Random Unrecoverable Crashes
Reply With Quote #20

Here is a debug log finally. Can anyone help me translate?

PHP Code:
----------------------------------------------
CRASHTue Jun  5 18:50:05 CDT 2012
Start Line
: ./srcds_linux -game tf +ip 66.151.244.100 +maxplayers 24 +port 27044 -nohltv -debug -autoupdate -timeout 30 +mm_pluginsfile addons/metamod/metaplugins_goldrush.ini +sm_basepath addons/sourcemod_goldrush +servercfgfile dallas_goldrush.cfg +map pl_goldrush
[New LWP 3478]
[New 
LWP 3482]
[New 
LWP 3491]
[New 
LWP 3479]
[New 
LWP 3480]
[New 
LWP 3484]
[New 
LWP 3476]
[New 
LWP 4223]
[New 
LWP 3475]
[New 
LWP 3481]
[New 
LWP 3493]
[New 
LWP 3473]
[New 
LWP 3495]
[New 
LWP 3494]
[New 
LWP 3477]
[New 
LWP 3474]
[New 
LWP 3492]
[New 
LWP 3489]
[
Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./srcds_linux -game tf +ip 66.151.244.100 +maxplayers 24 +port 27018 -nohltv -d'.
Program terminated with signal 11, Segmentation fault.
#0  0x6d75642f in ?? ()
#0  0x6d75642f in ?? ()
#1  0xf76755a2 in __lll_lock_wait () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xf7670ead in _L_lock_686 () from /lib/i386-linux-gnu/libpthread.so.0
#3  0xf7670cf3 in pthread_mutex_lock () from /lib/i386-linux-gnu/libpthread.so.0
#4  0xef17564c in google_breakpad::ExceptionHandler::SignalHandler(int, siginfo*, void*) () from bin/crashhandler.so
#5  <signal handler called>
#6  0x6d75642f in ?? ()
#7  0xf7675712 in __lll_unlock_wake () from /lib/i386-linux-gnu/libpthread.so.0
#8  0xf7671d27 in _L_unlock_622 () from /lib/i386-linux-gnu/libpthread.so.0
#9  0xf7671c6a in __pthread_mutex_unlock_usercnt () from /lib/i386-linux-gnu/libpthread.so.0
#10 0xf778cb54 in CThreadSyncObject::Wait(unsigned int) () from bin/libtier0.so
#11 0xf778cce5 in CThreadEvent::Wait(unsigned int) () from bin/libtier0.so
#12 0xf6c32a12 in CQueuedPacketSender::Run() () from /home/pro/orangebox/bin/engine.so
#13 0xf778c8c7 in CThread::ThreadProc(void*) () from bin/libtier0.so
#14 0xf766ed4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#15 0xf75adace in clone () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.
eax            0xf0    240
ecx            0x80    128
edx            0x2    2
ebx            0xef1eaacc    -283202868
esp            0xef114cac    0xef114cac
ebp            0xd96    0xd96
esi            0x0    0
edi            0x0    0
eip            0x6d75642f    0x6d75642f
eflags         0x10202    [ IF RF ]
cs             0x23    35
ss             0x2b    43
ds             0x2b    43
es             0x2b    43
fs             0x0    0
gs             0x63    99
From        To          Syms Read   Shared Object Library
0xf77859d0  0xf77a4088  Yes (*)     bin/libtier0.so
0xf76c6a30  0xf76ef7e4  Yes (*)     bin/libvstdlib.so
0xf768c430  0xf76a6b08  Yes (*)     /lib/i386-linux-gnu/libm.so.6
0xf7683a60  0xf7684a08  Yes (*)     /lib/i386-linux-gnu/libdl.so.2
0xf766c650  0xf7678a78  Yes (*)     /lib/i386-linux-gnu/libpthread.so.0
0xf74d9f10  0xf760a35c  Yes (*)     /lib/i386-linux-gnu/libc.so.6
0xf77cc820  0xf77e4b9f  Yes (*)     /lib/ld-linux.so.2
0xf700b950  0xf7095708  Yes (*)     bin/dedicated.so
0xf6ff3600  0xf6ffdf04  Yes (*)     bin/libsteam_api.so
0xf6f71cc0  0xf6fb9d75  Yes         bin/libstdc++.so.6
0xf6f19e04  0xf6f29490  Yes         bin/libgcc_s.so.1
0xf6ad7330  0xf6d1d728  Yes (*)     /home/pro/orangebox/bin/engine.so
0xf66222a0  0xf664b808  Yes (*)     /home/pro/orangebox/bin/soundemittersystem.so
0xf64c9270  0xf65c7ebc  Yes (*)     /home/pro/orangebox/bin/materialsystem.so
0xf50293e0  0xf50ead78  Yes (*)     /home/pro/orangebox/bin/studiorender.so
0xf4e37bf0  0xf4fc3418  Yes (*)     /home/pro/orangebox/bin/vphysics.so
0xf4dba8b0  0xf4e107b8  Yes (*)     /home/pro/orangebox/bin/datacache.so
0xf4da1b20  0xf4dae074  Yes (*)     /home/pro/orangebox/bin/shaderapiempty.so
0xf36611c0  0xf41f66e4  Yes (*)     /home/pro/orangebox/tf/bin/server.so
0xf34514d0  0xf3463e60  Yes (*)     /home/pro/orangebox/bin/scenefilecache.so
0xef396670  0xefc41448  Yes (*)     bin/steamclient.so
0xef274f60  0xef28dc58  Yes (*)     bin/libtier0_s.so
0xef1fbb10  0xef242350  Yes (*)     bin/libvstdlib_s.so
0xef1701f0  0xef1ce818  Yes (*)     bin/crashhandler.so
0xeef3ee70  0xeefdda9c  Yes (*)     /home/pro/orangebox/bin/replay.so
0xf76b98d0  0xf76bd618  Yes (*)     /lib/i386-linux-gnu/librt.so.1
0xeec19150  0xeec1ae74  Yes         /home/pro/orangebox/tf/../tf/addons/metamod/bin/server.so
0xeebdc0a0  0xeec0dbd4  Yes         /home/pro/orangebox/tf/../tf/addons/metamod/bin/metamod.2.ep2v.so
0xf76b5860  0xf76b5e08  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/bin/sourcemod_mm_i486.so
0xee6ff720  0xee7a0e78  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/bin/sourcemod.2.ep2v.so
0xee5a7f00  0xee5d4ab8  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/bin/sourcemod.logic.so
0xee57a080  0xee597268  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/bin/sourcepawn.jit.x86.so
0xee5714b0  0xee574ec8  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/extensions/updater.ext.so
0xee53f080  0xee569af8  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/extensions/webternet.ext.so
0xedd1ca10  0xedd23b18  Yes (*)     /lib/i386-linux-gnu/libnss_files.so.2
0xedd14ba0  0xedd17b68  Yes (*)     /lib/i386-linux-gnu/libnss_dns.so.2
0xedbea6b0  0xedbf7578  Yes (*)     /lib/i386-linux-gnu/libresolv.so.2
0xedbcbf40  0xedbe1ab0  Yes         /home/pro/orangebox/tf/addons/sourcemod_control/extensions/smrcon.ext.2.ep2v.so
0xedd31d60  0xedd34f18  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/extensions/bintools.ext.so
0xedd0aac0  0xedd11988  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/extensions/game.tf2.ext.2.ep2v.so
0xedb6de90  0xedba5f68  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/extensions/sdktools.ext.2.ep2v.so
0xedb31320  0xedb4f984  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/extensions/steamtools.ext.so
0xed678130  0xed7b8fd8  Yes         /home/pro/orangebox/tf/addons/sourcemod_control/extensions/curl.ext.so
0xeda37410  0xedaf3aa4  Yes         /home/pro/orangebox/tf/addons/sourcemod_control/extensions/socket.ext.so
0xed9ba8d0  0xed9c2078  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/extensions/topmenus.ext.so
0xecdd9600  0xecdea7c8  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/extensions/regex.ext.so
0xec933d80  0xec93a1b8  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/extensions/clientprefs.ext.so
0xec2e7220  0xec364848  Yes         /home/pro/orangebox/tf/addons/sourcemod_control/extensions/dbi.mysql.ext.so
0xec284760  0xec291668  Yes (*)     /lib/i386-linux-gnu/libz.so.1
0xeacc6aa0  0xeacf0424  Yes         /home/pro/orangebox/tf/addons/sourcemod_control/extensions/sdkhooks.ext.2.ep2v.so
0xeb897640  0xeb8f60c8  Yes (*)     /home/pro/orangebox/tf/addons/sourcemod_control/extensions/dbi.sqlite.ext.so
0xe95694b0  0xe964aa04  Yes         bin/libsteamvalidateuseridtickets.so
0xe91af400  0xe9434228  Yes (*)     bin/libsteam.so
(*): Shared library is missing debugging information.
End of Source crash report
---------------------------------------------- 
moxie2020 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode