Patchelf set-rpath fails on Fedora 41 beta
jeremysanders opened this issue · 2 comments
Describe the bug
Executables which have the rpath set give a segfault on the beta Fedora 41.
Steps To Reproduce
Basic hello world
mytest.c:
#include <stdio.h>
int main()
{
printf("hello, world!\n");
return 0;
}
$ gcc -o mytest mytest.c
$ patchelf --set-rpath '/usr/lib' ./mytest
$ ./mytest
Segmentation fault (core dumped)
Please include exact steps with an attached binary so that
another person can reproduce the problem.
Expected behavior
Should not fail.
patchelf --version
output
patchelf 0.18.0
Additional context
Originally reported in this Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=2319341
Possibly related is a segmentation fault in a meson-python
test that fiddles with rpaths: https://bugzilla.redhat.com/show_bug.cgi?id=2321588, mesonbuild/meson-python#698
I am not entirely sure the meson-python issue is caused by the same thing. It only now started to happen since this binutils commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=bf6d7087de0a7351fd1dfd5f41522a7f4f576180