[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#54728: Valgrind not working out of the box due to stripped ld.so
From: |
Denis 'GNUtoo' Carikli |
Subject: |
bug#54728: Valgrind not working out of the box due to stripped ld.so |
Date: |
Fri, 15 Apr 2022 01:26:11 +0200 |
On Thu, 07 Apr 2022 18:40:08 +0200
Ludovic Courtès <ludo@gnu.org> wrote:
> Hi,
Hi,
> Unfortunately, until that branch is merge (most likely a few months
> from now), we’ll have to use the workaround you mentioned.
>
> Alternatively, maybe we could temporarily patch the ‘valgrind’ package
> such that it has ‘--extra-debuginfo-path=…’ by default. Would you
> like to give it a try?
That is a good idea. As I need it anyway[1], I've actually worked on
doing that through patching Valgrind source code to use better defaults
than /usr/lib/debug but there is a couple of things I'm unsure with my
patch:
- First it works fine in 'guix shell -C' but it still fails
in packages. Maybe I didn't patch the right Valgrind?
- Then for some reasons guix style messes up the whitespaces with the
following command:
$ ./pre-inst-env guix style -e \
'(@@ (gnu packages valgrind) valgrind/interactive)';
So I did the style by hand instead, so it might contain mistakes.
- And finally I'm not comfortable enough with Valgrind or how it's been
used in Guix. As I understand from the comment in the first Valgrind
being defined in valgrind.scm, it seems to be depended on by a lot of
packages. In addition I've not looked why there is a
valgrind/interactive or how it works yet, so someone would need to
double check my patch carefuly.
I've attached a libsamsung-ipc.scm file as I used that for testing my
patch (in addition of just running Valgrind in a Guix shell container
and while building this package it fails.
I'll send the patch as a response to this mail.
References:
-----------
[1] At the end of the day I need it to work in both standalone mode and
also in package builds as I use a guix.scm to run various
compilation and runtime for libsamsung-ipc before pushing patches
to the main branch.
Denis.
libsamsung-ipc.scm
Description: Text Data
pgpYB5SoOLLlc.pgp
Description: OpenPGP digital signature
- bug#54728: Valgrind not working out of the box due to stripped ld.so, Denis 'GNUtoo' Carikli, 2022/04/05
- bug#54728: Valgrind not working out of the box due to stripped ld.so, Ludovic Courtès, 2022/04/07
- bug#54728: Valgrind not working out of the box due to stripped ld.so,
Denis 'GNUtoo' Carikli <=
- bug#54728: [PATCH 1/2] gnu: valgrind: impots: sort imports alphabetically, Denis 'GNUtoo' Carikli, 2022/04/14
- bug#54728: [PATCH 2/2] gnu: valgrind: fix ld.so symbols not found, Denis 'GNUtoo' Carikli, 2022/04/14
- bug#54728: [PATCH 2/2] gnu: valgrind: fix ld.so symbols not found, Ludovic Courtès, 2022/04/15
- bug#54728: [PATCH 2/2] gnu: valgrind: fix ld.so symbols not found, Denis 'GNUtoo' Carikli, 2022/04/25
- bug#54728: [PATCH 2/2] gnu: valgrind: fix ld.so symbols not found, Maxime Devos, 2022/04/25
- bug#54728: [PATCH 2/2] gnu: valgrind: fix ld.so symbols not found, Denis 'GNUtoo' Carikli, 2022/04/25
- bug#54728: [PATCH v2 1/2] gnu: valgrind: impots: sort imports alphabetically, Denis 'GNUtoo' Carikli, 2022/04/25
- bug#54728: [PATCH v2 2/2] gnu: valgrind: fix ld.so symbols not found, Denis 'GNUtoo' Carikli, 2022/04/25
- bug#54728: [PATCH v2 2/2] gnu: valgrind: fix ld.so symbols not found, Denis 'GNUtoo' Carikli, 2022/04/26