Problem reported by Jim Meyering in:
http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00246.html
* src/conf_post.h (vfork) [ADDRESS_SANITIZER]: Define to fork.
Unfortunately with the AddressSanitizer in Fedora 25 x86-64, the
vforked child messes up the parent’s shadow memory. This is too
bad, as we’d rather have AddressSanitizer catch memory-access bugs
related to vfork.
# define ATTRIBUTE_NO_SANITIZE_ADDRESS
#endif
+/* gcc -fsanitize=address does not work with vfork in Fedora 25 x86-64.
+ For now, assume that this problem occurs on all platforms. */
+#if ADDRESS_SANITIZER && !defined vfork
+# define vfork fork
+#endif
+
/* Some versions of GNU/Linux define noinline in their headers. */
#ifdef noinline
#undef noinline