THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
export ASAN_OPTIONS="handle_segv=0:detect_leaks=0:allocator_may_return_null=1"
|
Handling issues
Address sanitizer will crash the app and output a short description of the error (e.g. Read invalid bytes) and then print the stack. They have a script to symbolize the stack output. You can run this like:
...
Code Block |
---|
export ASAN_OPTIONS="handle_segv=0::detect_leaks=0:allocator_may_return_null=1:abort_on_error=1" |
Another option is to break in the debugger at
...
Code Block |
---|
export ASAN_OPTIONS="handle_segv=0:detect_leaks=0:allocator_may_return_null=1:abort_on_error=1:unmap_shadow_on_exit=1:disable_core=0"
|
...