mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
More info on the symbols extraction
This commit is contained in:
parent
64022a7ee7
commit
fab2946404
1 changed files with 11 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
|||
ntopng can be built with the support for the LLVM leaks sanitizer (https://clang.llvm.org/docs/LeakSanitizer.html).
|
||||
The detector also identifies invalid memory accesses. The performance impact of running the address sanitizer is about
|
||||
a 2x slowdown (https://clang.llvm.org/docs/AddressSanitizer.html).
|
||||
|
||||
It is advisable to also build nDPI with the leaks sanitizer support.
|
||||
It is advisable to also build nDPI with the leaks sanitizer support to get clean stack traces.
|
||||
|
||||
```
|
||||
cd ~/nDPI
|
||||
|
|
@ -16,5 +18,12 @@ In order to enable the leaks sanitizer, it is necessary to set the `ASAN_OPTIONS
|
|||
environment variable, for example with:
|
||||
|
||||
```
|
||||
sudo ASAN_OPTIONS=detect_leaks=1 ./ntopng /etc/ntopng/ntopng.conf
|
||||
sudo ASAN_OPTIONS=detect_leaks=1 ./ntopng /etc/ntopng/ntopng.conf 2>sanitizer.log
|
||||
```
|
||||
|
||||
Note: on some old clang implementations it's necessary to manually resolve the symbols with:
|
||||
|
||||
```
|
||||
# https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/asan/scripts/asan_symbolize.py
|
||||
asan_symbolize.py / < sanitizer.log | c++filt
|
||||
``
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue