Skip to content

cryptography 46.0.3 fails on ppc64le with "Illegal instruction" #14184

@kasium

Description

@kasium

cryptography 46 contains wheels for ppc64le. However when used, weird errors happen. The kernel logs point to cryptography/hazmat/bindings/ _rust.abi3.so

To reproduce
#. go on a PPC machine
#. docker run -ti python:3.14 /bin/bash
#. pip install cryptography
#. python -c "import cryptography.hazmat.bindings._rust"

--> fails with Illegal instruction and python terminates right away

# lscpu
Architecture:                ppc64le
  Byte Order:                Little Endian
CPU(s):                      40
  On-line CPU(s) list:       0-39
Model name:                  POWER8 (architected), altivec supported
  Model:                     2.0 (pvr 004d 0200)
  Thread(s) per core:        8
  Core(s) per socket:        5
  Socket(s):                 1
  Physical sockets:          8
  Physical chips:            1
  Physical cores/chip:       10
Virtualization features:
  Hypervisor vendor:         pHyp
  Virtualization type:       para
Caches (sum of all):
  L1d:                       320 KiB (5 instances)
  L1i:                       160 KiB (5 instances)
  L2:                        2.5 MiB (5 instances)
  L3:                        40 MiB (5 instances)
NUMA:
  NUMA node(s):              1
  NUMA node0 CPU(s):         0-39
Vulnerabilities:
  Gather data sampling:      Not affected
  Indirect target selection: Not affected
  Itlb multihit:             Not affected
  L1tf:                      Not affected
  Mds:                       Not affected
  Meltdown:                  Not affected
  Mmio stale data:           Not affected
  Reg file data sampling:    Not affected
  Retbleed:                  Not affected
  Spec rstack overflow:      Not affected
  Spec store bypass:         Not affected
  Spectre v1:                Not affected
  Spectre v2:                Vulnerable
  Srbds:                     Not affected
  Tsx async abort:           Not affected

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting-on-reporterIssue is waiting on a reply from the reporter. It will be automatically cloesd if there is no reply.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions