Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Unable to run with diagnostic 'Address Sanitizer' enabled #97

Open
tommeier opened this issue Dec 3, 2015 · 4 comments
Open

Unable to run with diagnostic 'Address Sanitizer' enabled #97

tommeier opened this issue Dec 3, 2015 · 4 comments

Comments

@tommeier
Copy link

tommeier commented Dec 3, 2015

I'm unable to run the diagnostic 'Enable Address Sanitizer' when Facebook tweaks are loaded.

Is anyone else experiencing this? Able to run with it enabled?

screen shot 2015-12-03 at 11 11 32 am

@grp
Copy link
Contributor

grp commented Dec 3, 2015

This is a known issue with ASAN and Tweaks, since ASAN doesn't recognize the data area of the binary as valid memory. You might be able to avoid it by disabling Tweaks for your ASAN build.

I'll leave this open tracking either reporting this upstream to ASAN or working around it in Tweaks.

@tommeier
Copy link
Author

tommeier commented Dec 3, 2015

Perfect thanks for the info @grp !

@priteshshah1983
Copy link

Any suggestions/tips on the easiest way to disable Tweaks would be really appreciated

@streeter
Copy link
Contributor

streeter commented Nov 7, 2019

One could disable tweaks if the sanitizer is enabled with:

#if defined(__has_feature)
#  if __has_feature(address_sanitizer)
// code that builds only under AddressSanitizer
#  endif
#endif

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants