Skip to content

systemd's udevadm fails in extra-utils #331907

Open
@RossComputerGuy

Description

@RossComputerGuy

Describe the bug

Inside of the extra-utils derivation, udevadm fails to execute. Outside of extra-utils, udevadm can execute. This issue occurs with and without any arguments. Strace reveals the exec syscall fails.

execve("/nix/store/l3g7si329816p93wwi8q05cihkryg35n-extra-utils/bin/udevadm", ["/nix/store/l3g7si329816p93wwi8q0"...], 0xffffedefdf30 /* 79 vars */) = -1 EINVAL (Invalid argument)
+++ killed by SIGSEGV +++
[1]    746261 segmentation fault (core dumped)  strace /nix/store/l3g7si329816p93wwi8q05cihkryg35n-extra-utils/bin/udevadm

Dumping the binary with llvm-readelf -d shows this:

Dynamic section at offset 0x89600 contains 32 entries:
  Tag                Type           Name/Value
  0x000000000000001d (RUNPATH)      Library runpath: [/nix/store/l3g7si329816p93wwi8q05cihkryg35n-extra-utils/lib]
  0x0000000000000001 (NEEDED)       Shared library: [libsystemd-shared-256.so]
  0x0000000000000001 (NEEDED)       Shared library: [libblkid.so.1]
  0x0000000000000001 (NEEDED)       Shared library: [libpthread.so.0]
  0x0000000000000001 (NEEDED)       Shared library: [libc.so.6]
  0x0000000000000001 (NEEDED)       Shared library: [ld-linux-aarch64.so.1]
  0x000000000000001e (FLAGS)        BIND_NOW
  0x000000006ffffffb (FLAGS_1)      NOW PIE
  0x0000000000000015 (DEBUG)        0x0
  0x0000000000000007 (RELA)         0x7b38
  0x0000000000000008 (RELASZ)       41784 (bytes)
  0x0000000000000009 (RELAENT)      24 (bytes)
  0x000000006ffffff9 (RELACOUNT)    1611
  0x0000000000000017 (JMPREL)       0x11e70
  0x0000000000000002 (PLTRELSZ)     14040 (bytes)
  0x0000000000000003 (PLTGOT)       0xa9958
  0x0000000000000014 (PLTREL)       RELA
  0x0000000000000006 (SYMTAB)       0xd0000
  0x000000000000000b (SYMENT)       24 (bytes)
  0x0000000000000005 (STRTAB)       0x46c4
  0x000000000000000a (STRSZ)        13423 (bytes)
  0x000000006ffffef5 (GNU_HASH)     0x46a8
  0x0000000000000019 (INIT_ARRAY)   0x8af10
  0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
  0x000000000000001a (FINI_ARRAY)   0x8af18
  0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
  0x000000000000000c (INIT)         0x78a34
  0x000000000000000d (FINI)         0x78a4c
  0x000000006ffffff0 (VERSYM)       0x4098
  0x000000006ffffffe (VERNEED)      0x45b4
  0x000000006fffffff (VERNEEDNUM)   4
  0x0000000000000000 (NULL)         0x0

Steps To Reproduce

Steps to reproduce the behavior:

  1. Build NixOS with systemd.package = pkgs.pkgsLLVM.systemd; and boot.initrd.systemd.package = pkgs.pkgsLLVM.systemd;.

Expected behavior

NixOS init stage 1 should complete

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Notify maintainers

@flokli
@kloenk

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions