clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
521 stars 29 forks source link

[coreutils] single-binary/static build is incompatible with nss_systemd.so.2 #2971

Open iavael opened 11 months ago

iavael commented 11 months ago

ls from coreutils segfaults when it need to resolve user/group name to uid/gid via nss_systemd.so.2

At first I blamed systemd https://github.com/systemd/systemd/issues/29337 but Lennart raised a valid concern about getpwuid(3) being a symbol of coreutils elf, while it should belong to libc.so.6 https://github.com/systemd/systemd/issues/29337#issuecomment-1738085875

Maybe single-binary buildmode or static linking should be disabled here https://github.com/clearlinux-pkgs/coreutils/blob/main/coreutils.spec#L123?

All relevant information is provided in systemd issue

fenrus75 commented 11 months ago

hmm I thought we fixed this long time ago

On Thu, Sep 28, 2023 at 4:04 PM Iavael @.***> wrote:

ls from coreutils segfaults when it need to resolve user/group name to uid/gid via nss_systemd.so.2

At first I blamed systemd systemd/systemd#29337 https://github.com/systemd/systemd/issues/29337 but Lennart raised a valid concern about getpwuid(3) being a symbol of coreutils elf, while it should belong to libc.so.6 systemd/systemd#29337 (comment) https://github.com/systemd/systemd/issues/29337#issuecomment-1738085875

Maybe single-binary buildmode should be disabled here systemd/systemd#29337 (comment) https://github.com/systemd/systemd/issues/29337#issuecomment-1738085875 ?

All relevant information is provided in systemd issue

— Reply to this email directly, view it on GitHub https://github.com/clearlinux/distribution/issues/2971, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FK5HSWHGHQ3GS7PHT3X4X66XANCNFSM6AAAAAA5LVDK6Y . You are receiving this because you are subscribed to this thread.Message ID: @.***>

fenrus75 commented 11 months ago

ah no we fixed the other NSS parts...

fixing this to make sure our systemd and glibc stay in sync better

On Thu, Sep 28, 2023 at 4:30 PM Arjan van de Ven @.***> wrote:

hmm I thought we fixed this long time ago

On Thu, Sep 28, 2023 at 4:04 PM Iavael @.***> wrote:

ls from coreutils segfaults when it need to resolve user/group name to uid/gid via nss_systemd.so.2

At first I blamed systemd systemd/systemd#29337 https://github.com/systemd/systemd/issues/29337 but Lennart raised a valid concern about getpwuid(3) being a symbol of coreutils elf, while it should belong to libc.so.6 systemd/systemd#29337 (comment) https://github.com/systemd/systemd/issues/29337#issuecomment-1738085875

Maybe single-binary buildmode should be disabled here systemd/systemd#29337 (comment) https://github.com/systemd/systemd/issues/29337#issuecomment-1738085875 ?

All relevant information is provided in systemd issue

— Reply to this email directly, view it on GitHub https://github.com/clearlinux/distribution/issues/2971, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FK5HSWHGHQ3GS7PHT3X4X66XANCNFSM6AAAAAA5LVDK6Y . You are receiving this because you are subscribed to this thread.Message ID: @.***>