-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leak Sanitizer Segfaulting in CI #22215
Comments
Some additional information:
|
I was able to reproduce the segfault on 24.04 using |
Locally, using coredumpctl to capture the core, I see this in the backtrace of the segfault:
|
Taking I hint from https://iree.dev/developers/debugging/sanitizers/#tsan-threadsanitizer, I think it's because our kernel's ASLR jwnimmer@call-cps:~$ sudo sysctl vm.mmap_rnd_bits
vm.mmap_rnd_bits = 32 I have a fix that seems to pass repeated testing, I'll open a PR once I'm satisfied. |
What happened?
We found confusing behavior when looking into one of the tests run in CI that ran the leak sanitation. We found that in the planning directory, the visibility graph test and the iris zo test (#22168 ) would fail sporadically in CI when running 'linux-jammy-clang-bazel-experimental-leak-sanitizer'. To reproduce the error locally we ran something like
bazel test --runs_per_test=10 --config=clang --compilation_mode=dbg --config=lsan //planning:visibility_graph_test
on ubuntu 22.04 and found typically 2-3/10 runs would produce the segfault. From what we could tell, the segfault gets tripped before entering the test body and only when more than a single thread was requested.
The commit sha i have added below points to a commit on my fork of drake (from which I have opened the pr #22168 ).
Version
34437bc
What operating system are you using?
Ubuntu 22.04
What installation option are you using?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: