We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7507a77 commit a62d376Copy full SHA for a62d376
Modules/_posixsubprocess.c
@@ -41,8 +41,11 @@
41
#endif
42
43
#if defined(__linux__) && defined(HAVE_VFORK) && defined(HAVE_SIGNAL_H) && \
44
- defined(HAVE_PTHREAD_SIGMASK) && !defined(HAVE_BROKEN_PTHREAD_SIGMASK)
45
-/* If this is ever expanded to non-Linux platforms, verify what calls are
+ defined(HAVE_PTHREAD_SIGMASK) && !defined(HAVE_BROKEN_PTHREAD_SIGMASK) && \
+ !defined(_Py_ADDRESS_SANITIZER)
46
+/* Older versions of ASAN do not support vfork(). For example, GCC 9.4.0
47
+ * will generate false positives with vfork() and ASAN.
48
+ * If this is ever expanded to non-Linux platforms, verify what calls are
49
* allowed after vfork(). Ex: setsid() may be disallowed on macOS? */
50
# include <signal.h>
51
# define VFORK_USABLE 1
0 commit comments