From: Karol Lewandowski Date: Thu, 17 Aug 2023 20:18:44 +0000 (+0200) Subject: crash-stack: Always print threads information X-Git-Tag: accepted/tizen/unified/20230825.044304^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bde93d2621ac9698dd59c9e76a9eedff21819a83;p=platform%2Fcore%2Fsystem%2Fcrash-worker.git crash-stack: Always print threads information The default behaviour was to skip thread information when there was only one (main) thread. This however, breaks report parsing as it has been recently added for `bugreport-service --type pid feature[1]. This commit makes printing thread info unconditional, fixing bugrepor-service. [1] dumpsys org.tizen.bugreport-service --type pid Change-Id: Icfc6ebe3e44c86d241f22cf88f0561f697d7e361 --- diff --git a/packaging/crash-worker.spec b/packaging/crash-worker.spec index 529a4f4..a7a2c70 100644 --- a/packaging/crash-worker.spec +++ b/packaging/crash-worker.spec @@ -16,7 +16,7 @@ Name: crash-worker Summary: Coredump handler and report generator for Tizen -Version: 8.0.3 +Version: 8.0.4 Release: 1 Group: Framework/system License: MIT diff --git a/src/crash-stack/report_info.c b/src/crash-stack/report_info.c index 84ad36f..1e1986b 100644 --- a/src/crash-stack/report_info.c +++ b/src/crash-stack/report_info.c @@ -188,7 +188,7 @@ static void print_threads(json_object *j_root, FILE *fp) } int tasks_len = json_object_array_length(j_tasks); - if (tasks_len <= 1) + if (tasks_len <= 0) return; json_object *j_pid, *j_tid;