JDK-6853336 : (process) disable or remove clone-exec feature (6850720)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-06-21
  • Updated: 2010-08-06
  • Resolved: 2009-06-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b62Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
jtreg and other tools are failing on linux-i586 since the changes for 6850720 were pushed. Here's an example error log:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (os_linux_x86.cpp:683), pid=4660, tid=2003827600
#  Error: pthread_getattr_np failed with errno = 3
#
# JRE version: 7.0
# Java VM: Java HotSpot(TM) Server VM (16.0-b04 mixed mode linux-x86 )
# An error report file with more information is saved as:
# /tmp/jprt/P1/T/202821.ksrini/source/test/hs_err_pid4660.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

[error occurred during error reporting , id 0xb]

make: *** [jtreg_tests] Error 127

Comments
EVALUATION For more information and history on this issue, see: http://mail.openjdk.java.net/pipermail/core-libs-dev/2009-June/001853.html http://sources.redhat.com/bugzilla/show_bug.cgi?id=10311
23-06-2009

EVALUATION % diff src/solaris/native/java/lang/UNIXProcess_md.c \ /tmp/UNIXProcess_md.c.before.patch 52,63d51 < /* < * (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 <
22-06-2009

SUGGESTED FIX Set USE_CLONE to 0 so disable use of clone-exec.
21-06-2009