N
NeoTrantor
Hi,
is there any way to print/log a backtrace or crash report on segfault
without the need of user interaction? I know I could run my program
via gdb and use "bt" to see what happened on crash but the program I
want to debug is a server which *must* be restarted immediately after
it crashed. I didn't find an auto-restart like feature in gdb. Tools
like valgrind came also in option but they slow down too much.
All I need is a simple information on what function/call caused the
crash that can be logged into a file or at least dumped to stdout/
stderr.
is there any way to print/log a backtrace or crash report on segfault
without the need of user interaction? I know I could run my program
via gdb and use "bt" to see what happened on crash but the program I
want to debug is a server which *must* be restarted immediately after
it crashed. I didn't find an auto-restart like feature in gdb. Tools
like valgrind came also in option but they slow down too much.
All I need is a simple information on what function/call caused the
crash that can be logged into a file or at least dumped to stdout/
stderr.