Jump to content

How to enable CRASH/CORE DUMPS in your server (linux)


ragnazorg

Recommended Posts


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  250
  • Reputation:   44
  • Joined:  11/13/11
  • Last Seen:  

So you're a dedicated server owner and your server crashed but it didn't save your core or crash dumps.

How to enable it?

Login with your root account.

Look for etc/security/limits.conf

make sure to un-comment this line.

#* soft core unlimited

Do remember # means its commented. Now if you want to remove the comment it should be

*			   soft	core			unlimited

Then restart your server.

Edited by ragnazorg
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   153
  • Joined:  11/10/11
  • Last Seen:  

There are more steps involved to get core dumps that have detailed information about the crash reason.

First, eAthena has to be configured to enable debugging (e.g. for gdb):

./configure --enable-debug=gdb

If you don't want to edit the limits in the post above, but only for the current running shell, then use this:

ulimit -c unlimited

More about this here: http://compute.cnr.b...an-cgi?ulimit+2

You can run the server now.

Afterwards,you will have a file named 'core' (or something similiar) within your eAthena folder as soon as the server crashes. Use this to get detailed information:

gdb <server> <core>, e.g.
gdb map-server_sql core

You may have to install gdb first with 'apt-get install gdb', however, inside gdb enter this to get detailed information:

bt full

It will display a call stack where the last called function is at top. There's also a line displayed to show you where the crash happened. Go ahead and check this line to fix it.

Edited by Shinryo
  • Upvote 2
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

Is it possible and how to enable coredumps on windows xp ?

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

Compile problem. See the image below

post-524-0-76971900-1350266895_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...