Skip to content

Reproduce AVX SIGILL bug on AMD Server CPUs#2

Draft
nyurik with Copilot wants to merge 3 commits into
mainfrom
copilot/reproduce-avx-bug
Draft

Reproduce AVX SIGILL bug on AMD Server CPUs#2
nyurik with Copilot wants to merge 3 commits into
mainfrom
copilot/reproduce-avx-bug

Conversation

Copilot AI commented Mar 2, 2026

Copy link
Copy Markdown

FastPFor256Codec and SimdFastPFor256Codec crash with SIGILL on AMD EPYC 7763 (AVX2, no AVX-512) when encoding a full 256-value SIMD block of large identical values. First observed in maplibre-tile-spec#1016.

Changes

  • tests/avx_bug.rs — minimal reproduction: encode vec![1_000_000u32; 256] through FastPFor256Codec and SimdFastPFor256Codec with a roundtrip assert. Passes on Intel/non-AMD hardware; crashes with signal: 4, SIGILL on affected AMD runners.

  • justfile — adds ci-env-info recipe (called by ci-test) that logs tool versions, lscpu, and /proc/cpuinfo in collapsible GitHub Actions groups before any test run, making CPU feature flags visible in CI logs.

  • .github/workflows/ci.yml — stripped to a single test job on ubuntu-latest; removed test-nightly, test-msrv, fuzz, coverage, ci-passed, and release jobs as irrelevant to this bug branch.

Original prompt

This section details on the original issue you should resolve

<issue_title>Reproduce AVX bug</issue_title>
<issue_description>Create a PR against the avx branch of this repo.

Create a minimal reproduction of the bug that showed up in https://github.com/maplibre/maplibre-tile-spec/actions/runs/22491110985/job/65153285092 and described in maplibre/maplibre-tile-spec#1016

The code should be the smallest possible test case</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: nyurik <1641515+nyurik@users.noreply.github.com>
Copilot AI changed the title [WIP] Create minimal reproduction for AVX bug Add minimal AVX bug reproduction test Mar 2, 2026
Co-authored-by: nyurik <1641515+nyurik@users.noreply.github.com>
Copilot AI changed the title Add minimal AVX bug reproduction test Reproduce AVX SIGILL bug on AMD Server CPUs Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reproduce AVX bug

2 participants