Use ptrace for unwinding also with DEBUG=1. 73/76273/3 accepted/tizen/common/20160623.154616 accepted/tizen/ivi/20160623.125408 accepted/tizen/mobile/20160623.125319 accepted/tizen/tv/20160623.125335 accepted/tizen/wearable/20160623.125356 submit/tizen/20160623.105118 submit/tizen/20160624.015524
authorAdrian Szyndela <adrian.s@samsung.com>
Thu, 23 Jun 2016 08:15:02 +0000 (10:15 +0200)
committerTaeyoung Kim <ty317.kim@samsung.com>
Thu, 23 Jun 2016 10:41:03 +0000 (03:41 -0700)
Additionally: made explicit libebl dependency in spec file.
Libebl backends are loaded with dlopen() by libelf.
Thus, rpm can't find the dependency automatically.

Change-Id: Ic0abe5d0eff701afb316f398b142fecb22029423
Signed-off-by: Adrian Szyndela <adrian.s@samsung.com>
packaging/crash-worker.spec
src/crash-manager/crash-manager.sh.in

index 6fe277a..aacf5bf 100644 (file)
@@ -16,6 +16,7 @@ BuildRequires:  libdw-devel libdw
 Requires(post): coreutils
 Requires(post): tar
 Requires(post): gzip
+Requires: libebl
 
 %description
 crash-manager
index d99056c..b3ed342 100644 (file)
@@ -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"