http://otland.net/f37/how-make-crash-report-otserv-forgotten-server-59083/
nie wiem co i jak od tad ://
Write this in command line the best will be if it will be placed in screen program so if u close putty it won't be terminated.
nie wiem co i jak od tad ://
Write this in command line the best will be if it will be placed in screen program so if u close putty it won't be terminated.
Code:#!/bin/bash ulimit -c unlimited while true; do ./otserv --log-file "output.txt" "error.txt"; done
It is gdb (crash reports) + autorestarter + console log storage to output.txt.
Now when otserv will crash it will drop a core dump with log(a new file named
core.pid , remember that u have to change pid for process id of crashed otserv example 4154)
now to "read" crash report u have to do fallowing :
Code:gdb otserv core.pid
after a while write
Code:bt