This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v8] Add pretty printers for the NPTL lock types
- From: Siddhesh Poyarekar <siddhesh at sourceware dot org>
- To: Martin Galvan <martin dot galvan at tallertechnologies dot com>
- Cc: libc-alpha at sourceware dot org, Carlos O'Donell <carlos at redhat dot com>
- Date: Sat, 25 Jun 2016 10:14:42 +0530
- Subject: Re: [PATCH v8] Add pretty printers for the NPTL lock types
- Authentication-results: sourceware.org; auth=none
- References: <CAOKbPbYpRcwJ8QNSgvW9BxkOeTSBnWEGGFRMOY=RSzoK6k1-Bw at mail dot gmail dot com> <20160620041246 dot GB5245 at devel dot intra dot reserved-bit dot com> <CAOKbPbZknCcBGozK_v8SC=PyJdczwr7ss6Y1y1hs2x8ag7cpxA at mail dot gmail dot com> <20160623164003 dot GC17911 at devel dot intra dot reserved-bit dot com> <CAOKbPbbp=-3XgwogxN90EGZxOPjiT_hkEWnaMuB4uz5Ox-njPw at mail dot gmail dot com> <20160624165111 dot GD30229 at devel dot intra dot reserved-bit dot com> <CAOKbPbZk8ONZ8pRMbFV72ek0p6=wk1GRZKF_2RCpz4LmnYt_zw at mail dot gmail dot com> <20160624203223 dot GE30229 at devel dot intra dot reserved-bit dot com> <CAOKbPbbfHoNHpHrZgaTg3+MNQf7nE5XNe7rQyGSRL6P1sDubSw at mail dot gmail dot com> <CAOKbPbZ4spYsX242c_xiieL-TgaLqLBMzmD3G1VoZZGAJqaPXQ at mail dot gmail dot com>
(To elaborate on my last response, since I realized I did not explain
the mechanics of how this works)
On Fri, Jun 24, 2016 at 05:46:23PM -0300, Martin Galvan wrote:
> I added an endless loop to the test code, so that I could examine its
> proc mappings without running it through gdb, and I'm still seeing the
> built libraries. And yeah, you're right in that it's being compiled
> using rpath-link:
Your default dynamic linker is being set as the built one instead of
the system, perhaps because of the way your source is configured.
That alone does not however determine why your program picks up the
built libraries because you've only specified rpath-link and not rpath
and hence the binary itself does not have the paths to search from.
So the question is how the binary ends up picking the built libraries
and the answer might be in why your build system picks up the built
dynamic linker. Check out your rtldir and slibdir in the generated
config.make and that might tell you why. I think there is some system
configuration on your computer that ends up in picking the built
libraries, either LD_LIBRARY_PATH set somewhere or something you
specified in configure, although the latter seems unlikely.
I'll run tests tonight but you might want to try your entire exercise
on a different computer and with a very basic configure command:
../configure --prefix=/usr
Siddhesh