For my automated tests on a C project I'm working on, I'm trying to run the sanitizer (-fsanitize=address) with debug mode enabled. However this fails since today with this message:
==513==LeakSanitizer has encountered a fatal error.
==513==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
On my local machine with Docker version 19.03.4, this error doesn't occur.
What docker version is Bitbucket Pipelines running? Was the version changed recently? I was running the pipeline perfectly fine for months and this happened today.
BitBucket Pipelines has been using docker version 18.09.1 since Jan 2019.
You can verify it by using this step:
- docker version
Docker version upgrade is currently on our planned roadmap. You can vote on this page https://jira.atlassian.com/browse/BCLOUD-19284 so we may prioritise the work.
@Stephen ProcterSorry for the confusion. I meant that adding that argument (cap-add)
for local testing was indeed the fix, but for our build process on Bitbucket pipelines we implemented a workaround: we disabled the debug mode when the sanitizer was enabled before running the tests. Then we re-enabled it later before running Valgrind.
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events