info_path="${pfx}/${name}.info"
core_path="${pfx}/${name}.coredump"
log_path="${pfx}/${name}.log"
+tmp_callstack_path="${pfx}/${name}.callstack"
mkdir -p "$CRASH_PATH" "$pfx"
if [ $DEBUG -eq 1 ]
then
+ @CRASH_STACK_PATH@ --pid "$pid" > "$tmp_callstack_path"
@CRASH_PIPE_PATH@ --save-core "$core_path" --report "$@" > "$info_path"
- @CRASH_STACK_PATH@ "$core_path" >> "$info_path"
+ cat "$tmp_callstack_path" >> "$info_path"
+ rm "$tmp_callstack_path"
else
@CRASH_PIPE_PATH@ --report "$@" > "$info_path"
@CRASH_STACK_PATH@ --pid "$pid" >> "$info_path"