Removed no longer needed logs symbolization in the 'report' command 82/158382/6
authorDmitriy Nikiforov <d.nikiforov@samsung.com>
Tue, 31 Oct 2017 11:37:49 +0000 (14:37 +0300)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 7 Nov 2017 12:33:57 +0000 (12:33 +0000)
Change-Id: If67993ad181fdfbc9054838be031b0fc191a9e58

infra/commands/report.sh

index d9897fd..86db354 100755 (executable)
@@ -8,8 +8,8 @@ function print_help {
     cat << EOF
 Usage: ${EXEC} report [OPTS] FUZZ_PROJECT FUZZ_TARGET
 
-Pulls symbolized fuzzing logs for the fuzz target and corresponding
-artifacts to the host.
+Pulls fuzzing logs for the fuzz target and corresponding artifacts to
+the host.
 
 Options:
   -h, --help                  Prints this message.
@@ -96,24 +96,19 @@ for i in "${!logs[@]}"; do
     mkdir -p "${run_dir}"
     printf_err "%d:\t%s" "$i" "${run_dir}"
 
-    # symbolize log
-    log=$(basename "${logs[i]}")
-    symbolized="${log/.log/.symbolized.log}"
-    sdb_shell asan_symbolize.py -d '<' "${log_dir}/${log}" '>' "${log_dir}/${symbolized}" >/dev/null
-
-    # pull symbolized log
-    ${SDB_CMD} pull "${log_dir}/${symbolized}" "${run_dir}" >/dev/null
-    sdb_shell rm -f "${log_dir}/${symbolized}" >/dev/null
+    # pull log
+    log_name=$(basename "${logs[i]}")
+    ${SDB_CMD} pull "${log_dir}/${log_name}" "${run_dir}" >/dev/null
 
     # pull crash inputs if this run crashed
-    crash_inputs=($(sed -En "s/.*Test unit written to (.*)/\1/p" "${run_dir}/${symbolized}"))
+    crash_inputs=($(sed -En "s/.*Test unit written to (.*)/\1/p" "${run_dir}/${log_name}"))
     for crash_input in "${crash_inputs[@]}"; do
         ${SDB_CMD} pull "${crash_input}" "${run_dir}" >/dev/null
     done
 
     # get UBSan errors
     # ignore error codes from grep - it returns non-zero code if it does not find any matches
-    ubsan_errors=$(grep -c "runtime error" "${run_dir}/${symbolized}" || true)
+    ubsan_errors=$(grep -c "runtime error" "${run_dir}/${log_name}" || true)
 
     if (( ${#crash_inputs[@]} + ubsan_errors > 0 )); then
         (( errors_num += ${#crash_inputs[@]} + ubsan_errors ))