[ABRT PATCH v2 2/2] spec: posttrans scriptlet regenerating core_backtraces

Jakub Filak jfilak at redhat.com
Fri Aug 23 08:20:18 UTC 2013


The previous version of satyr was generating core_bactkraces without
crash thread marker.

Related to rhbz#997076

Signed-off-by: Jakub Filak <jfilak at redhat.com>
---
 abrt.spec.in | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/abrt.spec.in b/abrt.spec.in
index 66b9b20..4e5ec02 100644
--- a/abrt.spec.in
+++ b/abrt.spec.in
@@ -516,6 +516,16 @@ service abrtd condrestart >/dev/null 2>&1 || :
 
 %posttrans addon-ccpp
 service abrt-ccpp condrestart >/dev/null 2>&1 || :
+# Regenerate core_bactraces because of missing crash threads
+abrtdir=$(grep "DumpLocation" /etc/abrt/abrt.conf | cut -d'=' -f2 | tr -d ' ')
+if test -d "$abrtdir"; then
+    for DD in `find "$abrtdir" -maxdepth 1 -type d`
+    do
+        if test -f "$DD/analyzer" && grep -q "^CCpp$" "$DD/analyzer"; then
+            /usr/bin/abrt-action-generate-core-backtrace -d "$DD" -- >/dev/null 2>&1
+        fi
+    done
+fi
 
 %posttrans addon-kerneloops
 service abrt-oops condrestart >/dev/null 2>&1 || :
-- 
1.8.3.1



More information about the Crash-catcher mailing list