|
|
56d25d |
From b901efc638080e552fb94d7842775f1aaf95c0dd Mon Sep 17 00:00:00 2001
|
|
|
ae2804 |
From: Lubomir Rintel <lkundrak@v3.sk>
|
|
|
ae2804 |
Date: Thu, 27 Feb 2014 10:35:59 +0100
|
|
|
56d25d |
Subject: [PATCH 37/41] 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
|
|
|
56d25d |
index 407c65d..a2b0d55 100644
|
|
|
ae2804 |
--- a/grubby.c
|
|
|
ae2804 |
+++ b/grubby.c
|
|
|
56d25d |
@@ -4163,21 +4163,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;
|
|
|
56d25d |
@@ -4316,8 +4301,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 |
--
|
|
|
56d25d |
2.4.3
|
|
|
ae2804 |
|