-
Notifications
You must be signed in to change notification settings - Fork 1k
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
LeakSanitizer has encountered a fatal error #764
Comments
BTW, it seems to work if I use |
Well, before performing actual leak check, LSan spawns a 'tracer' thread that tries to attach to the program under test via |
That makes sense. Are you running docker containers in "privileged mode" on CF? |
Looks like it? Building conftest.c locally on a ossfuzz/base-builder machine yields the same error. So I guess we simply have to look into doing the same thing on our CI then. |
We don't run it privileged (lots of capabilities). For LSan it should be enough only to enable ptrace: |
Ok, this is what I'm going to do. Thanks! I'll close this as it's not LSan's fault. |
Workaround for this fun new issue: ==27404==LeakSanitizer has encountered a fatal error. ==27404==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1 ==27404==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc) Failed: E /build|logs :: Runtime errors detected. travis-ci/travis-ci#9033 google/sanitizers#764
We want to run the `*_severe` debug and test targets; thus, we need to enable ptrace capability for (L/A)SAN which is currently not possible with container-based builds on travis-ci TODO: revert to `sudo: false` (i.e., container-based builds) once the following are fixed/made possible - google/sanitizers#764 - travis-ci/travis-ci#9033
Required for LeakSanitizer [1]. [1] google/sanitizers#764 (comment)
ASAN leak sanitizer needs ptrace capabilities to run. It seems the removal sudo true brings up this issue for us. google/sanitizers#764 travis-ci/travis-ci#9033 It fixes the recent breaks in our ASAN enabled job durign our cron builds.
ASAN leak sanitizer needs ptrace capabilities to run. It seems the removal sudo true brings up this issue for us. google/sanitizers#764 travis-ci/travis-ci#9033 It fixes the recent breaks in our ASAN enabled job durign our cron builds. Reviewed-by: Marcel Hollerbach <[email protected]> Differential Revision: https://phab.enlightenment.org/D11041
Linux: docker requires additional capabilities: google/sanitizers#764 macOS: detect_leaks=1 is unsupported as of Jul 2020
* Fix memory leaks for trikV62QtsGeneratorTest * Fix leaking BrickFacktory * TravisCI: run ASan/LSan * lupdate translations * Fix memleak in b2d wrapper * Fix leaking QActions and few widgets * Turn off LSan annoying verbosity * Additional small fixes * lupdate translations * TravisCI: use default LSAN_OPTIONS Linux: docker requires additional capabilities: google/sanitizers#764 macOS: detect_leaks=1 is unsupported as of Jul 2020 * TravisCI: set QT_QPA_PLATFORM * Update recommended LSAN suppressions * gnore singletones * Fix small leaks
* Fix memory leaks for trikV62QtsGeneratorTest * Fix leaking BrickFacktory * Fix memleak in b2d wrapper * Fix leaking QActions and few widgets * TravisCI: use default LSAN_OPTIONS Linux: docker requires additional capabilities: google/sanitizers#764 macOS: detect_leaks=1 is unsupported as of Jul 2020 * Rename confusing imageRect() * Remove strange oveloaded function, we do not need selection when clicking outside of the box * Repo: loadFromDisk always return correct empty repo and no memory leaks occure * Fix memleak when closing editor scene When closing soon after opening, memory leaks and read-freed happen * Avoid pointers to arrays
* Fix memory leaks for trikV62QtsGeneratorTest * Fix leaking BrickFacktory * TravisCI: run ASan/LSan * lupdate translations * Fix memleak in b2d wrapper * Fix leaking QActions and few widgets * Turn off LSan annoying verbosity * Additional small fixes * lupdate translations * TravisCI: use default LSAN_OPTIONS Linux: docker requires additional capabilities: google/sanitizers#764 macOS: detect_leaks=1 is unsupported as of Jul 2020 * Rename confusing imageRect() * Remove strange oveloaded function, we do not need selection when clicking outside of the box * Repo: loadFromDisk always return correct empty repo and no memory leaks occure * Fix memleak when closing editor scene When closing soon after opening, memory leaks and read-freed happen * Avoid pointers to arrays * Fix build * Use new Singleton implementation With weak reference instead of strong one * Fix few memory leaks * Fix pointer usage * Tune LSan suppressions to be useful without fast_unwind_on_malloc=0 * lupdate translations * 2D-model memleaks Now it runs free of memleaks * Enable LSAN in tests * Codestyle fixes * Fix memleak in property editor * Fix memleak in generator * Add aggressive sanitizing in debug mode * Fix access to incorrect tab object
* Fix memory leaks for trikV62QtsGeneratorTest * Fix leaking BrickFacktory * TravisCI: run ASan/LSan * lupdate translations * Fix memleak in b2d wrapper * Fix leaking QActions and few widgets * Turn off LSan annoying verbosity * Additional small fixes * lupdate translations * TravisCI: use default LSAN_OPTIONS Linux: docker requires additional capabilities: google/sanitizers#764 macOS: detect_leaks=1 is unsupported as of Jul 2020 * TravisCI: set QT_QPA_PLATFORM * Update recommended LSAN suppressions * gnore singletones * Fix small leaks
* Fix memory leaks for trikV62QtsGeneratorTest * Fix leaking BrickFacktory * Fix memleak in b2d wrapper * Fix leaking QActions and few widgets * TravisCI: use default LSAN_OPTIONS Linux: docker requires additional capabilities: google/sanitizers#764 macOS: detect_leaks=1 is unsupported as of Jul 2020 * Rename confusing imageRect() * Remove strange oveloaded function, we do not need selection when clicking outside of the box * Repo: loadFromDisk always return correct empty repo and no memory leaks occure * Fix memleak when closing editor scene When closing soon after opening, memory leaks and read-freed happen * Avoid pointers to arrays
* Fix memory leaks for trikV62QtsGeneratorTest * Fix leaking BrickFacktory * TravisCI: run ASan/LSan * lupdate translations * Fix memleak in b2d wrapper * Fix leaking QActions and few widgets * Turn off LSan annoying verbosity * Additional small fixes * lupdate translations * TravisCI: use default LSAN_OPTIONS Linux: docker requires additional capabilities: google/sanitizers#764 macOS: detect_leaks=1 is unsupported as of Jul 2020 * Rename confusing imageRect() * Remove strange oveloaded function, we do not need selection when clicking outside of the box * Repo: loadFromDisk always return correct empty repo and no memory leaks occure * Fix memleak when closing editor scene When closing soon after opening, memory leaks and read-freed happen * Avoid pointers to arrays * Fix build * Use new Singleton implementation With weak reference instead of strong one * Fix few memory leaks * Fix pointer usage * Tune LSan suppressions to be useful without fast_unwind_on_malloc=0 * lupdate translations * 2D-model memleaks Now it runs free of memleaks * Enable LSAN in tests * Codestyle fixes * Fix memleak in property editor * Fix memleak in generator * Add aggressive sanitizing in debug mode * Fix access to incorrect tab object
When trying to build NSPR (the portable runtime lib used by NSS) on a docker machine we see the following:
./conftest was compiled with:
This is basically a pre-build config test done by NSPR to check that we can build at all. Our clang version should be recent, we're using the Chromium pre-built binaries:
conftest.c looks as follows:
Any idea what's going on here? Not sure if this is related to #723, but it might be?
The text was updated successfully, but these errors were encountered: