Skip to content

cmake illegal hardware instruction on i686 #59135

@ComputerCraftr

Description

@ComputerCraftr

Is this a new report?

Yes

System Info

Void 6.18.2_1 i686 GenuineIntel uptodate rr

Package(s) Affected

rhash-1.4.6_1, cmake-4.2.2_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

None that I can find

Expected behaviour

The cmake build should run normally without SIGILL.

Actual behaviour

I encountered SIGILL on this CPU when cmake tried to invoke rhash.

Model name: Intel(R) Pentium(R) M processor 1.70GHz
Flags: fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe bts cpuid est tm2 pti

Steps to reproduce

  1. Try to build a cmake project:
    » cmake -B build && cmake --build build
    -- No C compiler specified; defaulting to clang: /usr/bin/clang
    -- The C compiler identification is Clang 21.1.7
    [1] 16510 illegal hardware instruction cmake -B build
  2. Observe crash:
    » sudo dmesg -T | tail -n 3
    [Tue Feb 24 23:38:39 2026] traps: cmake[16393] trap invalid opcode ip:b7d22f6e sp:bf8a5b90 error:0 in librhash.so.1.4.6[2f6e,b7d22000+21000]
    [Tue Feb 24 23:40:05 2026] traps: cmake[16475] trap invalid opcode ip:b7c97f6e sp:bfec27e0 error:0 in librhash.so.1.4.6[2f6e,b7c97000+21000]
    [Tue Feb 24 23:40:12 2026] traps: cmake[16510] trap invalid opcode ip:b7cc4f6e sp:bf9a58d0 error:0 in librhash.so.1.4.6[2f6e,b7cc4000+21000]
  3. Check the problematic instruction:
    » objdump -d -Mintel --show-raw-insn /usr/lib/librhash.so.1.4.6 --start-address=0x2f6a --stop-address=0x2f74
    /usr/lib/librhash.so.1.4.6: file format elf32-i386
    Disassembly of section .text:
    00002f6a <rhash_library_init@@Base-0x266>:
    2f6a: 8b 7c 24 1c mov edi,DWORD PTR [esp+0x1c]
    2f6e: 66 0f 3a 22 c2 01 pinsrd xmm0,edx,0x1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-testingTesting a PR or reproducing an issue needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions