From: Andrew Udvare <audvare@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Valgrind not seeing debug symbols
Date: Sun, 19 Aug 2018 12:21:45 -0400 [thread overview]
Message-ID: <cb925eb1-1eba-7ebd-90d7-2c5a70468e99@gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2018-08-19 16:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-19 16:21 Andrew Udvare [this message]
2018-08-20 5:59 ` [gentoo-user] Re: Valgrind not seeing debug symbols Andrew Udvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cb925eb1-1eba-7ebd-90d7-2c5a70468e99@gmail.com \
--to=audvare@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox