Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patchelf set-rpath fails on Fedora 41 beta #568

Open
jeremysanders opened this issue Oct 23, 2024 · 2 comments
Open

Patchelf set-rpath fails on Fedora 41 beta #568

jeremysanders opened this issue Oct 23, 2024 · 2 comments
Labels

Comments

@jeremysanders
Copy link
Contributor

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

@jeremysanders jeremysanders changed the title Patchelf fails on Fedora 41 beta Patchelf set-rpath fails on Fedora 41 beta Oct 23, 2024
@musicinmybrain
Copy link

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

@hroncok
Copy link

hroncok commented Oct 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants