* [gentoo-user] Valgrind not seeing debug symbols
@ 2018-08-19 16:21 Andrew Udvare
2018-08-20 5:59 ` [gentoo-user] " Andrew Udvare
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Udvare @ 2018-08-19 16:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1.1: Type: text/plain, Size: 1756 bytes --]
Hi all,
I have this project https://github.com/Tatsh/gcrud and it uses a very
standard build process with CMake, but for some reason Valgrind never
sees the debug symbols.
The debug symbols are definitely there as GDB can see them, but I have
not been able to figure out why Valgrind can't. I have the latest
version of Valgrind which supports compressed debug symbols.
I even created an ebuild to see if Portage does the magic I need:
https://github.com/Tatsh/tatsh-overlay/blob/master/app-portage/gcrud/gcrud-9999.ebuild
Portage does not generate the debug symbols file I expect to see.
In all cases I am building with -ggdb. I have FEATURES="splitdebug
compressdebug" and still no debug symbols:
$ valgrind -v --leak-check=full gcrud
...
==16662== 1,120,873 bytes in 16,784 blocks are definitely lost in loss
record 41 of 41
==16662== at 0x4C30D6F: realloc (vg_replace_malloc.c:785)
==16662== by 0x5266BA5: __vasprintf_chk (vasprintf_chk.c:88)
==16662== by 0x4ECA438: vasprintf (stdio2.h:210)
==16662== by 0x4ECA438: g_vasprintf (gprintf.c:316)
==16662== by 0x4EA482C: g_strdup_vprintf (gstrfuncs.c:514)
==16662== by 0x4EA48F0: g_strdup_printf (gstrfuncs.c:540)
==16662== by 0x10AB1A: ??? (in /usr/bin/gcrud)
==16662== by 0x10C5B9: ??? (in /usr/bin/gcrud)
==16662==
==16662== LEAK SUMMARY:
==16662== definitely lost: 1,919,735 bytes in 30,221 blocks
I can tell it's a call to g_strdup_printf() but I sure would like to
know what line number since there are a few times it's called.
I also tried the same build process but with Clang. Tried -gdwarf-4/5
and -Og -ggdb. I also don't understand why other libraries are working fine.
Appreciate any help. Thanks
--
Andrew
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-user] Re: Valgrind not seeing debug symbols
2018-08-19 16:21 [gentoo-user] Valgrind not seeing debug symbols Andrew Udvare
@ 2018-08-20 5:59 ` Andrew Udvare
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Udvare @ 2018-08-20 5:59 UTC (permalink / raw
To: gentoo-user
> On Aug 19, 2018, at 12:21, Andrew Udvare <audvare@gmail.com> wrote:
>
> Hi all,
>
> I have this project https://github.com/Tatsh/gcrud and it uses a very
> standard build process with CMake, but for some reason Valgrind never
> sees the debug symbols.
I created a basic Gentoo machine with a Vagrant box and set up a mini environment to test if it is just my machine. The symbols show up on the Vagrant box. It could be a bad version of Valgrind on my end but I haven’t compared the environments. My main system has something wrong.
—
Andrew
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-20 5:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-19 16:21 [gentoo-user] Valgrind not seeing debug symbols Andrew Udvare
2018-08-20 5:59 ` [gentoo-user] " Andrew Udvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox