You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strip can normally strip libzstd.so just fine, but because it links to libzstd.so and linuxdeploy sets LD_LIBRARY_PATH to include the local data/lib dir, strip tries to strip one of its own loaded shared libs and segfaults:
[26051.534584] strip[50517]: segfault at c100 ip 000000000000c100 sp 00007ffe633370b8 error 14 in strip[555bdf651000+3000] likely on CPU 21 (core 11, socket 0)
[26051.534593] Code: Unable to access opcode bytes at 0xc0d6.
Suggestion
strip does not crash when LD_LIBRARY_PATH is not set. Maybe LD_LIBRARY_PATH should only be set when calling ldd.
The text was updated successfully, but these errors were encountered:
That's interesting you got strip to work on archlinux, here on artix I couldn't get it to work on aynthing and that is normal I think, it is meant to be used on debian stable, there my same scripts have no issue when doing the strip.
What I do is that I set NO_STRIP=true environment variable when testing on artix.
Here is the end of the output from a failing run of linuxdeployqt:
Information
OS: Arch Linux
This is the LD_LIBRARY_PATH set when calling strip, found by replacing /usr/bin/strip with a shell wrapper that dumps the environment:
Analysis
strip
can normally strip libzstd.so just fine, but because it links to libzstd.so and linuxdeploy sets LD_LIBRARY_PATH to include the localdata/lib
dir,strip
tries to strip one of its own loaded shared libs and segfaults:Suggestion
strip
does not crash when LD_LIBRARY_PATH is not set. Maybe LD_LIBRARY_PATH should only be set when callingldd
.The text was updated successfully, but these errors were encountered: