Blame SOURCES/0006-Drop-SEGV-handler.patch

24fce8
From d9600e2dd1b35a6e74494c8c98ba399d06685041 Mon Sep 17 00:00:00 2001
24fce8
From: Lubomir Rintel <lkundrak@v3.sk>
24fce8
Date: Thu, 27 Feb 2014 10:35:59 +0100
24fce8
Subject: [PATCH 06/55] Drop SEGV handler
24fce8
24fce8
The generated tracebacks are mostly useless without debuginfo (which is likely
24fce8
not present if the crash is not anticipated) and prevent ABRT from doing a
24fce8
better job.
24fce8
24fce8
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
24fce8
---
24fce8
 grubby.c | 17 -----------------
24fce8
 1 file changed, 17 deletions(-)
24fce8
24fce8
diff --git a/grubby.c b/grubby.c
24fce8
index 440c6277935..649597ed92b 100644
24fce8
--- a/grubby.c
24fce8
+++ b/grubby.c
24fce8
@@ -4211,21 +4211,6 @@ int addNewKernel(struct grubConfig * config, struct singleEntry * template,
24fce8
     return 0;
24fce8
 }
24fce8
 
24fce8
-static void traceback(int signum)
24fce8
-{
24fce8
-    void *array[40];
24fce8
-    size_t size;
24fce8
-
24fce8
-    signal(SIGSEGV, SIG_DFL);
24fce8
-    memset(array, '\0', sizeof (array));
24fce8
-    size = backtrace(array, 40);
24fce8
-
24fce8
-    fprintf(stderr, "grubby received SIGSEGV!  Backtrace (%ld):\n",
24fce8
-            (unsigned long)size);
24fce8
-    backtrace_symbols_fd(array, size, STDERR_FILENO);
24fce8
-    exit(1);
24fce8
-}
24fce8
-
24fce8
 int main(int argc, const char ** argv) {
24fce8
     poptContext optCon;
24fce8
     const char * grubConfig = NULL;
24fce8
@@ -4368,8 +4353,6 @@ int main(int argc, const char ** argv) {
24fce8
 
24fce8
     useextlinuxmenu=0;
24fce8
 
24fce8
-    signal(SIGSEGV, traceback);
24fce8
-
24fce8
     int i = 0;
24fce8
     for (int j = 1; j < argc; j++)
24fce8
 	i += strlen(argv[j]) + 1;
24fce8
-- 
24fce8
2.17.1
24fce8