-
-
Notifications
You must be signed in to change notification settings - Fork 497
Core dump, empty interpreter #373
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
Comments
Maybe fixed by #376 ? |
There is now a new patchelf release and the file provided here is no longer available |
Sorry for late replay, if still interested in the file here it is in parts smaller than the 25MB github upload limit, SomeUE4DebugBinary.debug.aa.zip Then, to get the full 136MB binary,
|
|
Ok. So this is not quite a crash but a failed assertion. Also this assertion could be turned into a better error message. |
There's an issue collecting various nixpkg failures related to this. |
Running 0.15.0 with
I wasn't able to bisect exactly what caused this to start happening (NixOS/nixpkgs#399818), but if I look at the ELF from before it broke, Edit: the behaviour change seems to have happened in a binutils update: NixOS/nixpkgs#388157 |
Here's a minimal test which can reproduce this on binutils 2.44, but not 2.43.1:
|
This avoids an assertion failure when 'lastReplaced' is followed by one or mo NOBITS sections, since they won't have a valid startOffset. Fixes: NixOS#373
Bisect at: NixOS/nixpkgs#399818 (comment) |
Describe the bug
The program produces a core dump (crashes).
Steps To Reproduce
patchelf --set-interpreter /path-to/ld-linux.so BinaryWithEmptyInterpreter.binary
produces a core dump.The binary with empty interpreter that triggered the issue for me can be found in zipped form at https://ufile.io/y3pvil2z (38MB zipped, 136MB unzipped).
Expected behavior
Not a program crash. Maybe a no-op with an informative message.
patchelf --version
outputpatchelf 0.14.5
Additional context
yvt/nixpkgs@49be2c8#commitcomment-70690616
The text was updated successfully, but these errors were encountered: