JDK-8015957 : Several tmtools tests failed on Solaris with 'java.io.IOException: Bad file number'
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 6,7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris
  • CPU: generic
  • Submitted: 2013-06-05
  • Updated: 2013-08-01
  • Resolved: 2013-08-01
Related Reports
Duplicate :  
Description
The tests failed on Solaris in Promotion test of JDK7u40 b26 (2013-05-28) 

From server.log (example):

[/export/local/aurora/sandbox/java/re/jdk/7u40/promoted/all/b26/binaries/solaris-amd64//bin/jmap, -J-d64, -histo, 1944]
# Are you Debuggee connector?
# Hi from Debuggee connector vmsqe-v20z-01:10000
Trying to connect vmsqe-v20z-01:10000
Stdout: 

Stderr: 
Exception in thread "main" 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.heapHisto(HotSpotVirtualMachine.java:185)
	at sun.tools.jmap.JMap.histo(JMap.java:219)
	at sun.tools.jmap.JMap.main(JMap.java:136)

exit code: 1
# Are you Debuggee connector?
# Hi from Debuggee connector vmsqe-v20z-01:10000
Trying to connect vmsqe-v20z-01:10000
Java version: 1.7.0_40-ea
VM version: 24.0-b45
VM release: 24
nsk.share.TestFailure: Unable to find header in the output

The test looks for certain text in stdout from the tool but since the tool failed stdout is empty.

Priority justification:
ILW = MMH => P3

Link to example failure: http://vmsqe-app.russia.sun.com/surl/Xg

Matching rules:
RULE tmtools/jmap/histo/jmap_histo_basic_generating Exception java.io.IOException: Bad file number
RULE tmtools/jstack/general/java_version_live Exception java.io.IOException: Bad file number
RULE tmtools/jstack/ownablesynchronizers-l/reentrantlock Exception java.io.IOException: Bad file number
RULE tmtools/jstack/ownablesynchronizers-l/write_reentrantreadwritelock Exception java.io.IOException: Bad file number
RULE tmtools/jstack/stacktrace_complex_scenario/complex_scenario4 Exception java.io.IOException: Bad file number
RULE tmtools/jstack/threadinfo/extended_state_timed_waiting_sleeping Exception java.io.IOException: Bad file number
RULE tmtools/jstack/threadinfo/extended_state_waiting_on_object_monitor Exception java.io.IOException: Bad file number