changeset 2948:7f4d7737d38f

6853336: (process) disable or remove clone-exec feature (6850720) Summary: clone-exec feature (6850720) needs more work on 32-bit Linux Reviewed-by: alanb, michaelm Contributed-by: Martin Buchholz <martinrb@google.com>
author tbell
date Sun, 21 Jun 2009 12:02:14 -0700
parents b0135c99348e
children 239a078fc830
files jdk/src/solaris/native/java/lang/UNIXProcess_md.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/solaris/native/java/lang/UNIXProcess_md.c	Sun Jun 14 14:33:30 2009 -0700
+++ b/jdk/src/solaris/native/java/lang/UNIXProcess_md.c	Sun Jun 21 12:02:14 2009 -0700
@@ -49,6 +49,18 @@
 #include <fcntl.h>
 #include <limits.h>
 
+/*
+ * (Hopefully temporarily) disable the clone-exec feature pending
+ * further investigation and bug-fixing.
+ * 32-bit (but not 64-bit) Linux fails on the program
+ *   Runtime.getRuntime().exec("/bin/true").waitFor();
+ * with:
+ * #  Internal Error (os_linux_x86.cpp:683), pid=19940, tid=2934639536
+ * #  Error: pthread_getattr_np failed with errno = 3 (ESRCH)
+ * Linux kernel/pthread gurus are invited to figure this out.
+ */
+#define USE_CLONE 0
+
 #ifndef USE_CLONE
 #ifdef __linux__
 #define USE_CLONE 1