NixOS / patchelf

A small utility to modify the dynamic linker and RPATH of ELF executables
GNU General Public License v3.0
3.47k stars 483 forks source link

Segfault with auditwheel and patchelf #558

Open lpsinger opened 3 months ago

lpsinger commented 3 months ago

Describe the bug

I have a binary in a Python wheel that I have processed with auditwheel that segfaults. The segfaults go away if I downgrade to patchelf<0.16.1, so patchelf 0.16.1 introduced the issue.

Steps To Reproduce

See https://git.ligo.org/lscsoft/lalsuite/-/jobs/3382624.

Or, install the wheel from https://git.ligo.org/lscsoft/lalsuite/-/jobs/3382624/artifacts/raw/wheelhouse/lalsuite-7.22.1-cp312-cp312-manylinux_2_28_x86_64.whl and run the command lalapps_version.

$ docker run --rm -it python:3.12 bash
root@25236202b91a:/# pip install https://git.ligo.org/lscsoft/lalsuite/-/jobs/3382624/artifacts/raw/wheelhouse/lalsuite-7.22.1-cp312-cp312-manylinux_2_28_x86_64.whl
root@25236202b91a:/# lalapps_version 
Segmentation fault

Expected behavior

Command should succeed without segfaulting.

patchelf --version output

patchelf 0.17.2

Additional context

N/A

jvolkman commented 3 months ago

Is the unpatched wheel available?

lpsinger commented 3 months ago

Now there is.