shc
shc copied to clipboard
Executable stops working
Hello, can you explain why the executable suddenly stops working and produces random characters?
This is the output of the executable that is failing user>./error_run_healthcheck_prak.x ./error_run_healthcheck_prak.x: ▒▒▒)▒▒▒+▒d▒▒▒U2▒v▒▒b▒p▒
▒T▒▒g▒J▒;▒▒4▒f▒2!▒▒▒▒▒▒T▒2g▒▒▒$▒▒nvn▒s▒▒4▒▒▒i▒[t] ▒M▒▒?▒▒-▒Gv▒▒▒VQ▒f▒▒▒[▒d-▒oMh▒▒_▒t▒*m▒q▒▒8▒̎▒▒▒▒V▒/▒%▒▒!]▒K▒▒▒▒cq▒h3z▒▒k▒}▒▒7▒<?▒a)▒▒▒k▒RI▒▒f_Γ▒�▒
This is the output of the executable that is working hdfsuser@cdrl-hd-en4-~/covid19>./run_healthcheck_prak.x
Password:
The source script is the same, and at some point even the failing executable was working fine.
I have the same issue you faced if you find ways to fix it. Can you post the solution here? Thanks in advance.
Perhaps you fail to run because you are running the binary in different machine. Try to add -r in the command. -r Relax security. Make a redistributable binary
Example: shc -r -f script.sh -o script
Hi, I faced the same issue with v4.0.3. Does adding -r option resolve the issue? Any feedback please? Thanks-
I had the same problem on Arch linux.
Adding "-r" switch worked for me.
No idea why this works. The manual text talks about "relaxing security".
The "-r" switch seems to be an undocumented mandatory switch to get expected behaviour.
See my similar report here: https://github.com/neurobin/shc/issues/151#issuecomment-1670988795