Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translateLocally: fails to run on x86_64 without AVX-512 #379579

Closed
3 tasks done
lheckemann opened this issue Feb 5, 2025 · 1 comment · Fixed by #385549
Closed
3 tasks done

translateLocally: fails to run on x86_64 without AVX-512 #379579

lheckemann opened this issue Feb 5, 2025 · 1 comment · Fixed by #385549
Labels
0.kind: bug Something is broken

Comments

@lheckemann
Copy link
Member

Nixpkgs version

  • Stable (24.11)

Describe the bug

translateLocally crashes on startup with Illegal instruction when run on an intel i7-1370P:

$ translateLocally 
Illegal instruction (core dumped)

gdb says this is on this instruction:

=> 0x00000000004ca853 <+2083>:  vinserti32x4 $0x1,%xmm13,%ymm15,%ymm3

which is from the AVX-512 extension.

The build seems to do autodetection based on the CPU on which the build runs -- from the build log:

-- AVX512 support found

Steps to reproduce

Run translateLocally on an x86_64 CPU without AVX-512.

Note that this may not occur consistently -- I don't know if all of our Hydra builders have AVX-512, and if some don't we might end up with working binaries depending on where the build was scheduled. I was able to reproduce this on:

  • /nix/store/x1ip8qrs57jckjnqy6nsd5znwdkmzfnr-translatelocally-0-unstable-2024-05-12 (from nixpkgs 24.11 commit f668777)
  • /nix/store/d16zqbm3wv42ii4x9g209vqbzfr96fs7-translatelocally-0-unstable-2024-05-12 (from nixpkgs unstable 799ba5b)

Expected behaviour

No crash

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.74, NixOS, 24.11 (Vicuna), 24.11-20250201-f668777
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.93.0-dev-pre20250201-a513806 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/linus/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/linus/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/linus/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/linus/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/linus/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/63lli5digaa2s45i7q2vz19vp2yyn87j-lix-2.93.0-dev-pre20250201-a513806/share
  • nixpkgs: /var/lib/nixpkgs

Notify maintainers

@pacien

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.

@lheckemann lheckemann added the 0.kind: bug Something is broken label Feb 5, 2025
@mweinelt
Copy link
Member

mweinelt commented Feb 5, 2025

I don't know if all of our Hydra builders have AVX-512

We generally build x86_64-linux on two 4th gen EPYC machines, so they should always have AVX512.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants