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 02:02:32 +0530
- Subject: Re: [PATCH v8] Add pretty printers for the NPTL lock types
- Authentication-results: sourceware.org; auth=none
- References: <20160608153841 dot GA8366 at devel dot intra dot reserved-bit dot com> <CAOKbPbZCbrfM=FRq6e7C3c8uXp9v+BODAoh6Qat7XRwOb5cEHA at mail dot gmail dot com> <20160619164448 dot GA5245 at devel dot intra dot reserved-bit dot com> <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>
On Fri, Jun 24, 2016 at 03:10:14PM -0300, Martin Galvan wrote:
> That's odd, I'm still seeing the built libraries, both with gdb 7.7
> and the mainline:
>
> $ cat /proc/${PID}/maps | tr -s ' ' | cut -d' ' -f6 | uniq | awk NF
> /home/martin/glibc/build/pretty-printers/test-mutex-printer
> /home/martin/glibc/install/lib/libc-2.23.90.so
> /home/martin/glibc/install/lib/libpthread-2.23.90.so
> /home/martin/glibc/install/lib/ld-2.23.90.so
> [vdso]
> /home/martin/glibc/install/lib/ld-2.23.90.so
> [stack]
> [vsyscall]
>
> Just in case, do you have anything special in your .gdbinit that may
> be causing the issue?
Nope, my .gdbinit only has the lines for the pretty-printers. Are you
sure you don't have anything in your environment that may be picking
up the built glibc? Because it is not supposed to work with just
rpath-link. Also check with ldd to verify what libraries get picked
up. If that also picks up the built libraries then either you are
building with rpath (somehow) or your environment is set to pick up
libraries from that install path.
Siddhesh