doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

Blame SOURCES/0163-ccpp-use-global-TID.patch

baab13
From 25ca1b05529d7ce95a3948f45391e22ab0fd9744 Mon Sep 17 00:00:00 2001
baab13
From: Jakub Filak <jfilak@redhat.com>
baab13
Date: Wed, 12 Aug 2015 17:40:12 +0200
baab13
Subject: [PATCH] ccpp: use global TID
baab13
baab13
'%i' is TID of the thread from the crashed process's PID namespace but
baab13
abrt-hook-ccpp is run by kernel in the init PID namespace, so '%i'
baab13
is TID of a completely unrelated process.
baab13
baab13
For mode details see 'man 5 core'.
baab13
baab13
Related: rhbz#1252590
baab13
baab13
Signed-off-by: Jakub Filak <jfilak@redhat.com>
baab13
---
baab13
 src/hooks/abrt-install-ccpp-hook.in | 4 ++--
baab13
 1 file changed, 2 insertions(+), 2 deletions(-)
baab13
baab13
diff --git a/src/hooks/abrt-install-ccpp-hook.in b/src/hooks/abrt-install-ccpp-hook.in
baab13
index fff0a33..65f771f 100755
baab13
--- a/src/hooks/abrt-install-ccpp-hook.in
baab13
+++ b/src/hooks/abrt-install-ccpp-hook.in
baab13
@@ -11,9 +11,9 @@ SAVED_PATTERN_DIR="@VAR_RUN@/abrt"
baab13
 SAVED_PATTERN_FILE="@VAR_RUN@/abrt/saved_core_pattern"
baab13
 HOOK_BIN="@libexecdir@/abrt-hook-ccpp"
baab13
 # Must match percent_specifiers[] order in abrt-hook-ccpp.c:
baab13
-PATTERN="|$HOOK_BIN %s %c %p %u %g %t %e %i"
baab13
+PATTERN="|$HOOK_BIN %s %c %p %u %g %t %e %I"
baab13
 # Same, but with bogus "executable name" parameter
baab13
-PATTERN1="|$HOOK_BIN %s %c %p %u %g %t e %i"
baab13
+PATTERN1="|$HOOK_BIN %s %c %p %u %g %t e %I"
baab13
 
baab13
 # core_pipe_limit specifies how many dump_helpers can run at the same time
baab13
 # 0 - means unlimited, but it's not guaranteed that /proc/<pid> of crashing
baab13
-- 
baab13
2.4.3
baab13