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

RDsan includes only address sanitizers #24

Open
brodieG opened this issue Jan 11, 2022 · 0 comments
Open

RDsan includes only address sanitizers #24

brodieG opened this issue Jan 11, 2022 · 0 comments

Comments

@brodieG
Copy link

brodieG commented Jan 11, 2022

I'm guessing this is happening due to a combination of documented difficulties in building R with the GCC UB sanitizer, and the problems caused by ~/.R/Makevars affecting all builds, but the net of it is RDsan does not run the undefined behavior sanitizer. I tried this horrible hack:

echo 'CC=gcc -std=gnu99 -fsanitize=undefined -fno-omit-frame-pointer' > \
  ~/.R/Makevars &&
  RDsan &&
  rm ~/.R/Makevars

And was able to get the UB sanitizer to run for RDsan built packages. My shell scripting capabilities are extremely limited, and my R build configuration ones only slightly less so, so I don't have an elegant solution to propose to address this.

Failing a fix, it might be worth updating the documentation to highlight that RDsan, unlike RDcsan, only does address sanitizing for installed packags.

Thanks for this docker container though. It's been a life saver many times.

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