Skip to content
Guest Big Announcement

When I Remove ASLR and attach in lldb and a watchpoint hits, lldb stops responding

Featured Replies

Hello. So this is a sort of a follow up on my previous help n support. I know I said earlier my lldb stops responding all the time. I diagnosed the problem and I have more details now. Let me put three instances or the binary, and say which works and which doesn't.

 

Thinned binary: In lldb it works fine and gives me an offset, but its the wrong offset since aslr is not removed

 

thinned binary with aslr removed: usually it works fine and gives me the right offset but now lldb stops responding.

 

non thinned: works fine but idk if its the right arm64 offset since no aslr removed

 

 

it seems lldb is only doing this with the aslr removed binary which is the most important.... so my question is, why is aslr removed binary causing lldb to not respond? Should i redownload the game and remove aslr again and everything idk.

Solved by Juku

Use "image list" and see the top listing (its pretty long). Compare that value with the value in IDA and subtract the difference (where the aslr value is greater obviously) from the offsets.

 

you need to do this for each session as ASLR would change the address every time

  • Author
  • Solution

Use "image list" and see the top listing (its pretty long). Compare that value with the value in IDA and subtract the difference (where the aslr value is greater obviously) from the offsets.

you need to do this for each session as ASLR would change the address every time

yeah. This only works for x64 as far as I know. Gives wrong offset in x32 apparently.

No real solution atm... Just hacked the x64 binary instead...

yeah. This only works for x64 as far as I know. Gives wrong offset in x32 apparently.No real solution atm... Just hacked the x64 binary instead...

I hacked 32 bit binary with 64 bit lldb.

 

It works correctly but shows the functions in the wrong mode.

go to the correct offset (after doing what i said), use hex to arm converter. One of them will be the one in IDA, other will be the one which shows you (unless they match which i dont think happens).

 

This is cause of arm and thumb mode

Updated by Archangel04

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.