all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>, "Andreas Enge" <andreas@enge.fr>
Cc: help-guix@gnu.org, Marius Bakke <marius@gnu.org>
Subject: Re: Valgrind not working [core-update fixes?]
Date: Fri, 02 Sep 2022 17:28:22 +0200	[thread overview]
Message-ID: <86a67h94o9.fsf@gmail.com> (raw)
In-Reply-To: <874k4892hw.fsf@gnu.org>

Hi,

On Tue, 08 Mar 2022 at 11:12, Ludovic Courtès <ludo@gnu.org> wrote:

>> valgrind:  Fatal error at startup: a function redirection

[...]

>> valgrind:  Cannot continue -- exiting now.  Sorry.
>
> I’m late to the party, but here’s the trick you can use:

Well, I am even later to the party. ;-)

> --8<---------------cut here---------------start------------->8---
> $ guix build -e '(@@ (gnu packages commencement) glibc-final)' 
> /gnu/store/xgarlnscgbm9l04karj15xpc4nn14ak1-glibc-2.33-debug
> /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33
> /gnu/store/4jdghmc65q7i7ib89zmvq66l0ghf7jc4-glibc-2.33-static
> $ valgrind --extra-debuginfo-path=/gnu/store/xgarlnscgbm9l04karj15xpc4nn14ak1-glibc-2.33-debug/lib/debug uname -o
> ==16741== Memcheck, a memory error detector
> ==16741== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
> ==16741== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
> ==16741== Command: uname -o
> ==16741== 
> GNU/Linux
> ==16741== 
> ==16741== HEAP SUMMARY:
> ==16741==     in use at exit: 0 bytes in 0 blocks
> ==16741==   total heap usage: 2,813 allocs, 2,813 frees, 184,302 bytes allocated
> ==16741== 
> ==16741== All heap blocks were freed -- no leaks are possible
> ==16741== 
> ==16741== For lists of detected and suppressed errors, rerun with: -s
> ==16741== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
> --8<---------------cut here---------------end--------------->8---

This trick is really nice…

> I think the reason it no longer works out of the box is because we
> now[*] use ‘--strip-unneeded’ instead of ‘--strip-debug’, since commit
> e0f31baacc6ad30096a332b69433c85f5830bb2c.
>
> We’d need to double-check the hypothesis and fix it on ‘core-updates’.

…but since core-updates is moving, maybe it is time for this
double-check.  Well, gentle reminder. :-)

How could I double-check without rebuilding locally the world?


Cheers,
simon




      reply	other threads:[~2022-09-02 15:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-18 16:55 Valgrind not working Andreas Enge
2022-03-08 10:12 ` Ludovic Courtès
2022-09-02 15:28   ` zimoun [this message]

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=86a67h94o9.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=andreas@enge.fr \
    --cc=help-guix@gnu.org \
    --cc=ludo@gnu.org \
    --cc=marius@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.