Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955406 - sys-devel/mold-2.38.1-r1: causes sys-apps/systemd to break
Summary: sys-devel/mold-2.38.1-r1: causes sys-apps/systemd to break
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal critical
Assignee: Matthew Smith
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-mold
  Show dependency tree
 
Reported: 2025-05-04 10:42 UTC by Stefan Salewski
Modified: 2025-05-06 07:46 UTC (History)
1 user (show)

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


Attachments
Systemd crash when linking with mold 2.38.1-r1 (mold-systemd-crash.txt,147.16 KB, text/plain)
2025-05-04 10:42 UTC, Stefan Salewski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Salewski 2025-05-04 10:42:10 UTC
Created attachment 927587 [details]
Systemd crash when linking with mold 2.38.1-r1

Latest mold 2.38.1-r1 destroys the whole installation when emerging systemd.

I noticed this two days ago when performing the Python 3.13 system update.

The problem is not actually related to the Python update, it is that the currently unstable mold 2.38.1-r1 can not be used to emerge systemd. This is for stable systemd  256.10 as well as for 257.5.

Postinstall systemd fully crashes the box, rebooting completely fails. So I had to recover from USB stick.

After restoring my box from USB, I am now testing with stable mold 2.37.1 and that version seems to work fine.

This is for AMD64, with

# cat /etc/portage/make.conf

COMMON_FLAGS="-march=native -O3 -flto -pipe -fomit-frame-pointer"

Perhaps it would work without -O3 -flto, but I can not test that now, as the whole recovery process is each time a lot of work.

I will attach the systemd build log when linking with mold 2.38.1-r1 showing the postinstall issues.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-04 10:46:41 UTC
Wonder if it installs a broken NSS module, which would explain chgrp and such failing immediately after.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-04 10:49:09 UTC
Maybe it's another manifestation of the thing https://github.com/rui314/mold/commit/fded2d8a77cda00944b4ef982f617c07ae2ce46d fixes.
Comment 3 Larry the Git Cow gentoo-dev 2025-05-05 06:48:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d98b86690097a1c9d38e0aeabf6372e9a31f7c9a

commit d98b86690097a1c9d38e0aeabf6372e9a31f7c9a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-05-05 06:47:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-05 06:48:29 +0000

    sys-devel/mold: add 2.39.0
    
    May fix bug #955406 but not clear.
    
    Bug: https://bugs.gentoo.org/955406
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/mold/Manifest           |   1 +
 sys-devel/mold/mold-2.39.0.ebuild | 117 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 118 insertions(+)