(fix of commit
fa7f7a72b)
* include/private/gcconfig.h [I386 && CYGWIN32 && !USE_WINALLOC]
(MPROTECT_VDB): Do not define; add comment.
* include/private/gcconfig.h [X86_64 && CYGWIN32 && !USE_WINALLOC
&& THREAD_LOCAL_ALLOC] (MPROTECT_VDB): Likewise.
# ifdef USE_WINALLOC
# define GWW_VDB
# else
-# define MPROTECT_VDB
+# /* MPROTECT_VDB does not work, it leads to a spurious exit. */
# ifdef USE_MMAP
# define NEED_FIND_LIMIT
# define USE_MMAP_ANON
# ifdef USE_WINALLOC
# define GWW_VDB
# else
-# define MPROTECT_VDB
+# if defined(THREAD_LOCAL_ALLOC)
+ /* TODO: For an unknown reason, thread-local allocations */
+ /* lead to spurious process exit after the fault handler is */
+ /* once invoked. */
+# else
+# define MPROTECT_VDB
+# endif
# ifdef USE_MMAP
# define USE_MMAP_ANON
# endif