Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906305 - sys-apps/systemd, sys-apps/systemd-utils: sort out Valgrind handling
Summary: sys-apps/systemd, sys-apps/systemd-utils: sort out Valgrind handling
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-14 00:40 UTC by Sam James
Modified: 2023-05-16 03:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-14 00:40:54 UTC
For <254 (master), there's a meson option for Valgrind, but it's kind of a mess because it mixes "running under Valgrind" with "Valgrind headers should be used to add annotations".

This led to https://github.com/systemd/systemd/commit/50b35193ec6f8f342364742a69a607e967b39b7f in master (not yet in a release, so >=254) which drops the option entirely, making it automagic.

We need to avoid it being automagic.
Comment 1 Mike Gilbert gentoo-dev 2023-05-14 00:58:11 UTC
What's the downside to leaving it as automagic?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-14 01:05:23 UTC
I guess it's mostly an issue for new systems where you have USE=valgrind in make.conf (and maybe even dev-util/valgrind in world) but systemd gets installed before it (or try to do this on a working system without valgrind already installed).

The main situation that I'd say matters is:
- have some systemd problem
- Try to use it with Valgrind
- Get confusing warnings/errors/noise and lack of USE=valgrind makes it seem like there's no annotations available, so you don't look into that side further?

(fwiw I think a compromise could be an optfeature for valgrind or something, even if not ideal.)
Comment 3 Mike Gilbert gentoo-dev 2023-05-15 15:49:24 UTC
If the small amount of runtime overhead isn't a major concern for the USE=-valgrind case, maybe we could just wire up the USE flag to pull in dev-util/valgrind.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-16 03:48:09 UTC
It's pretty tiny so yes, wfm.