Jump to content
  • 0
Sign in to follow this  
Kuroyama

Create Crash Dump

Question

Hello everyone, it's me again /sob

Need a little help bout creating a crash dump.

I did follow this guides:

 

https://herc.ws/board/topic/2930-emergency-map-server-crash/

https://herc.ws/board/topic/7566-map-server-crash-how-to-get-dump-or-error-log/#comment-45609

https://herc.ws/wiki/GDB

https://herc.ws/board/topic/14678-linux-map-server-crash-on-autotrade/#comment-82120

 

./configure --enable-debug=gdb 
ulimit -c unlimited 

or even this

make clean
./configure --enable-sanitize --enable-debug=gdb --enable-manager=nomake

 

still no dump file. Looked already in var/crash and even on the trunk.

Please help.

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

you show only configure command. what about make? you run it after configure?

 

you used sanitize flags, if your compiler support them?

if compiler not support it, then it will be skipped.

but if sanitize flags supported by compiler, you don't need crash dump. on issue server will show message where it crashed by self.

 

Share this post


Link to post
Share on other sites
  • 0
  On 11/13/2020 at 10:35 AM, 4144 said:

you show only configure command. what about make? you run it after configure?

 

gdb map-server

run

you mean sir @4144?

 

I'm not sure if i'm doing right but I just did follow everything, from wiki to reference thread.

I just badly needed the crash dump file like the dbghelp plugin for windows.

Share this post


Link to post
Share on other sites
  • 0
make clean
./configure --enable-sanitize --enable-debug=gdb --enable-manager=no
make

i this commands

 

Share this post


Link to post
Share on other sites
  • 0
  On 11/13/2020 at 1:54 PM, 4144 said:

make clean ./configure --enable-sanitize --enable-debug=gdb --enable-manager=no make

make clean
./configure --enable-sanitize --enable-debug=gdb --enable-manager=no
make

i this commands

 

yes sir I did. it compiles smooth and no errors or something.

is there anything that I left out?

 

my map-server crash twice but I still can't find the dump file,

I usually close putty so can't monitor it real time that's why I need the dump file.

Share this post


Link to post
Share on other sites
  • 0

i hope you using screen or tmux?

because if not and you close your ssh connection, this is wrong. you cant see how your server working and cant control it.

 

at first check is your compiler support sanitizers. run this command and show output from it:

./configure --enable-sanitize --enable-debug=gdb --enable-manager=no|grep sanitize

Share this post


Link to post
Share on other sites
  • 0
  On 11/13/2020 at 5:44 PM, 4144 said:

i hope you using screen or tmux?

because if not and you close your ssh connection, this is wrong. you cant see how your server working and cant control it.

 

at first check is your compiler support sanitizers. run this command and show output from it:

./configure --enable-sanitize --enable-debug=gdb --enable-manager=no|grep sanitize

./configure --enable-sanitize --enable-debug=gdb --enable-manager=no|grep sanitize

image.png.d0203d363c87f9d3c39dbb449b5478e5.png

Share this post


Link to post
Share on other sites
  • 0

oh here your configure failed, this mean anything what you add to configure is not used

try configure like this:

 

./configure --enable-debug=gdb

and show output of it, at least some last lines

 

Share this post


Link to post
Share on other sites
  • 0
  On 11/14/2020 at 2:26 AM, 4144 said:

oh here your configure failed, this mean anything what you add to configure is not used

try configure like this:

 

./configure --enable-debug=gdb

./configure --enable-debug=gdb

and show output of it, at least some last lines

 

  Reveal hidden contents

 

Here it is sir @4144.

Edited by Kuroyama

Share this post


Link to post
Share on other sites
  • 0

ok, by default configure works. but sanitizers is not.

then if you want build your server need run this commands:

make clean
./configure --enable-debug=gdb
make

 

if you have issues with crash dump creation,

run map server from gdb like this:

gdb ./map-server

and run command

run

inside gdb

 

if you using screen you can reconnect after and see how your server crashed.

after crash in gdb run

bt

or

bt all

 

Share this post


Link to post
Share on other sites
  • 0
  On 11/14/2020 at 3:18 AM, 4144 said:

ok, by default configure works. but sanitizers is not.

then if you want build your server need run this commands:

make clean ./configure --enable-debug=gdb make

make clean
./configure --enable-debug=gdb
make

 

if you have issues with crash dump creation,

run map server from gdb like this:

gdb ./map-server

gdb ./map-server

and run command

run

run

inside gdb

 

if you using screen you can reconnect after and see how your server crashed.

after crash in gdb run

bt

bt

or

bt all

bt all

 

Will update you sir very soon after I encounter the crash again.

Share this post


Link to post
Share on other sites
  • 0
  On 11/14/2020 at 3:18 AM, 4144 said:

ok, by default configure works. but sanitizers is not.

then if you want build your server need run this commands:

make clean ./configure --enable-debug=gdb make

make clean
./configure --enable-debug=gdb
make

 

if you have issues with crash dump creation,

run map server from gdb like this:

gdb ./map-server

gdb ./map-server

and run command

run

run

inside gdb

 

if you using screen you can reconnect after and see how your server crashed.

after crash in gdb run

bt

bt

or

bt all

bt all

 

image.png.28c198f19bbc2fa8c23961adfc41ffd7.png

 

image.png.20554d4b48d9f66b43f2469118b5f0c9.png

 

Still no crash dump at all. @4144

Share this post


Link to post
Share on other sites
  • 0

you can show on your screenshot more info?

 

from lines what you show server not crashed at all.

Share this post


Link to post
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.   Restore formatting

  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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.