Jump to content

GDB Error: illegal instruction 4


Go to solution Solved by Rook,

14 posts in this topic

Recommended Posts

Posted (edited)

Hi guys

i have problem whit "gdb" terminal commend, when i type gdb give me this error:

Illegal instruction:4

 

my device is iPad retina iOS 8.1.2

Updated by Valeschi
  • Solution
Posted

Are you using the gdb from cydia.radare.org repo?

  • Thanks 1
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

;)

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

;)

 

thanks a lot but how can i attach to process by sed

Use the one from there.

you say i install gdb from cydia.radare.org repo

Posted

you say i install gdb from cydia.radare.org repo

Yessss

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