* [gentoo-user] What does it take to get debug symbols from /lib/ld-2.9.so?
@ 2009-09-06 6:43 Erik
2009-09-06 6:54 ` [gentoo-user] " Nikos Chantziaras
0 siblings, 1 reply; 6+ messages in thread
From: Erik @ 2009-09-06 6:43 UTC (permalink / raw
To: gentoo-user
I have emerged glibc with "debug -glibc-omitfp" and restarted the
system. But when I execute "valgrind /usr/lib/mozilla-firefox/firefox" I
only see things like this:
Invalid read of size 4
at 0x4018620: (within /lib/ld-2.9.so)
No filename:linenumber here. What does it take to get debug symbols from
/lib/ld-2.9.so?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: What does it take to get debug symbols from /lib/ld-2.9.so?
2009-09-06 6:43 [gentoo-user] What does it take to get debug symbols from /lib/ld-2.9.so? Erik
@ 2009-09-06 6:54 ` Nikos Chantziaras
2009-09-06 7:41 ` Graham Murray
2009-09-06 8:22 ` Erik
0 siblings, 2 replies; 6+ messages in thread
From: Nikos Chantziaras @ 2009-09-06 6:54 UTC (permalink / raw
To: gentoo-user
On 09/06/2009 09:43 AM, Erik wrote:
> I have emerged glibc with "debug -glibc-omitfp" and restarted the
> system. But when I execute "valgrind /usr/lib/mozilla-firefox/firefox" I
> only see things like this:
> Invalid read of size 4
> at 0x4018620: (within /lib/ld-2.9.so)
>
> No filename:linenumber here. What does it take to get debug symbols from
> /lib/ld-2.9.so?
Don't emerge with "debug -glibc-omitfp". Emerge with "splitdebug" in
FEATURES.
See http://www.gentoo.org/proj/en/qa/backtraces.xml (scroll down to
where splitdebug is described).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: What does it take to get debug symbols from /lib/ld-2.9.so?
2009-09-06 6:54 ` [gentoo-user] " Nikos Chantziaras
@ 2009-09-06 7:41 ` Graham Murray
2009-09-06 8:22 ` Erik
1 sibling, 0 replies; 6+ messages in thread
From: Graham Murray @ 2009-09-06 7:41 UTC (permalink / raw
To: gentoo-user
Nikos Chantziaras <realnc@arcor.de> writes:
> Don't emerge with "debug -glibc-omitfp". Emerge with "splitdebug" in
> FEATURES.
And make sure you include a -g option (eg -ggdb) in CFLAGS
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: What does it take to get debug symbols from /lib/ld-2.9.so?
2009-09-06 6:54 ` [gentoo-user] " Nikos Chantziaras
2009-09-06 7:41 ` Graham Murray
@ 2009-09-06 8:22 ` Erik
2009-09-06 8:45 ` Nikos Chantziaras
1 sibling, 1 reply; 6+ messages in thread
From: Erik @ 2009-09-06 8:22 UTC (permalink / raw
To: gentoo-user
Nikos Chantziaras skrev:
> On 09/06/2009 09:43 AM, Erik wrote:
>> I have emerged glibc with "debug -glibc-omitfp" and restarted the
>> system. But when I execute "valgrind /usr/lib/mozilla-firefox/firefox" I
>> only see things like this:
>> Invalid read of size 4
>> at 0x4018620: (within /lib/ld-2.9.so)
>>
>> No filename:linenumber here. What does it take to get debug symbols from
>> /lib/ld-2.9.so?
>
> Don't emerge with "debug -glibc-omitfp". Emerge with "splitdebug" in
> FEATURES.
Done:
Conditional jump or move depends on uninitialised value(s)
at 0x400C0AC: _dl_relocate_object (in /lib/ld-2.9.so)
Now it at least shows the function name. But still no
filename:linenumber. Maybe I need "debug" for that after all?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: What does it take to get debug symbols from /lib/ld-2.9.so?
2009-09-06 8:22 ` Erik
@ 2009-09-06 8:45 ` Nikos Chantziaras
2009-09-06 16:23 ` Erik
0 siblings, 1 reply; 6+ messages in thread
From: Nikos Chantziaras @ 2009-09-06 8:45 UTC (permalink / raw
To: gentoo-user
On 09/06/2009 11:22 AM, Erik wrote:
> Nikos Chantziaras skrev:
>> On 09/06/2009 09:43 AM, Erik wrote:
>>> I have emerged glibc with "debug -glibc-omitfp" and restarted the
>>> system. But when I execute "valgrind /usr/lib/mozilla-firefox/firefox" I
>>> only see things like this:
>>> Invalid read of size 4
>>> at 0x4018620: (within /lib/ld-2.9.so)
>>>
>>> No filename:linenumber here. What does it take to get debug symbols from
>>> /lib/ld-2.9.so?
>>
>> Don't emerge with "debug -glibc-omitfp". Emerge with "splitdebug" in
>> FEATURES.
> Done:
> Conditional jump or move depends on uninitialised value(s)
> at 0x400C0AC: _dl_relocate_object (in /lib/ld-2.9.so)
>
> Now it at least shows the function name. But still no
> filename:linenumber. Maybe I need "debug" for that after all?
Just "-g" in CFLAGS.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: What does it take to get debug symbols from /lib/ld-2.9.so?
2009-09-06 8:45 ` Nikos Chantziaras
@ 2009-09-06 16:23 ` Erik
0 siblings, 0 replies; 6+ messages in thread
From: Erik @ 2009-09-06 16:23 UTC (permalink / raw
To: gentoo-user
Nikos Chantziaras skrev:
> On 09/06/2009 11:22 AM, Erik wrote:
>> Nikos Chantziaras skrev:
>>> On 09/06/2009 09:43 AM, Erik wrote:
>>>> I have emerged glibc with "debug -glibc-omitfp" and restarted the
>>>> system. But when I execute "valgrind
>>>> /usr/lib/mozilla-firefox/firefox" I
>>>> only see things like this:
>>>> Invalid read of size 4
>>>> at 0x4018620: (within /lib/ld-2.9.so)
>>>>
>>>> No filename:linenumber here. What does it take to get debug symbols
>>>> from
>>>> /lib/ld-2.9.so?
>>>
>>> Don't emerge with "debug -glibc-omitfp". Emerge with "splitdebug" in
>>> FEATURES.
>> Done:
>> Conditional jump or move depends on uninitialised value(s)
>> at 0x400C0AC: _dl_relocate_object (in /lib/ld-2.9.so)
>>
>> Now it at least shows the function name. But still no
>> filename:linenumber. Maybe I need "debug" for that after all?
>
> Just "-g" in CFLAGS.
Ok, I added this to /etc/portage/env/sys-libs/glibc-2.9_p20081201-r2:
pre_pkg_setup() {
if ! hasq -g $CFLAGS ; then
elog "Adding -g to CFLAGS for $PN-$PV to locate errors
reported by Valgrind."
CFLAGS="$CFLAGS -g"
fi
}
Then I emerged glibc. It printed the elog message that I added and
included -g in the compile commands. Then I restarted the system. But
still no filename:linenumber in Valgrind.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-09-06 16:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-06 6:43 [gentoo-user] What does it take to get debug symbols from /lib/ld-2.9.so? Erik
2009-09-06 6:54 ` [gentoo-user] " Nikos Chantziaras
2009-09-06 7:41 ` Graham Murray
2009-09-06 8:22 ` Erik
2009-09-06 8:45 ` Nikos Chantziaras
2009-09-06 16:23 ` Erik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox