Repository navigation
Conversation
Signed-off-by: Yuval Lifshitz <[email protected]>
| # ASAN_LIBRARY will be read by ceph.in to preload the asan library | ||
| find_library(ASAN_LIBRARY | ||
| NAMES | ||
| libasan.so.8 |
There was a problem hiding this comment.
I wonder if there is a better way to do this though. This started with 3, 4 and 5, then 6 was added for GCC 11 and now 8 is being added for GCC 12...
It looks like the original motivation was to prefer the latest "known" version in cases where libasan.so is older (such as when a new compiler is installed on an old LTS distro)?
There was a problem hiding this comment.
there is this repo: https://github.com/arsenm/sanitizers-cmake
but could not see how they find the correct libasan.
There was a problem hiding this comment.
I think it happens here: https://github.com/arsenm/sanitizers-cmake/blob/master/cmake/asan-wrapper. Instead of attempting to "find" libasan.so explicitly, they just parse ldd output.
In our case, ASAN_LIBRARY variable is used to preload libasan into ceph tool (a Python program) so it's not directly applicable. But anywhere where ceph tool is present, rados tool (a C++ program) should be present as well, so perhaps we could do what asan-wrapper does on that?
There was a problem hiding this comment.
the wrapper is for runtime. i thought that if we don't specify ASAN_LIBRARY we fail at link time?
There was a problem hiding this comment.
the wrapper is for runtime. i thought that if we don't specify ASAN_LIBRARY we fail at link time?
i don't think we explicitly link to asan; when i set WITH_ASAN=ON WITH_UBSAN=ON, it adds these flags to both the compiler and linker lines: -fsanitize=address;-fsanitize=undefined;-fno-sanitize=vptr;-fno-omit-frame-pointer
the toolchain seems to be adding that library dependency itself, so ldd does seem like the best way to identify which
In our case, ASAN_LIBRARY variable is used to preload libasan into ceph tool (a Python program) so it's not directly applicable. But anywhere where ceph tool is present, rados tool (a C++ program) should be present as well, so perhaps we could do what asan-wrapper does on that?
maybe we could put that logic in vstart_environment.sh instead? then the python commands wouldn't have to mess with it
|
@petrutlucian94 Is this Windows check failure known? It shows up on all recent main PRs: |
Thanks for bringing it up. For some reason |
Because |
Indeed, there was a missing Python module. I've submitted a patch: ceph/ceph-build#2120 |
|
closing in favor of: #50385 |
|
@yuvalif sorry i hadn't seen this one |
Checklist
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