[lldb-dev] how to disable library / address space randomization ?

Andrey Zaytsev andrey.zaytsev at jetbrains.com
Fri Jul 8 00:47:58 PDT 2011


On 08.07.2011, at 11:35, Jason E. Aten wrote:

> I'm building lldb on OSX 10.6.3 and for reproducibility of memory addresses, I'd like to disable address space randomization.
> 
> What I tried that didn't work...
> 
> root at AtenMBP-2:/$ sysctl -w kernel.randomize_va_space=0
> top level name kernel in kernel.randomize_va_space is invalid
> 
> Anyone know better? 
> 
> Thank you.
> 
> Jason
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Try to set this env var:

LLDB_LAUNCH_FLAG_DISABLE_ASLR=1





More information about the lldb-dev mailing list