You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0.kind: bugSomething is broken0.kind: regressionSomething that worked before working no longer6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
I can confirm that the patchelf upgrade #58715 caused this and also some other issues: 41af38f#commitcomment-35178328 though I still fail to understand why/how.
vscode: the wrapping is the same, but binary gets corrupted by patchelf: NixOS/patchelf#170 (comment) I find it likely that both regressions (and probably more) were caused by these.
For now I downgraded the default patchelf in 4e5b465, so that we can immediately start integrating the rest of staging-next (security fixes, in particular).
I'm not aware of any such formalities. First we should verify at least some of those known regressions (say, test vscode). Then we might do a run in a separate Hydra jobset, but... I didn't discover this regression by looking at the staging-next jobset and it got to nixpkgs master.
Just found this issue. I'm unable to install vscode and vscodium with virtual address space underrun! apparently because of patchelf. I'm on NixOS 19.03 i686, though.
I'd really prefer if patchelf from nixpkgs could point to the the latest official release. If vscode and vscodium don't work with the latest patchelf, we could keep a patchelf_0_9 attribute until the bugs are fixed in patchelf.
Are we able to reproduce the udev error with a NixOS VM test, or is it a Xen-specific thing?
Urgh, turns out, patchelf is part of stdenv, so autoPatchelfHook (what's used to patchelf vscode and vscodium) will pick whatever is a default there :-/
IMHO, while we do that, we should also rename patchelf/unstable.nix to patchelf/default.nix and replace all usages of patchelfUnstable with patchelf - these were all hacks that wanted >= patchelf 0.10, features, and we can remove all this.
$ nix-build -A vscode
error: anonymous function at /home/ielectric/dev/nixpkgs/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'recursiveHash', at /home/ielectric/dev/nixpkgs/pkgs/build-support/fetchzip/default.nix:17:2
(use '--show-trace' to show detailed location information)
That's an error for almost anything in nixpkgs, and the commit mentioned above fixes it for me.
Still, I was unable to use vscode for testing this, because in the past only i686 version appeared to be broken and that platform isn't supported by current vscode. (With some more work, I can imagine applying the patchelf update to the old nixpkgs and trying that.)
EDIT: so I skipped that, thinking that we need to check whole nixpkgs anyway.
@vcunat It's looking pretty good (6k builds to go).
The only weird failure so far is:
/nix/store/psw68f7ngn728fng2xh9vzsdiri9a8r5-pytest-check-hook/nix-support/setup-hook: line 40: 113 Illegal instruction /nix/store/2v0r743sczdnagsja18vq89hw4qdqm4d-python3-3.7.7/bin/python3.7 -m pytest -k "not test_load_cuda_params_to_cpu and not test_pickle_load"
0.kind: bugSomething is broken0.kind: regressionSomething that worked before working no longer6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Activity
Merge branch 'staging-next'
vcunat commentedon Sep 21, 2019
The problem is avoided now on master after f8a8fc6, but we still need to fix it, so I'm leaving this open.
vcunat commentedon Sep 22, 2019
I can confirm that the patchelf upgrade #58715 caused this and also some other issues: 41af38f#commitcomment-35178328 though I still fail to understand why/how.
[-]udev aborts on assertion resolve_name_timing[/-][+]regressions due to patchelf: 0.9 -> 0.10[/+]patchelf: 0.10 -> 0.9 (downgrade!)
vcunat commentedon Sep 22, 2019
vscode: the wrapping is the same, but binary gets corrupted by patchelf: NixOS/patchelf#170 (comment) I find it likely that both regressions (and probably more) were caused by these.For now I downgraded the default patchelf in 4e5b465, so that we can immediately start integrating the rest of staging-next (security fixes, in particular).
booxter commentedon Sep 24, 2019
@vcunat thanks for handling the mess. What's the procedure to validate a bump for
patchelfbefore merging it?vcunat commentedon Sep 25, 2019
I'm not aware of any such formalities. First we should verify at least some of those known regressions (say, test
vscode). Then we might do a run in a separate Hydra jobset, but... I didn't discover this regression by looking at the staging-next jobset and it got to nixpkgs master.vvs- commentedon Nov 17, 2019
Just found this issue. I'm unable to install
vscodeandvscodiumwithvirtual address space underrun!apparently because of patchelf. I'm on NixOS 19.03 i686, though.vcunat commentedon Nov 18, 2019
Hmm, I'm getting a different error
19.03 always used patchelf 0.9 by default, so I can't see why it would be affected by the very same issue.
Note: on 19.09 and later i686 isn't supported anymore due to upstream: #64308 (comment) ... and 19.03 isn't really a supported nixpkgs branch anymore.
flokli commentedon Dec 26, 2019
I'd really prefer if
patchelffrom nixpkgs could point to the the latest official release. Ifvscodeandvscodiumdon't work with the latest patchelf, we could keep apatchelf_0_9attribute until the bugs are fixed in patchelf.Are we able to reproduce the udev error with a NixOS VM test, or is it a Xen-specific thing?
flokli commentedon Dec 26, 2019
Urgh, turns out, patchelf is part of stdenv, so
autoPatchelfHook(what's used to patchelf vscode and vscodium) will pick whatever is a default there :-/domenkozar commentedon Jun 3, 2020
@vcunat I've merged a bunch of patchelf patches including the possible fix, could you setup staging using
patchelfUnstablefrom recent master?vcunat commentedon Jun 3, 2020
I had to hack around some issues in 15bfb6b; we'll probably want a patchelf release/tarball before merging this to nixpkgs master. Jobset is running now: https://hydra.nixos.org/eval/1591215?compare=1591203
flokli commentedon Jun 3, 2020
@vcunat nice, let's hope this works out!
IMHO, while we do that, we should also rename
patchelf/unstable.nixtopatchelf/default.nixand replace all usages ofpatchelfUnstablewithpatchelf- these were all hacks that wanted >= patchelf 0.10, features, and we can remove all this.vcunat commentedon Jun 3, 2020
Sure, I didn't want to hassle with such details at this moment.
flokli commentedon Jun 3, 2020
sure :-)
domenkozar commentedon Jun 4, 2020
@vcunat I've tried vscode but I get:
vcunat commentedon Jun 4, 2020
That's an error for almost anything in nixpkgs, and the commit mentioned above fixes it for me.
Still, I was unable to use vscode for testing this, because in the past only i686 version appeared to be broken and that platform isn't supported by current vscode. (With some more work, I can imagine applying the patchelf update to the old nixpkgs and trying that.)
EDIT: so I skipped that, thinking that we need to check whole nixpkgs anyway.
domenkozar commentedon Jun 4, 2020
I can launch vscode-with-extensions with your additional commit without problems.
domenkozar commentedon Jun 4, 2020
@vcunat It's looking pretty good (6k builds to go).
The only weird failure so far is:
domenkozar commentedon Jun 6, 2020
Jobset has only 30 failing builds and they all don't seem related. Seems like we can release 0.11?
domenkozar commentedon Jun 8, 2020
To me it looks like @edolstra can release patchelf 0.11, but I'd invite anyone to test extra things that were broken by 0.10
domenkozar commentedon Jun 9, 2020
0.11 was released and a PR for staging is at #89927
monoidal commentedon Aug 17, 2020
Since #89927 was merged, should this be closed?