* Unknown files
@ 2006-05-09 12:38 Russell Shaw
2006-05-09 13:51 ` Daniel Jacobowitz
0 siblings, 1 reply; 7+ messages in thread
From: Russell Shaw @ 2006-05-09 12:38 UTC (permalink / raw)
To: gdb
Hi,
When bt shows history inside of a file without debugging
symbols, how do i find what file it is?
(gdb) bt
#0 my_malloc_hook (size=64, caller=0xb7d8a811) at main.c:330
#1 0xb7e06db5 in ?? ()
#2 0x00000040 in ?? ()
#3 0xb7d8a811 in ?? ()
#4 0xffffffff in ?? ()
#5 0xb7d8f4c8 in ?? ()
#6 0x08131674 in ?? ()
#7 0x08126350 in ?? ()
#8 0xbffff3d8 in ?? ()
#9 0xb7d8a811 in ?? ()
#10 0x00000040 in ?? ()
#11 0x08124e1c in ?? ()
#12 0x00000001 in ?? ()
#13 0x00000000 in ?? ()
(gdb)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unknown files
2006-05-09 12:38 Unknown files Russell Shaw
@ 2006-05-09 13:51 ` Daniel Jacobowitz
2006-05-09 14:21 ` Russell Shaw
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2006-05-09 13:51 UTC (permalink / raw)
To: Russell Shaw; +Cc: gdb
On Tue, May 09, 2006 at 10:19:49PM +1000, Russell Shaw wrote:
> Hi,
> When bt shows history inside of a file without debugging
> symbols, how do i find what file it is?
It looks like your GDB has failed to load libraries. Try "info
shared".
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unknown files
2006-05-09 13:51 ` Daniel Jacobowitz
@ 2006-05-09 14:21 ` Russell Shaw
2006-05-09 14:23 ` Daniel Jacobowitz
0 siblings, 1 reply; 7+ messages in thread
From: Russell Shaw @ 2006-05-09 14:21 UTC (permalink / raw)
Cc: gdb
Daniel Jacobowitz wrote:
> On Tue, May 09, 2006 at 10:19:49PM +1000, Russell Shaw wrote:
>
>>Hi,
>>When bt shows history inside of a file without debugging
>>symbols, how do i find what file it is?
>
>
> It looks like your GDB has failed to load libraries. Try "info
> shared".
(gdb) info shared
No shared libraries loaded at this time.
Apart from the usual libc things, the only other significant
library i use is libX11.
Do shared libraries get unloaded after exiting from them?
In /etc/ld.so.conf, i have:
/usr/lib/debug
/usr/X11R6/lib/debug
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unknown files
2006-05-09 14:21 ` Russell Shaw
@ 2006-05-09 14:23 ` Daniel Jacobowitz
2006-05-09 14:30 ` Russell Shaw
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2006-05-09 14:23 UTC (permalink / raw)
To: Russell Shaw; +Cc: gdb
On Tue, May 09, 2006 at 11:51:04PM +1000, Russell Shaw wrote:
> Daniel Jacobowitz wrote:
> >On Tue, May 09, 2006 at 10:19:49PM +1000, Russell Shaw wrote:
> >
> >>Hi,
> >>When bt shows history inside of a file without debugging
> >>symbols, how do i find what file it is?
> >
> >
> >It looks like your GDB has failed to load libraries. Try "info
> >shared".
>
> (gdb) info shared
> No shared libraries loaded at this time.
Then, your GDB is broken. Do you get warnings about not being able to
find the dynamic linker? How are you starting the program to be
debugged? If you're remote debugging, did you use "file"?
You need to give more details before we can help you.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unknown files
2006-05-09 14:23 ` Daniel Jacobowitz
@ 2006-05-09 14:30 ` Russell Shaw
2006-05-09 14:34 ` Daniel Jacobowitz
0 siblings, 1 reply; 7+ messages in thread
From: Russell Shaw @ 2006-05-09 14:30 UTC (permalink / raw)
Cc: gdb
Daniel Jacobowitz wrote:
> On Tue, May 09, 2006 at 11:51:04PM +1000, Russell Shaw wrote:
>
>>Daniel Jacobowitz wrote:
>>
>>>On Tue, May 09, 2006 at 10:19:49PM +1000, Russell Shaw wrote:
>>>
>>>>Hi,
>>>>When bt shows history inside of a file without debugging
>>>>symbols, how do i find what file it is?
>>>
>>>It looks like your GDB has failed to load libraries. Try "info
>>>shared".
>>
>>(gdb) info shared
>>No shared libraries loaded at this time.
>
> Then, your GDB is broken. Do you get warnings about not being able to
> find the dynamic linker? How are you starting the program to be
> debugged? If you're remote debugging, did you use "file"?
>
> You need to give more details before we can help you.
Hi,
I'm using GNU gdb 6.4-debian on a debian-sid pc.
I debug using: ddd ./myprog
I've been using it for months ok (my program runs on the same pc).
To get rid of these backtrace unknowns, i installed the unstripped
dev and debug packages for various libraries. I assume there's still
some stripped libraries being used. If i can find the name of these
files, i can install debug versions of them.
I assume it's stripped libraries that's causing this?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unknown files
2006-05-09 14:30 ` Russell Shaw
@ 2006-05-09 14:34 ` Daniel Jacobowitz
2006-05-09 21:45 ` Russell Shaw
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2006-05-09 14:34 UTC (permalink / raw)
To: Russell Shaw; +Cc: gdb
On Wed, May 10, 2006 at 12:20:52AM +1000, Russell Shaw wrote:
> Hi,
> I'm using GNU gdb 6.4-debian on a debian-sid pc.
>
> I debug using: ddd ./myprog
Try using GDB by hand. DDD may be invoking it incorrectly.
> I assume it's stripped libraries that's causing this?
Unlikely, since "info shared" says there are no libraries at all.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unknown files
2006-05-09 14:34 ` Daniel Jacobowitz
@ 2006-05-09 21:45 ` Russell Shaw
0 siblings, 0 replies; 7+ messages in thread
From: Russell Shaw @ 2006-05-09 21:45 UTC (permalink / raw)
Cc: gdb
Daniel Jacobowitz wrote:
> On Wed, May 10, 2006 at 12:20:52AM +1000, Russell Shaw wrote:
>
>>Hi,
>>I'm using GNU gdb 6.4-debian on a debian-sid pc.
>>
>>I debug using: ddd ./myprog
>
> Try using GDB by hand. DDD may be invoking it incorrectly.
>
>>I assume it's stripped libraries that's causing this?
>
> Unlikely, since "info shared" says there are no libraries at all.
It worked ok in gdb.
I started it in ddd again and now it works there too.
I think i should've restarted ddd/gdb after changing ld.so.conf ;)
(gdb) bt
#0 my_realloc_hook (ptr=0x8093cbc, size=8, caller=0xb7f618ca) at main.c:341
#1 0xb7e0733c in realloc () from /lib/tls/libc.so.6
#2 0xb7f618ca in add_codeset (gen=0x808d270) at ../../../src/xlibi18n/lcGeneric.c:191
#3 0xb7f629a5 in initialize (lcd=0x808ceac) at ../../../src/xlibi18n/lcGeneric.c:755
#4 0xb7f646e8 in _XlcCreateLC (name=0xb7ebcf7a "C", methods=0xb7fd8ac0) at
../../../src/xlibi18n/lcPubWrap.c:92
#5 0xb7fe73cb in _XlcDefaultLoader (name=0x8 <Address 0x8 out of bounds>) at
../../../../modules/lc/def/lcDefConv.c:766
#6 0xb7f56b6b in _XlcDynamicLoad (lc_name=0xb7ebcf7a "C") at ../../../src/xlibi18n/XlcDL.c:429
#7 0xb7f6b109 in _XOpenLC (name=<value optimized out>) at ../../../src/xlibi18n/lcWrap.c:296
#8 0xb7f6b2d3 in _XlcCurrentLC () at ../../../src/xlibi18n/lcWrap.c:357
#9 0xb7f6b317 in XSupportsLocale () at ../../../src/xlibi18n/lcWrap.c:101
#10 0x0804c466 in main (argc=4, argv=0xbffffae4) at main.c:483
(gdb)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-05-09 14:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-09 12:38 Unknown files Russell Shaw
2006-05-09 13:51 ` Daniel Jacobowitz
2006-05-09 14:21 ` Russell Shaw
2006-05-09 14:23 ` Daniel Jacobowitz
2006-05-09 14:30 ` Russell Shaw
2006-05-09 14:34 ` Daniel Jacobowitz
2006-05-09 21:45 ` Russell Shaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox