Re: [PATCH] Don't show loaderSegvHandler or its glibc entry point in tracebacks.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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);
>  }

Looks reasonable and prudent.

- Chris

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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux