Skip to content
Guest Big Announcement

GDB Error: illegal instruction 4

Featured Replies

Solved by Rook

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

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 :)

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

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.