# Expected invocation from kernel:
#
-# argv0 PID UID GID SIGNAL TIME CMD
+# argv0 PID UID GID SIGNAL TIME CMD EXEPATH
pid="$1"
time="$5"
cmd="$6"
mv "$sysassert_cs_path" "$pfx/"
fi
-if [ $DEBUG -eq 1 ]
-then
- @CRASH_PIPE_PATH@ --save-core "$core_path" --report "$@" > "$info_path"
-# @CRASH_STACK_PATH@ --pid "$pid" >> "$info_path"
-else
- @CRASH_PIPE_PATH@ --report "$@" > "$info_path"
-# @CRASH_STACK_PATH@ --pid "$pid" >> "$info_path"
-fi
-
if [ -e $TZ_SYS_ETC/.debugmode ]
then
#Find the full path of executable. The path is used to find appid in the crash-popup
- exepath=" "
- found=0
- while read line
- do
- if [ $found -eq 1 ]
- then
- exepath=$(echo $line | sed "s/0: //")
- break
- fi
-
- if [ "$line" = "Cmdline:" ]
- then
- found=1
- fi
-
- done < $info_path
+ exepath="$(echo $7 | sed 's/!/\//g')"
#Call dbus method to launch the crash-popup
/usr/bin/dbus-send --system --type=method_call --print-reply --reply-timeout=120000 --dest=org.tizen.system.popup /Org/Tizen/System/Popup/Crash org.tizen.system.popup.Crash.PopupLaunch dict:string:string:"_SYSPOPUP_CONTENT_","crash","_PROCESS_NAME_","${cmd}","_EXEPATH_","${exepath}"
dump_systemstate -d -k -f "$log_path" || true
+if [ $DEBUG -eq 1 ]
+then
+ @CRASH_PIPE_PATH@ --save-core "$core_path" --report "$@" > "$info_path"
+# @CRASH_STACK_PATH@ --pid "$pid" >> "$info_path"
+else
+ @CRASH_PIPE_PATH@ --report "$@" > "$info_path"
+# @CRASH_STACK_PATH@ --pid "$pid" >> "$info_path"
+fi
+
tar czf "${temp_dir}/report.tar.gz" -C "$temp_dir" "$name"
mv "${temp_dir}/report.tar.gz" "$result_path"
[ "$temp_dir" ] && rm -rf "$temp_dir"
-