FFIG / ffig

Generate code to call C++ libraries from other languages
MIT License
29 stars 9 forks source link

Fixes #378 #379

Closed petr-tik closed 6 years ago

petr-tik commented 6 years ago

As found on SO and docker documentation

https://stackoverflow.com/questions/49735926/address-sanitizer-with-gcc-fails-on-ubuntu-17-10-docker-container

https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities

jbcoe commented 6 years ago

Easiest fix is probably to roll back to previous LTS release of Ubuntu.

ajbennieston commented 6 years ago

Don't we need the --cap-add before the image name? I think Docker interprets everything after the image name as the command / arguments to run inside the container.

I've run into this problem recently with the -v tag to mount volumes inside a container; it only works if it's specified before the image name.

docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]
jbcoe commented 6 years ago

Sadly the Appveyor run takes so long that there's no point having it.

Sorry @petr-tik but I don't see any sense in merging this, no reflection on your fine investigation just that slow CI that brings us nothing is not worth fixing.

jbcoe commented 6 years ago

see https://github.com/FFIG/ffig/pull/383

petr-tik commented 6 years ago

That's fine - this is a good case for the section.

Ideas that were considered and discarded

in the PR commit message

We have now learnt about docker restricting ptrace and it's importance to running ASAN -