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