Skip to content
Guest Big Announcement

GDB Error: illegal instruction 4

Featured Replies

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

Solved by Rook

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

;)

  • Author

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

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.