* Relocation error in gdb
@ 2007-05-08 15:53 Williams, Allen
2007-05-08 16:06 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Williams, Allen @ 2007-05-08 15:53 UTC (permalink / raw)
To: gdb
I'm trying to run a debug version of the standard libraries in gdb.
They are located in /usr/lib/debug. After loading gdb ("gdb rssd"), I
do this:
LD_PRELOAD /usr/lib/debug/libc.so.6
in an attempt to force the program (some odbc libraries in the program,
in particular) to pick up the debug versions. I receive this error:
Starting program: /home/anw/SoftwareProducts/rss/rssd
/home/anw/SoftwareProducts/rss/rssd: relocation error:
/lib/tls/libpthread.so.0: symbol errno, version GLIBC_PRIVATE not
defined in file libc.so.6 with link time reference
Can anyone decipher this? Here is the backtrace I'm trying to nail
down:
#0 0xa7941270 in strcmp () from /lib/tls/libc.so.6
#1 0xa78f50d9 in setlocale () from /lib/tls/libc.so.6
#2 0x96c833fa in my_SQLExtendedFetch () from /usr/lib/odbc/libmyodbc.so
#3 0x96c835b6 in SQLFetch () from /usr/lib/odbc/libmyodbc.so
#4 0xa7a4d798 in SQLFetch () from /usr/lib/libodbc.so.1
#5 0x080561e2 in t_dbBuffer<topic>::GetNext (this=0x98dbefd8,
data=@0xafd1e5b8)
at /home/anw/SoftwareProducts/Headers/dbTempDef.h:224
#6 0x08050a32 in rssd::InitRSS (this=0xa6d1cf0c) at rssd.cpp:835
#7 0x08050b7e in rssd::AppInit (this=0xa6d1cf0c) at rssd.cpp:692
#8 0x0805cc98 in main (argc=1, argv=0xafd1e7f4) at App.cpp:47
Everything in here from 0 through 4 is system.
Thanks, and Regards,
________________________
Allen Williams
allen.williams@harris.com
Office: (321)309-7931
Mobile: (321)258-1272
FAX: (321)727-9607
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Relocation error in gdb
2007-05-08 15:53 Relocation error in gdb Williams, Allen
@ 2007-05-08 16:06 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-05-08 16:06 UTC (permalink / raw)
To: Williams, Allen; +Cc: gdb
On Tue, May 08, 2007 at 11:52:42AM -0400, Williams, Allen wrote:
> I'm trying to run a debug version of the standard libraries in gdb.
> They are located in /usr/lib/debug. After loading gdb ("gdb rssd"), I
> do this:
>
> LD_PRELOAD /usr/lib/debug/libc.so.6
>
> in an attempt to force the program (some odbc libraries in the program,
> in particular) to pick up the debug versions. I receive this error:
>
> Starting program: /home/anw/SoftwareProducts/rss/rssd
> /home/anw/SoftwareProducts/rss/rssd: relocation error:
> /lib/tls/libpthread.so.0: symbol errno, version GLIBC_PRIVATE not
> defined in file libc.so.6 with link time reference
That won't work outside GDB either. You can't mix and match different
versions of libc and libpthread. Try LD_LIBRARY_PATH=/usr/lib/debug
instead.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-08 16:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-08 15:53 Relocation error in gdb Williams, Allen
2007-05-08 16:06 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox