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

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