... | ... | @@ -16,4 +16,12 @@ The `setenv` values make sure that you get line numbers in the dump report. |
|
|
(Not needed for GCC 4.9+, we have 4.8 on COSMA).
|
|
|
|
|
|
Note to use inside `ddt/gdb` you need to set a break point `__asan_report_error`
|
|
|
otherwise the program will just exit. Also do not enable memory checking in ddt. |
|
|
\ No newline at end of file |
|
|
otherwise the program will just exit. Also do not enable memory checking in ddt.
|
|
|
|
|
|
To get a core dump on exit, you need to set:
|
|
|
|
|
|
```
|
|
|
setenv ASAN_OPTIONS abort_on_error=1:disable_coredump=0::unmap_shadow_on_exit=1
|
|
|
```
|
|
|
|
|
|
(64bit version apparently). That's handy when attaching a debugger is problematic. |
|
|
\ No newline at end of file |