Jump to content

Crashlog with 0 Bytes


Guest Marik

Recommended Posts

Hi,

my mangos server is running on an debian 64-bit dedicated server.

To start my process I use this script:

#!/bin/sh
screen -dmS mangos-worldd-restarter ./restarter_debug_bin.sh
screen -dmS mangos-realmd ./mangos-realmd

Which calles:

#!/bin/sh

###############
# About: Auto restart mangos-worldd on crash & generate crash report into crash_log_(DATE_TIME).log
###############
# 1. Compile MaNGOS with parameter: --with-debug-info
# 2. Put auto_restarter.sh into compiled mangos directory (where folders: bin/, lib/, etc/)
# 3. (Only once): chmod +x auto_restarter.sh
# 4. Usage: ./auto_restarter.sh -c etc/mangosd.conf
# p.s. Make sure you have "gdb" installed.
###############

# config:
# path to mangos-worldd binary
daemon=./mangos-worldd
# system
export LD_LIBRARY_PATH=.:lib:$LD_LIBRARY_PATH

if [ "`ulimit -c`" -eq 0 ]; then
   ulimit -c unlimited
fi


while true
   do 
   MANGOS=`ps -el | grep mangos-worldd`
   $daemon $*
   if [ -z "$MANGOS" ]; then
       dte=`date +%F_%H-%M-%S`
       gdb $daemon core.* --batch --eval-command="bt ful" > ../logs/crash/crash_log_$dte.log
       mv crash_log_$dte.log gdb/crash_log_$dte.log
       mv log/Server.log dc/Server-$dte.log
       gzip dc/*.log --best
       rm core.*
   fi
   sleep 5
done

Anyway, this was pretty nice untill i reinstalled my server (the whole debian server, not just mangos ;) ).

Now I get with every crash an 0 Byte Crashlog.

First, I thought it was because of missing rights, but I granted the logs folder all rights.

Notice that the process creates the crashlogs corectly, but does not write anything to the file.

drwxrwxrwx 4 root root 4096 12. Dez 10:46 logs

Does somebody has an idea?

Thanks in advice

Marik

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use