JDK-8289470 : java/nio/channels/Channels/ReadXBytes.java failed with "exit code: 137"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 19,21
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: os_x_10.15
  • CPU: x86_64
  • Submitted: 2022-06-29
  • Updated: 2023-01-10
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.
Other
tbdUnresolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
The following test failed in the JDK19 CI:

java/nio/channels/Channels/ReadXBytes.java

Here's a snippet from the log file:

#section:testng
----------messages:(5/296)----------
command: testng -Xmx12G ReadXBytes
reason: User specified action: run testng/othervm/timeout=900 -Xmx12G ReadXBytes 
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.util=ALL-UNNAMED
elapsed time (seconds): 227.477
----------configuration:(4/111)----------
Boot Layer
  add modules: java.base                   
  add exports: java.base/jdk.internal.util ALL-UNNAMED

----------System.out:(18/857)----------
Seed from RandomFactory = -5795504637848390576L
test ReadXBytes.readAllBytes(1): success
test ReadXBytes.readAllBytes(116): success
test ReadXBytes.readAllBytes(16607): success
test ReadXBytes.readAllBytes(298423): success
test ReadXBytes.readAllBytes(937817489): success
test ReadXBytes.readAllBytesAtEOF(): success
test ReadXBytes.readAllBytesFromBeyondMaxLengthFile(): success
test ReadXBytes.readAllBytesFromEmptyFile(): success
test ReadXBytes.readAllBytesFromMaxLengthFile(): success
test ReadXBytes.readNBytes(1): success
test ReadXBytes.readNBytes(52): success
test ReadXBytes.readNBytes(27092): success
test ReadXBytes.readNBytes(964218): success
test ReadXBytes.readNBytes(44297397): success
test ReadXBytes.readNBytesAtEOF(): success
test ReadXBytes.readNBytesFromBeyondMaxLengthFile(): success
test ReadXBytes.readNBytesFromEmptyFile(): success
----------System.err:(0/0)----------
----------rerun:(41/9608)*----------

<snip>

result: Failed. Unexpected exit from test [exit code: 137]

The test run's artifacts have no hs_err_pid or core file.

The failing test task is a "tier7-common-usage-tracker-open_test_jdk_jdk_nio"
so this might be a strange Usage Tracker failure.
Comments
Exit code 137 may be an OOME killer, may need to find out what else was running on that system at the time.
29-06-2022