From bde93d2621ac9698dd59c9e76a9eedff21819a83 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Thu, 17 Aug 2023 22:18:44 +0200 Subject: [PATCH] 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 --- packaging/crash-worker.spec | 2 +- src/crash-stack/report_info.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4