Jump to content

GDB Error: illegal instruction 4


Go to solution Solved by Rook,

14 posts in this topic

Recommended Posts

Posted

yes, thanks a lot for support :) :thumbsup:

Please mark an answer as solved or post here how you solved it.

@@Valeschi

Posted

I have the same issue but the commands give me errors. 

The first command gives me this error: sed: can't read ios_binary: No such file or directory

The second command gives me this error: ./minimal/mapping.h(54): _assert(false); errno=2

Posted

I had the same issue, i found the solution: you get the “Illegal instruction: 4″ when trying to run within GDB. This is due to old compiled binaries. You can patch the binary with the below command. You have to install sed and ldid(Link Identity Editor).

sed -i'' 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' ios_binary

ldid -s ios_binary

;)

I have the same problem, and i tried to just copy the whole command:"sed -i'' 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' ios_binary

ldid -s ios_binary" but it didn't worked...Im a completely noob with all this stuff :)

Posted
On 2/27/2015 at 6:15 AM, mehdiphone said:

I had the same issue, i found the solution: you get the “Illegal instruction: 4″ when trying to run within GDB. This is due to old compiled binaries. You can patch the binary with the below command. You have to install sed and ldid(Link Identity Editor).

 

sed -i'' 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' ios_binary

ldid -s ios_binary

;)

fixed mine using the code above.. thanks @mehdiphone

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines