This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: loading binary prevent segfault on dl-load. #15535
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Ilya Plenne <libbkmz dot dev at gmail dot com>
- Cc: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Tue, 11 Jun 2013 10:07:36 -0400
- Subject: Re: loading binary prevent segfault on dl-load. #15535
- References: <CAC1xz-Q8=P=tfJ5ruReM5zra+dF+ThNaeC8vSswG_YY0N1dEcw at mail dot gmail dot com> <CAC1xz-RhC6tX+A8bA=4CsgjJfac-GhvE8++3zKsKFmOqcevuQA at mail dot gmail dot com> <51A57D1C dot 901 at redhat dot com> <CAC1xz-THxDqd2ivrg=93PTPvOG+jUOAGsk9T4kvNMbTdAT0Mog at mail dot gmail dot com>
On 06/11/2013 07:40 AM, Ilya Plenne wrote:
> I'm compiled by the given manual glibc from git. And now i'm tested
> rust binary. And get the same error:
>
> [bkmz@localhost glibc-build]$ ./testrun.sh /usr/bin/rust
> Segmentation fault (core dumped)
>
> How can I run gdb under this glibc to get proper backtrace? So, in the
> other hand, error are the same, I don't know what to do. In the ticket
> I posted backtrace from arch glibc with debug info.
Please keep libc-help@sourceware.org in the CC so others can learn
about the problem and the solutions you're working on.
You have two ways forward which I would recommend:
(a) Turn on core files.
- Run your program.
- Get a core file.
- Debug the core file with gdb.
- Double check that `info shared' shows the right libraries from the new build.
(b) Follow "Compile against glibc in a fixed location"
- Easiest method if you can recompile the target binary.
- See the instructions here:
http://sourceware.org/glibc/wiki/Testing/Builds#Compile_against_glibc_in_fixed_location
Start with one of these first.
Cheers,
Carlos.