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
{{ message }}
Repository navigation
upx compatibility(Cannot pack after postject-ed) #87
while the original node executable can be packed fine.
Could you confirm if the packed original node executable also runs without errors? (I'm asking because I just tried using upx 4.0.2 from brew on the original Node.js v20.2.0 official x86_64 macOS binary and it looks like upx works without errors but running the resultant executable segfaults)
Also, does passing the --force-execve option to upx, as suggested in the error, help in any way?
Activity
RaisinTen commentedon Jun 1, 2023
Okay, so you're trying this on an ELF binary and https://github.com/upx/upx/blob/dae45ae0d4e569e071279bac1693a447934a1363/src/p_lx_elf.cpp#L2544-L2547 is where the error is coming from.
Could you confirm if the packed original node executable also runs without errors? (I'm asking because I just tried using
upx 4.0.2from brew on the original Node.js v20.2.0 officialx86_64macOS binary and it looks like upx works without errors but running the resultant executable segfaults)Also, does passing the
--force-execveoption to upx, as suggested in the error, help in any way?HCLonely commentedon Feb 22, 2024
It works fine on windows, but I had the same problem on linux.
And the original node executable works fine on both systems.
It was tested on
ddadaal commentedon Feb 20, 2025
Can confirm this in Linux Node 22 and 23. Node binary itself can be upx-ed and works fine, but postject-ed SEA fails to run with
bad e_phoff.Sfinx commentedon Mar 6, 2025
See the upx/upx#892