Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 402 by [email protected]: -fsanitize=address should probably imply -Bsymbolic
https://code.google.com/p/address-sanitizer/issues/detail?id=402

We recently switched Firefox to use Gtk+3 instead of Gtk+2. The result on ASan was that it started complaining about buffer overflow in unrelated code (CTypes). The reason for that, it turns out, is that the CTypes code in Firefox uses an embedded libffi. It so happens that the symbols for that libffi are exported from libxul.so (the library that contains most Firefox code), and that Gtk+3 pulls the system libffi through libwayland-client. So at runtime, the ffi symbols that the CTypes code uses end up pointing to the system ffi version of the symbols. And ASan doesn't behave properly in that case. It's assuming that those symbols are never interposed. Considering that assumption, -fsanitize=address should imply -Bsymbolic, which would ensure that assumption remains true.

You can see for yourself what happens without -Bsymbolic with this build: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/[email protected]/try-linux64-asan/firefox-42.0a1.en-US.linux-x86_64-asan.tar.bz2 (Note those builds disappear rather quickly, I think they expire after 2 weeks)

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to