JDK-8007540 : Failed to execute DCMD due to "IOException: Bad file number"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 7,7u40
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-02-05
  • Updated: 2013-02-05
  • Resolved: 2013-02-05
Related Reports
Duplicate :  
Description
sun/tools/jcmd/jcmd-big-script.sh fails with the following exception, indicating either a stale file descriptor or wrong file mode for read or write operations in native code.

java.io.IOException: Bad file number
	at sun.tools.attach.SolarisVirtualMachine.enqueue(Native Method)
	at sun.tools.attach.SolarisVirtualMachine.execute(SolarisVirtualMachine.java:131)
	at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:217)
	at sun.tools.attach.HotSpotVirtualMachine.executeJCmd(HotSpotVirtualMachine.java:199)
	at sun.tools.jcmd.JCmd.executeCommandForPid(JCmd.java:150)
	at sun.tools.jcmd.JCmd.main(JCmd.java:129)

Unfortunately, no more information than this is available in the test log.

Failure: http://vmsqe-app.russia.sun.com/surl/RG
Failure history: http://vmsqe-app.russia.sun.com/surl/RH

So far, we've only seen this on Solaris, but that might be just because different error messages on other platforms.