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