You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also once tried GCC ASAN with ffi with similar results like you. There seems to be some incompatibility between libffi and ASAN. However I successfully used valgrind several times to debug memory issues with ffi.
I'm troubleshooting a flaky test where I suspect a memory corruption issue.
I'm trying to in use Address Sanitizer (ASAN) to identify the problem. I able to successfully install the ruby interpreter with ASAN enabled using:
ruby-install ruby 2.7.8 --rubies-dir ~/.rvm/rubies -- CFLAGS="-g -O0 -fsanitize=address"
However, when I try to install the FFI gem on that ruby, ASAN blows up. This doesn't happen when I install other gems:
gem install ffi -- --with-cflags=\"-g -O0 -fsanitize=address\"
results in:The text was updated successfully, but these errors were encountered: