Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Edubuntu Development (http://www.linux-archive.org/edubuntu-development/)
-   -   Don't show loaderSegvHandler or its glibc entry point in tracebacks. (http://www.linux-archive.org/edubuntu-development/490270-dont-show-loadersegvhandler-its-glibc-entry-point-tracebacks.html)

Peter Jones 02-16-2011 05:33 PM

Don't show loaderSegvHandler or its glibc entry point in tracebacks.
 
Since we get things like the traceback in 678086 , we're better off not
showing the traceback handler in the traceback.
---
loader/loader.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 644c1e8..06ca450 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1686,7 +1686,10 @@ void loaderSegvHandler(int signum) {
}

i = backtrace (array, 30);
- backtrace_symbols_fd(array, i, STDERR_FILENO);
+ if (signum == SIGSEGV)
+ backtrace_symbols_fd(array+2, i-2, STDERR_FILENO);
+ else
+ backtrace_symbols_fd(array+1, i-1, STDERR_FILENO);
_exit(1);
}

--
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 02:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.