crash-stack: Always print threads information 45/297445/1 accepted/tizen/unified/20230825.044304
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 17 Aug 2023 20:18:44 +0000 (22:18 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 17 Aug 2023 20:18:44 +0000 (22:18 +0200)
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
src/crash-stack/report_info.c

index 529a4f4..a7a2c70 100644 (file)
@@ -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
index 84ad36f..1e1986b 100644 (file)
@@ -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;