Skip to content
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

Intermittent fatal error from LeakSanitizer in CI (virtualized?) environments #1353

Open
vadz opened this issue Dec 4, 2020 · 1 comment

Comments

@vadz
Copy link

vadz commented Dec 4, 2020

We're running our unit tests in a build using ASAN under Travis CI and sometimes (not always, but often enough to be a problem in practice) they fail with

Tracer caught signal 11: addr=0x0 pc=0x7fdc954758b0 sp=0x7fdc8dfbfce0
==37877==LeakSanitizer has encountered a fatal error.
==37877==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==37877==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)

see e.g. this job.

Rerunning the job fixes the problem, but this is still annoying so any suggestions about fixing, or working around (e.g. detecting this and just trying to rerun the test once again) the problem would be very welcome.

Please note that we can't enable the recommended LSAN options because this results in too much output for Travis to handle and the job is killed because of it. Also, there are many similar reports, but all of them involve running in a docker container or similar, while we don't do anything like this and are running the test directly in the Travis VM.

vadz added a commit to wxWidgets/wxWidgets that referenced this issue Dec 30, 2020
Switch to GitHub Actions for the ASAN CI build: running it on Travis CI
often fails (see google/sanitizers#1353),
making it more trouble than it's worth, so try running it on GitHub
instead.

If it works fine there, we can move more Travis CI builds to that
platform later.

See google/sanitizers#1353
@vadz vadz changed the title Intermittent fatal error from LeakSanitizer on Travis CI Intermittent fatal error from LeakSanitizer in CI (virtualized?) environments Feb 5, 2021
@vadz
Copy link
Author

vadz commented Feb 5, 2021

This is unfortunately not specific to Travis CI, a similar issue happens with GitHub Actions too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant