This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: loading binary prevent segfault on dl-load. #15535


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]