Skip to content

Commit

Permalink
Next to live debugging the crash also save a crash dump.
Browse files Browse the repository at this point in the history
On Solaris we already save the crash dump using gcore so we can do
postmortem debugging. We now also try this on other platforms so we can
do postmortem debugging on those platforms.
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 93effb7 commit d5cb1ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/btraceback.in
Expand Up @@ -39,6 +39,7 @@ SunOS)
| @sbindir@/bsmtp -h @smtp_host@ -f @dump_email@ -s "Bareos DBX traceback of ${PNAME}" @dump_email@
;;
*)
gcore -o ${WD}/${PNAME} $2
gdb -quiet -batch -x @scriptdir@/btraceback.gdb $1 $2 >${WD}/bareos.$2.traceback 2>&1
PNAME="${PNAME} on `hostname`"
cat ${WD}/bareos.$2.traceback \
Expand Down

0 comments on commit d5cb1ca

Please sign in to comment.