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

Executable stops working #130

Open
rkarato opened this issue Mar 12, 2021 · 4 comments
Open

Executable stops working #130

rkarato opened this issue Mar 12, 2021 · 4 comments

Comments

@rkarato
Copy link

rkarato commented Mar 12, 2021

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.

@nghiaiosdev
Copy link

I have the same issue you faced if you find ways to fix it. Can you post the solution here? Thanks in advance.

@mortylin2019
Copy link

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

@mks75
Copy link

mks75 commented Feb 17, 2023

Hi,
I faced the same issue with v4.0.3. Does adding -r option resolve the issue? Any feedback please?
Thanks-

@james-h-dt
Copy link

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: #151 (comment)

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

No branches or pull requests

5 participants