diff options
-rw-r--r-- | packaging/crash-worker.spec | 1 | ||||
-rw-r--r-- | src/crash-manager/crash-manager.sh.in | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/packaging/crash-worker.spec b/packaging/crash-worker.spec index 6fe277a..aacf5bf 100644 --- a/packaging/crash-worker.spec +++ b/packaging/crash-worker.spec @@ -16,6 +16,7 @@ BuildRequires: libdw-devel libdw Requires(post): coreutils Requires(post): tar Requires(post): gzip +Requires: libebl %description crash-manager diff --git a/src/crash-manager/crash-manager.sh.in b/src/crash-manager/crash-manager.sh.in index d99056c..b3ed342 100644 --- a/src/crash-manager/crash-manager.sh.in +++ b/src/crash-manager/crash-manager.sh.in @@ -23,13 +23,16 @@ pfx="${temp_dir}/${name}" 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" |