Skip to content

patchelf: Launching any JACK clients cause segmentation faults. (originally filed as pipewire) #579810

Closed

Description

@silikeite

Nixpkgs version

  • Unstable (26.11)

Describe the bug

Launching any JACK clients (tested using Reaper and Pianoteq 9) causes a segmentation fault on launch.
On any clients where JACK support is optional (tested using Audacity), only ALSA support is listed.

Last known working unstable hash: 55bfb4d lastModified 1791956154
Earliest known broken unstable hash: 02c087f lastModified 1792502884

Steps to reproduce

Install the current NixOS unstable version with Pipewire and JACK enabled, then launch either Reaper or Pianoteq.

Example: https://wiki.nixos.org/wiki/Electric_guitar_interface_setup

Minimal reproducer

Expected behaviour

JACK clients launch normally without issues.

Screenshots

No response

Relevant log output

[  138.056973] process 'jiixgxa52wb1qpqmsbx4ya6lp1mk5flq-reaper-7.82/opt/REAPER/.reaper-wrapped' started with executable stack
[  138.058773] .reaper-wrapped[6290]: segfault at 402d50 ip 00007d44e9cbda74 sp 00007ffc59ea9560 error 7 in ld-linux-x86-64.so.2[25a74,7d44e9c99000+2e000] likely on CPU 0 (core 0, socket 0)
[  138.058779] Code: 01 00 00 00 48 83 bd 80 fe ff ff 00 0f 85 a4 07 00 00 e8 4f f9 fe ff 48 89 85 80 fd ff ff 49 8b 87 e8 00 00 00 48 85 c0 74 04 <4c> 89 68 08 be 01 00 00 00 4c 89 ef e8 1b dd fd ff be 01 00 00 00

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.18.58, NixOS, 26.11 (Zokor), 26.11.20261023.3ec6363
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.34.9
  • nixpkgs: /nix/store/6nwzgfvznah5rg192x0hnl5ykchdgi59-source

Notify maintainers

@K900 @qweered


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: bug
    on Oct 27, 2026
  2. emenel commented on Oct 27, 2026

    @emenel

    this also impacts renoise

  3. silikeite commented on Oct 27, 2026

    @silikeite
    Author

    Note: Tested rolling back pipewire and wireplumber to the latest known working hash (pipewire version 1.6.8 vs 1.6.9) so the problem might be bigger than pipewire itself.

    Something might be broken somewhere else in the stack but again only JACK clients are broken.

  4. silikeite commented on Oct 27, 2026

    @silikeite
    Author

    Note 2: I had to also downgrade Reaper and Pianoteq (and any other JACK-dependent software) to also use the older version - used this guide: https://nixos-and-flakes.thiscute.world/nixos-with-flakes/downgrade-or-upgrade-packages.

    The real culprit might be in libjack2 instead. Not sure if things get built against libjack2 or pipewire.jack though if the latter is enabled. I would ping the maintainers... but there are none!

  5. silikeite commented on Oct 27, 2026

    @silikeite
    Author

    Note 3: The actual system Pipewire version doesn't matter (tested against both 1.6.8 and 1.6.9). What matters is that the version that the JACK client is built against is downgraded to 1.6.8.

    As a temporary fix for anyone else encountering this issue, all you need to downgrade is the version of any JACK clients you are using and nothing else.

    For maintainers, please check what's going on with libjack2 or pipewire.jack.

  6. K900 commented on Oct 28, 2026

    @K900
    Contributor

    Please post a full traceback, or a core dump file.

  7. silikeite commented on Oct 28, 2026

    @silikeite
    Author

    Please post a full traceback, or a core dump file.

    Any instructions for this on NixOS? (Not used to debugging non-debug builds so yeah)

  8. K900 commented on Oct 28, 2026

    @K900
    Contributor

    coredumpctl info

  9. silikeite commented on Oct 28, 2026

    @silikeite
    Author
    ❯ coredumpctl info
               PID: 42214 (.reaper-wrapped)
               TID: 42214 (.reaper-wrapped)
               UID: 1000 (kei)
               GID: 100 (users)
            Signal: 11 (SEGV)
         Timestamp: Wed 2026-10-28 08:31:15 +08 (6h ago)
      Command Line: /run/current-system/sw/bin/reaper
        Executable: /nix/store/jiixgxa52wb1qpqmsbx4ya6lp1mk5flq-reaper-7.82/opt/REAPER/.reaper-wrapped
     Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/app-org.kde.konsole-5842.scope/tab(19579).scope
              Unit: [email protected]
         User Unit: app-org.kde.konsole-5842.scope
             Slice: user-1000.slice
         Owner UID: 1000 (kei)
           Boot ID: 2bad6eaff5a24030b43f3790d79c0179
        Machine ID:  
          Hostname: substrate
           Storage: /var/lib/systemd/coredump/core.\x2ereaper-wrapped.1000.2bad6eaff5a24030b43f3790d79c0179.42214.1793147475000000.zst (present)
      Size on Disk: 67.6K
           Message: Process 42214 (.reaper-wrapped) of user 1000 dumped core.
                    
                    Stack trace of thread 42214:
                    #0  0x000075df1f6e6a74 dl_main (/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 + 0x25a74)
                    #1  0x000075df1f6e3630 _dl_sysdep_start (/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 + 0x22630)
                    #2  0x000075df1f6e4ee1 _dl_start (/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 + 0x23ee1)
                    #3  0x000075df1f6e3be8 _start (/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 + 0x22be8)
                    ELF object binary architecture: AMD x86-64
    
  10. K900 commented on Oct 28, 2026

    @K900
    Contributor

    That is extremely strange, it's crashing in the dynamic loader before the application even runs. Can you try running the application with LD_DEBUG=all?

  11. silikeite commented on Oct 28, 2026

    @silikeite
    Author

    Just as a sanity check before I send, is there anything sensitive I need to censor before I send the output? Output is a pretty long file.

  12. K900 commented on Oct 28, 2026

    @K900
    Contributor

    I don't think there should be anything sensitive in there.

  13. K900 commented on Oct 28, 2026

    @K900
    Contributor

    Ugh this is tracing the bash wrapper. Can you try running the unwrapped executable directly?

  14. silikeite commented on Oct 28, 2026

    @silikeite
    Author

    Switched to Pianoteq which is unwrapped since I have no idea how to unwrap Reaper.

    > LD_DEBUG=all Pianoteq\ 9 
        106621:	tls: assign modid 1 to Pianoteq 9 [0]
        106621:	symbol=__vdso_clock_gettime;  lookup in file=linux-vdso.so.1 [0]
        106621:	binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_clock_gettime' [LINUX_2.6]
        106621:	symbol=__vdso_gettimeofday;  lookup in file=linux-vdso.so.1 [0]
        106621:	binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_gettimeofday' [LINUX_2.6]
        106621:	symbol=__vdso_time;  lookup in file=linux-vdso.so.1 [0]
        106621:	binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_time' [LINUX_2.6]
        106621:	symbol=__vdso_getcpu;  lookup in file=linux-vdso.so.1 [0]
        106621:	binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_getcpu' [LINUX_2.6]
        106621:	symbol=__vdso_clock_getres;  lookup in file=linux-vdso.so.1 [0]
        106621:	binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_clock_getres' [LINUX_2.6]
        106621:	symbol=__vdso_getrandom;  lookup in file=linux-vdso.so.1 [0]
        106621:	binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_getrandom' [LINUX_2.6]
    
    ❯ coredumpctl info
               PID: 106621 (Pianoteq 9)
               TID: 106621 (Pianoteq 9)
               UID: 1000 (kei)
               GID: 100 (users)
            Signal: 11 (SEGV)
         Timestamp: Wed 2026-10-28 14:53:46 +08 (1min 11s ago)
      Command Line: $'Pianoteq 9'
        Executable: /nix/store/bqipwkv4g1igyhgmhvfjybghfd1q0a9h-pianoteq-standard-9.2.5/bin/Pianoteq 9
     Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/app-org.kde.konsole-5842.scope/tab(19579).scope
              Unit: [email protected]
         User Unit: app-org.kde.konsole-5842.scope
             Slice: user-1000.slice
         Owner UID: 1000 (kei)
           Boot ID: 2bad6eaff5a24030b43f3790d79c0179
        Machine ID: 
          Hostname: substrate
           Storage: /var/lib/systemd/coredump/core.Pianoteq\x209.1000.2bad6eaff5a24030b43f3790d79c0179.106621.1793170426000000.zst (present)
      Size on Disk: 142.1K
           Message: Process 106621 (Pianoteq 9) of user 1000 dumped core.
                    
                    Stack trace of thread 106621:
                    #0  0x000078568ce73a74 dl_main (/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 + 0x25a74)
                    #1  0x000078568ce70630 _dl_sysdep_start (/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 + 0x22630)
                    #2  0x000078568ce71ee1 _dl_start (/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 + 0x23ee1)
                    #3  0x000078568ce70be8 _start (/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 + 0x22be8)
                    ELF object binary architecture: AMD x86-64
    
  15. 9 remaining items

  16. silikeite commented on Oct 28, 2026

    @silikeite
    Author

    That suggestion did lead me to this issue though : #577387

    Timeline seems to match up with where the latest working version is (last working Oct 20, patchelf update Oct 22). Issue seems to have survived NixOS/patchelf#672 though.

  17. nick-linux8 commented on Oct 28, 2026

    @nick-linux8
    Contributor

    FWIW since I was pinged I agree with K900 that it does look patchelf related, given what I have seen thus far. Both crashes land at the same offset in ld-linux, and Reaper’s kernel line shows error 7 (a write to a read-only page) inside the dynamic linker, which fits a corrupted binary. Pinning back to before the patchelf update fixing it also makes it stronger.

  18. emenel commented on Oct 28, 2026

    @emenel

    17. > 2. this also impacts renoise

         [@emenel](https://github.com/emenel)  Can you try debugging against renoise as well and see if you get the same uninformative errors or something else?
         Currently running verify but that's gonna uhhh take a while.
    

    Here's the ld debug for renoise:

         26110:     tls: assign modid 1 to renoise [0]
         26110:     symbol=__vdso_clock_gettime;  lookup in file=linux-vdso.so.1 [0]
         26110:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_clock_gettime' [LINUX_2.6]
         26110:     symbol=__vdso_gettimeofday;  lookup in file=linux-vdso.so.1 [0]
         26110:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_gettimeofday' [LINUX_2.6]
         26110:     symbol=__vdso_time;  lookup in file=linux-vdso.so.1 [0]
         26110:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_time' [LINUX_2.6]
         26110:     symbol=__vdso_getcpu;  lookup in file=linux-vdso.so.1 [0]
         26110:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_getcpu' [LINUX_2.6]
         26110:     symbol=__vdso_clock_getres;  lookup in file=linux-vdso.so.1 [0]
         26110:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_clock_getres' [LINUX_2.6]
         26110:     symbol=__vdso_getrandom;  lookup in file=linux-vdso.so.1 [0]
         26110:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_getrandom' [LINUX_2.6]
    fish: Job 1, 'LD_DEBUG=all renoise' terminated by signal SIGSEGV (Address boundary error)
    

    and from reaper unwrapped:

         32311:     symbol=__vdso_clock_gettime;  lookup in file=linux-vdso.so.1 [0]
         32311:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_clock_gettime' [LINUX_2.6]
         32311:     symbol=__vdso_gettimeofday;  lookup in file=linux-vdso.so.1 [0]
         32311:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_gettimeofday' [LINUX_2.6]
         32311:     symbol=__vdso_time;  lookup in file=linux-vdso.so.1 [0]
         32311:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_time' [LINUX_2.6]
         32311:     symbol=__vdso_getcpu;  lookup in file=linux-vdso.so.1 [0]
         32311:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_getcpu' [LINUX_2.6]
         32311:     symbol=__vdso_clock_getres;  lookup in file=linux-vdso.so.1 [0]
         32311:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_clock_getres' [LINUX_2.6]
         32311:     symbol=__vdso_getrandom;  lookup in file=linux-vdso.so.1 [0]
         32311:     binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_getrandom' [LINUX_2.6]
    fish: Job 1, 'LD_DEBUG=all /nix/store/bv8j2qb…' terminated by signal SIGSEGV (Address boundary error)
    
    
  19. K900 commented on Oct 28, 2026

    @K900
    Contributor

    Can you please try building it with older patchelf?

  20. silikeite commented on Oct 28, 2026

    @silikeite
    Author

    Can you please try building it with older patchelf?

    Is there a way to downgrade only patchelf and not the entire nixpkgs for a given package? Right now all I can prove is that we don't get the segfault with the latest nixos-unstable prior to the patchelf upgrade.

  21. silikeite commented on Oct 28, 2026

    @silikeite
    Author

    Update: I just tested the same logic as this commit that just referenced this exact issue and it works perfectly.
    camdenboren/nixos@40b16c0

    Uses patchelf 15.2 from stable and changes nothing else about the applications.

    I think this probably confirms that the real issue is with patchelf. The fix can probably be backported to the affected packages (I am so far aware of Reaper, Bitwig, Pianoteq, and Renoise.

    Can someone check if NixOS/patchelf#672 or #578975 fixes these??? I don't know how to test these myself.

  22. changed the title [-]pipewire: Launching any JACK clients cause segmentation faults.[/-] [+]patchelf: Launching any JACK clients cause segmentation faults. (originally filed as pipewire)[/+] on Oct 29, 2026
  23. vavakado commented on Oct 31, 2026

    @vavakado
    Member

    can reproduce with reaper on

    • system: "x86_64-linux"
    • host os: Linux 7.2.8-cachyos-lto, NixOS, 26.11 (Zokor), 26.11.20261020.02c087f
    • multi-user?: yes
    • sandbox: yes
    • version: nix-env (Lix, like Nix) 2.95.4 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/vavakado/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/vavakado/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/vavakado/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/vavakado/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/vavakado/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/ib5pqhkh5vxvr2xa9dw454fy341rxk7d-lix-2.95.4/share
    • nixpkgs: /nix/store/87lfqfz7mc5dm4w75qikxhd6lkr9jisr-source

    coredumpctl info shows the same trace as for silikeite

  24. K900 commented on Oct 31, 2026

    @K900
    Contributor

    The patchelf update has been reverted on staging-next.

  25. qweered commented on Nov 3, 2026

    @qweered
    Contributor

    Should be fixed by revert in staging-next and in 0.19.3 #577387 (comment), if it will be an issue after that please reopen

  26. silikeite commented on Nov 6, 2026

    @silikeite
    Author

    Noting that neither the reverted nor the updated patchelf is still in nixos-unstable. Let me know if that's grounds to reopen.

  27. qweered commented on Nov 6, 2026

    @qweered
    Contributor

    Fix is in #580394, should be soon merged to master and then to nixos-unstable

  28. vavakado commented on Nov 7, 2026

    @vavakado
    Member

    Noting that neither the reverted nor the updated patchelf is still in nixos-unstable. Let me know if that's grounds to reopen.

    It's just a matter of waiting, see https://nixpk.gs/pr-tracker.html?pr=580394

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions