Skip to content

v3.3.0 x86_64-unknown-linux-gnu binary crashes with SIGILL on CPUs without AVX (v3.2.0 gnu and v3.3.0 musl work) #11

Open

Description

@0xnanokaizen

Summary

On x86_64 CPUs without AVX, the v3.3.0 nowhere-x86_64-unknown-linux-gnu.tar.gz binary is killed with SIGILL (illegal instruction) as soon as a Portal starts. nowhere --version still works. On the same machines, the v3.2.0 gnu build and the v3.3.0 musl build run normally.

The v3.3.0 gnu binary appears to be compiled with AVX enabled, so it no longer runs on baseline x86-64 or x86-64-v2 CPUs.

Environment

I see this on two KVM VPSes from different providers:

Host A Host B
CPU model (/proc/cpuinfo) QEMU Virtual CPU version 2.5+ Common KVM processor
Relevant CPU flags sse ssse3 cx16 sse4_1 sse4_2 popcnt aes (no avx/avx2) sse cx16 (no avx/avx2, no sse4_2)
glibc ld.so --help x86-64-v2 supported x86-64-v2 not supported
OS / kernel Debian 13 (trixie), 6.12.113+deb13-amd64 same
glibc 2.41-12+deb13u4 same

A third host with AVX2 (AMD Ryzen 9 9950X, x86-64-v4) runs v3.3.0 gnu without problems.

Steps to reproduce

  1. On a CPU without AVX, download nowhere-x86_64-unknown-linux-gnu.tar.gz from v3.3.0.
  2. Run ./nowhere --version. It prints nowhere-v3.3.0 linux/x86_64.
  3. Start a Portal, for example ./nowhere "portal://<key>@127.0.0.1:39999?tls=1&morph=1".
  4. The process exits right away with Illegal instruction (exit code 132). Under systemd it restarts in a loop with code=killed, status=4/ILL.

nowhere-vps.sh update --version v3.3.0 hits the same crash, because the installer picks the gnu asset on glibc systems.

Same Portal command, same two hosts

Build Result
v3.1.0 gnu / musl runs normally
v3.2.0 gnu / musl runs normally
v3.3.0 gnu SIGILL immediately
v3.3.0 musl runs normally

Kernel log

traps: nowhere[374881] trap invalid opcode ip:55ccffdef3e6 sp:7fffb1910a50 error:0 in nowhere[3983e6,55ccffb2d000+2e3000]
traps: nowhere[380683] trap invalid opcode ip:5642f6a383e6 sp:7ffe68446070 error:0 in nowhere[3983e6,5642f6776000+2e3000]

Both hosts fault at file offset 0x3983e6.

Faulting instruction

I checked the binary from the v3.3.0 nowhere-x86_64-unknown-linux-gnu.tar.gz asset (sha256 ffabdf73dcd51137efaa7a520b7a2faf49fde7956244fee3e3663e3514efbe92). File offset 0x3983e6 maps to vaddr 0x3993e6 in the r-x LOAD segment (off 0xd6d40, vaddr 0xd7d40):

3993d5:  andl   $0xbfffffff, %edx
3993db:  orl    $0x40000000, %eax
3993e0:  testb  %r8b, %r8b
3993e3:  cmovel %edx, %eax
3993e6:  c5 f9 6e c0   vmovd %eax, %xmm0     <-- VEX-encoded (AVX), faults here

The code sits right after a block of cpuid instructions, so it looks like CPU feature detection. The other builds use the SSE2 encoding at the same spot:

Build Same code site Common VEX instructions in .text*
v3.2.0 gnu (26d7b666…) movd %eax, %xmm0 (SSE2) 5516
v3.3.0 musl (606c93a4…) movd %eax, %xmm0 (SSE2) 5516
v3.3.0 gnu (ffabdf73…) vmovd %eax, %xmm0 (AVX) 7310

* Counted with llvm-objdump -d by matching the mnemonics vmov*, vpxor, vpand, vpor, vpadd*, vpsub*, vpshuf*, vpcmp*, vperm*, vbroadcast*, vinserti*, vextracti*, vpblend*, vpsll*, vpsrl*, vaes*, vpclmul*.

The v3.3.0 gnu binary has about 1,800 more of these instructions than the other two, which fits a build with AVX (or a higher target CPU) as the baseline.

Between v3.2.0 and v3.3.0, release.yml and the [profile.release] section of Cargo.toml look unchanged, and the repository has no .cargo/config.toml. My guess is that the build environment of that run differed, for example RUSTFLAGS or -C target-cpu on the ubuntu-latest runner. The gnu target is built directly on the runner, while musl goes through cross. I couldn't read the job logs to check.

Expected behavior

The x86_64-unknown-linux-gnu asset runs on baseline x86-64 CPUs, as v3.2.0 did. If the higher baseline is intentional, please document it, and a separate baseline build would help.

Workaround

Use the v3.3.0 musl asset, or stay on v3.2.0 or v3.1.0. nowhere-vps.sh always picks the gnu asset when ldd reports glibc, so installer users can't easily switch to musl.

Activity

  1. yosebyte commented on Nov 24, 2026

    @yosebyte
    Contributor

    Thanks for the detailed report and binary-level investigation.

    We checked the original release build logs and confirmed that GitHub Actions migrated the ubuntu-latest runner from Ubuntu 24.04 to Ubuntu 26.04 between the v3.2.0 and v3.3.0 releases. The Rust toolchain, dependency versions, and release workflow remained unchanged.

    The evidence strongly suggests a native C toolchain compatibility regression affecting ring. This would also explain why the musl build remains unaffected, as it uses an isolated cross-compilation toolchain.

    We will verify the exact cause and restore baseline x86-64 compatibility in the next release.

    Thanks again for helping us narrow this down.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions