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

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