Repository navigation
cmake: some fixes and suppressions for WITH_ASAN under vstart.sh - #50385
Conversation
|
tested only with gcc using |
|
had to add the following option: to avoid: |
|
with the boost::context commit, i was hoping to get rid of these but with boost::context compiled with asan and ucontext, i get a different one: https://gist.github.com/cbodley/d0ab0a9a75fcfeb5341e3a09f80eee5a edit: also tried with |
i see the |
this PR: #50403 should fix these errors |
idryomov
left a comment
There was a problem hiding this comment.
Not a fan of NAMES list in cmake/modules/FindSanitizers.cmake but we already touched on that in #50320 (comment). Otherwise LGTM!
i could imagine vstart.sh and vstart_environment.sh exporting the necessary LD_PRELOAD/ASAN_OPTIONS/LSAN_OPTIONS that could avoid the using personally, i'm most interested in enabling asan for a) local vstart testing, and b) jenkins 'make check'. what do you guys think? |
|
I'm trying on fedora 37. with i get a cmake error: |
There was a problem hiding this comment.
this time the correct functions that should be added when running with rhel8 (Python 3.6.8):
leak:^_PyObject_Alloc
leak:^PyType_GenericAlloc
leak:^PyBytes_FromStringAndSize
leak:^set_table_resize
this would be coming from you should be able to find the compilation error message from that in build/CMakeFiles/CMakeError.log |
I suggested running it on |
oops, i had assumed that |
|
can we also add |
no error file |
|
ASAN found another issue. fixed here: #50425 |
only fixed radosgw-admin issue. not the RGW issue :-( |
Signed-off-by: Casey Bodley <[email protected]>
any executable that links against the heap_profiler leaks 8 bytes for a singleton: > ----------------------------------------------------- > Suppressions used: > count bytes template > 1 8 ^MallocExtension::Register > ----------------------------------------------------- the python script bin/ceph has a lot of leaks: > ----------------------------------------------------- > Suppressions used: > count bytes template > 205 294983 ^PyObject_Malloc > 10 6216 ^_PyObject_Realloc > 1 568 ^PyMem_Calloc > 2 2 ^PyMem_Malloc > 63 58935 ^PyUnicode_New > 10 7294 ^_PyBytes_FromSize > 166 149904 ^_PyObject_GC_Alloc > 5 3360 ^_PyObject_GC_Resize > ----------------------------------------------------- Signed-off-by: Casey Bodley <[email protected]>
also adds 'context-impl=ucontext' to the b2 command line and the BOOST_USE_UCONTEXT define as described in: https://www.boost.org/doc/libs/1_79_0/libs/context/doc/html/context/stack/sanitizers.html Signed-off-by: Casey Bodley <[email protected]>
boost::contextunderstands aBOOST_USE_ASANdefine to add asan annotations to its context switches. BuildBoost.cmake adds this define when our cmake variableWITH_ASANis setsrc/ceph.in automatically adds libasan.so to
LD_PRELOAD, but its detection logic inFindSanitizers.cmakewasn't looking for newer versions of the library. on fedora 37, i have libasan.so.8 installedmemory leaks in
bin/ceph-monand thebin/cephprevented vstart.sh from bootstrapping the cluster, so aqa/lsan.suppfile was added to suppress them. the suppressions are enabled with the environment variableLSAN_OPTIONS="suppressions=../qa/lsan.supp"Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows