-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
9
TESTFAIL:java/nio/Buffer/Chars.java
The test java/nio/Buffer/Chars.java fails in nightly, see logs:
#section:testng
----------messages:(3/104)----------
command: testng Chars
reason: User specified action: run testng Chars
elapsed time (seconds): 1.709
----------rerun:(21/1960)*----------
'PATH=C:\\cygwin64\\usr\\local\\bin;C:\\cygwin64\\bin;C:\\Program Files\\Oracle\\VirtualBox;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\TortoiseHg' \\
SystemDrive=C: \\
'SystemRoot=C:\\Windows' \\
'TEMP=C:\\Users\\aurora\\AppData\\Local\\Temp' \\
'TMP=C:\\Users\\aurora\\AppData\\Local\\Temp' \\
'windir=C:\\Windows' \\
'C:\\users\\aurora\\CommonData\\jdk\\bin\\java' \\
-Dtest.vm.opts='-ea -esa -Xmx512m' \\
-Dcompile.jdk='C:\\users\\aurora\\CommonData\\jdk' \\
-Dtest.src.path='C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\Buffer' \\
-Dtest.src='C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\Buffer' \\
-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m' \\
-Dtest.class.path='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_nio\\JTwork\\classes\\java\\nio\\Buffer' \\
-Dtest.timeout.factor=4.0 \\
-Dtest.classes='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_nio\\JTwork\\classes\\java\\nio\\Buffer' \\
-Dtest.class.path.prefix='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_nio\\JTwork\\classes\\java\\nio\\Buffer;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\Buffer' \\
-Dtest.jdk='C:\\users\\aurora\\CommonData\\jdk' \\
-Dtest.java.opts= \\
-Dtest.compiler.opts= \\
-classpath 'C:\\Users\\aurora\\CommonData\\jtreg\\lib\\javatest.jar;C:\\Users\\aurora\\CommonData\\jtreg\\lib\\jtreg.jar;C:\\users\\aurora\\CommonData\\jdk\\lib\\tools.jar;C:\\Users\\aurora\\CommonData\\jtreg\\lib\\testng.jar;C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_nio\\JTwork\\classes\\java\\nio\\Buffer;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\Buffer;C:\\users\\aurora\\CommonData\\jdk\\lib\\tools.jar' \\
'com.sun.javatest.regtest.TestNGAction$TestNGRunner' java/nio/Buffer/Chars.java Chars
----------System.out:(95/6719)----------
[TestNG] Running:
java/nio/Buffer/Chars.java
java.nio.HeapCharBuffer position=53, limit=118
test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@16e13a39): success
java.nio.HeapCharBuffer position=0, limit=65
......
test Chars.testChars("java.nio.DirectCharBufferRU", java.nio.DirectCharBufferRU@6b464424): success
java.nio.StringCharBuffer position=0, limit=148
test Chars.testChars("java.nio.StringCharBuffer", java.nio.StringCharBuffer@15badf78): success
===============================================
java/nio/Buffer/Chars.java
Total tests run: 43, Failures: 0, Skips: 0
===============================================
----------System.err:(1029/73862)----------
java.lang.StackOverflowError
at sun.nio.cs.SingleByte$Encoder.encodeArrayLoop(SingleByte.java:177)
at sun.nio.cs.SingleByte$Encoder.encodeLoop(SingleByte.java:219)
at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:579)
at sun.nio.cs.StreamEncoder.flushLeftoverChar(StreamEncoder.java:242)
......
at sun.nio.cs.StreamEncoder.flushLeftoverChar(StreamEncoder.java:247)
at sun.nio.cs.StreamEncoder.flushLeftoverChar(StreamEncoder.java:247)
JavaTest Message: Test threw exception: java.lang.StackOverflowError
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.StackOverflowError
test result: Error. failed to clean up files after test
The test java/nio/Buffer/Chars.java fails in nightly, see logs:
#section:testng
----------messages:(3/104)----------
command: testng Chars
reason: User specified action: run testng Chars
elapsed time (seconds): 1.709
----------rerun:(21/1960)*----------
'PATH=C:\\cygwin64\\usr\\local\\bin;C:\\cygwin64\\bin;C:\\Program Files\\Oracle\\VirtualBox;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\TortoiseHg' \\
SystemDrive=C: \\
'SystemRoot=C:\\Windows' \\
'TEMP=C:\\Users\\aurora\\AppData\\Local\\Temp' \\
'TMP=C:\\Users\\aurora\\AppData\\Local\\Temp' \\
'windir=C:\\Windows' \\
'C:\\users\\aurora\\CommonData\\jdk\\bin\\java' \\
-Dtest.vm.opts='-ea -esa -Xmx512m' \\
-Dcompile.jdk='C:\\users\\aurora\\CommonData\\jdk' \\
-Dtest.src.path='C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\Buffer' \\
-Dtest.src='C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\Buffer' \\
-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m' \\
-Dtest.class.path='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_nio\\JTwork\\classes\\java\\nio\\Buffer' \\
-Dtest.timeout.factor=4.0 \\
-Dtest.classes='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_nio\\JTwork\\classes\\java\\nio\\Buffer' \\
-Dtest.class.path.prefix='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_nio\\JTwork\\classes\\java\\nio\\Buffer;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\Buffer' \\
-Dtest.jdk='C:\\users\\aurora\\CommonData\\jdk' \\
-Dtest.java.opts= \\
-Dtest.compiler.opts= \\
-classpath 'C:\\Users\\aurora\\CommonData\\jtreg\\lib\\javatest.jar;C:\\Users\\aurora\\CommonData\\jtreg\\lib\\jtreg.jar;C:\\users\\aurora\\CommonData\\jdk\\lib\\tools.jar;C:\\Users\\aurora\\CommonData\\jtreg\\lib\\testng.jar;C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_nio\\JTwork\\classes\\java\\nio\\Buffer;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\Buffer;C:\\users\\aurora\\CommonData\\jdk\\lib\\tools.jar' \\
'com.sun.javatest.regtest.TestNGAction$TestNGRunner' java/nio/Buffer/Chars.java Chars
----------System.out:(95/6719)----------
[TestNG] Running:
java/nio/Buffer/Chars.java
java.nio.HeapCharBuffer position=53, limit=118
test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@16e13a39): success
java.nio.HeapCharBuffer position=0, limit=65
......
test Chars.testChars("java.nio.DirectCharBufferRU", java.nio.DirectCharBufferRU@6b464424): success
java.nio.StringCharBuffer position=0, limit=148
test Chars.testChars("java.nio.StringCharBuffer", java.nio.StringCharBuffer@15badf78): success
===============================================
java/nio/Buffer/Chars.java
Total tests run: 43, Failures: 0, Skips: 0
===============================================
----------System.err:(1029/73862)----------
java.lang.StackOverflowError
at sun.nio.cs.SingleByte$Encoder.encodeArrayLoop(SingleByte.java:177)
at sun.nio.cs.SingleByte$Encoder.encodeLoop(SingleByte.java:219)
at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:579)
at sun.nio.cs.StreamEncoder.flushLeftoverChar(StreamEncoder.java:242)
......
at sun.nio.cs.StreamEncoder.flushLeftoverChar(StreamEncoder.java:247)
at sun.nio.cs.StreamEncoder.flushLeftoverChar(StreamEncoder.java:247)
JavaTest Message: Test threw exception: java.lang.StackOverflowError
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.StackOverflowError
test result: Error. failed to clean up files after test
- duplicates
-
JDK-8030179 java/nio/Buffer/Chars.java, testcases seems all pass but jtreg/testng failed with java.lang.AssertionError
- Closed
- relates to
-
JDK-8030690 TEST_BUG java/nio/Buffer/Chars.java fails intermittently
- Resolved