Jump to content
  • 0

Map-Server Crash - no crash dumps / logs


Linkin Park

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   11
  • Joined:  11/16/11
  • Last Seen:  

Hi,

I've installed gdb in my host, compiled the server with --enable-debug=gdb, started the server through ./athena-start start command in putty,

however at random time, the map-server crashes and it doesn't generate any crash dumps / core dumps.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi RaGERO,

You still need to do the following...

File: /etc/security/limits.conf

Change...

#*               soft    core            0

To...

*               soft    core            unlimited

File: /etc/profile

Change...

# No core files by default
#ulimit -S -c 0 > /dev/null 2>&1

To...

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

Type this in SSH/Terminal...

ulimit -c unlimited

Proceed to reboot your server, and then re-compile with --enable-debug=gdb once more. Now you may proceed to start your Athena server and it should generate the .core dump.

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   11
  • Joined:  11/16/11
  • Last Seen:  

Followed what you said and still it doesn't generate core file :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Followed what you said and still it doesn't generate core file :(

Hi RaGERO,

Did the server crash already? It's suppose to generate the core file within the trunk folder once it has crashed. You may also search for the .core file by using the following commands via Terminal.

updatedb
locate *.core

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

Followed what you said and still it doesn't generate core file :(

Hi RaGERO,

Did the server crash already? It's suppose to generate the core file within the trunk folder once it has crashed. You may also search for the .core file by using the following commands via Terminal.

updatedb
locate *.core

how can i read the *core* crash data for asura?

Edited by Brynner
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   6
  • Joined:  11/13/12
  • Last Seen:  


cd /path/to/rathena/

ls -lhart #there should be a core file here, usually its the last file after the map server crashes.

gdb map-server_sql <core file> #without the < >

bt full

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

cd /path/to/rathena/
ls -lhart #there should be a core file here, usually its the last file after the map server crashes.
gdb map-server_sql <core file> #without the < >
bt full

 

i try this. but only no stack ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   6
  • Joined:  11/13/12
  • Last Seen:  

Have you tried, bt full <core file>

Make sure there was a generated core file

do a ls -lhrt to see the latest updated file, usually the core file is the last one after a server crash

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

Have you tried, bt full <core file>

Make sure there was a generated core file

do a ls -lhrt to see the latest updated file, usually the core file is the last one after a server crash

 

my map-server is not crash, but cannot start due to hpm plugins. sory im using hercules.

if i disable the plugin, it works fine. really weird.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Have you tried, bt full <core file>

Make sure there was a generated core file

do a ls -lhrt to see the latest updated file, usually the core file is the last one after a server crash

 

my map-server is not crash, but cannot start due to hpm plugins. sory im using hercules.

if i disable the plugin, it works fine. really weird.

Hi mrlongshen,

 

You should probably contact the plugin developer then, or the Hercules community; maybe the plugin was not compiled correctly?

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
Answer this question...

×   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...