$ CONF=linux-aarch64-server-fastdebug make images run-test TEST=tools/javac/lambda/T8031967.java JTREG="VM_OPTIONS=-XX:TieredStopAtLevel=3"
ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.IllegalStateException: java.lang.StackOverflowError
REASON: User specified action: run main/othervm -Xss1m T8031967
TIME: 2.812 seconds
messages:
command: main -Xss1m T8031967
reason: User specified action: run main/othervm -Xss1m T8031967
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.compiler
elapsed time (seconds): 2.812
configuration:
Boot Layer
add modules: jdk.compiler
STDOUT:
STDERR:
/Test.java:3: error: cannot find symbol
GroupLayout l = new GroupLayout();
^
symbol: class GroupLayout
location: class Test
/Test.java:3: error: cannot find symbol
GroupLayout l = new GroupLayout();
^
symbol: class GroupLayout
location: class Test
java.lang.IllegalStateException: java.lang.StackOverflowError
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
at T8031967.runTestCase(T8031967.java:108)
at T8031967.run(T8031967.java:55)
at T8031967.main(T8031967.java:49)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: java.lang.StackOverflowError
at jdk.compiler/com.sun.tools.javac.code.Scope$FilterImportScope$SymbolImporter.importFrom(Scope.java:1000)
at jdk.compiler/com.sun.tools.javac.code.Scope$FilterImportScope.getSymbolsByName(Scope.java:968)
at jdk.compiler/com.sun.tools.javac.code.Scope$CompoundScope.lambda$getSymbolsByName$2(Scope.java:1093)
at jdk.compiler/com.sun.tools.javac.util.Iterators$CompoundIterator.update(Iterators.java:78)
at jdk.compiler/com.sun.tools.javac.util.Iterators$CompoundIterator.hasNext(Iterators.java:60)
at jdk.compiler/com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:2321)
at jdk.compiler/com.sun.tools.javac.comp.Resolve.findType(Resolve.java:2408)
at jdk.compiler/com.sun.tools.javac.comp.Resolve.findIdentInternal(Resolve.java:2439)
at jdk.compiler/com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:2425)
at jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:2718)
at jdk.compiler/com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:4293)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2664)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:687)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribType(Attr.java:753)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribType(Attr.java:746)
at jdk.compiler/com.sun.tools.javac.comp.Attr.visitNewClass(Attr.java:2749)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1854)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:687)
at jdk.compiler/com.sun.tools.javac.comp.ArgumentAttr.visitNewClass(ArgumentAttr.java:326)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1854)
at jdk.compiler/com.sun.tools.javac.comp.ArgumentAttr.attribArg(ArgumentAttr.java:197)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:685)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:788)
at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2584)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1799)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:687)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:500)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:480)
...
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.complete(DeferredAttr.java:315)
at jdk.compiler/com.sun.tools.javac.comp.ArgumentAttr$ArgumentType.complete(ArgumentAttr.java:355)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:359)
JavaTest Message: Test threw exception: java.lang.IllegalStateException: java.lang.StackOverflowError
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.IllegalStateException: java.lang.StackOverflowError
rerun:
cd /home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/scratch/0 && \
HOME=/home/sunguoyun \
LANG=zh_CN.utf8 \
LC_ALL=C \
PATH=/bin:/usr/bin:/usr/sbin \
TEST_IMAGE_DIR=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/images/test \
XMODIFIERS=@im=fcitx \
CLASSPATH=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/classes/0/tools/javac/lambda/T8031967.d:/home/sunguoyun/jdk-ls/test/langtools/tools/javac/lambda:/home/sunguoyun/jtreg/lib/javatest.jar:/home/sunguoyun/jtreg/lib/jtreg.jar \
/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/images/jdk/bin/java \
-Dtest.vm.opts='-Xmx768m -XX:MaxRAMPercentage=0.78125 -Djava.io.tmpdir=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/tmp -XX:TieredStopAtLevel=3 -ea -esa' \
-Dtest.tool.vm.opts='-J-Xmx768m -J-XX:MaxRAMPercentage=0.78125 -J-Djava.io.tmpdir=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/tmp -J-XX:TieredStopAtLevel=3 -J-ea -J-esa' \
-Dtest.compiler.opts= \
-Dtest.java.opts= \
-Dtest.jdk=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/images/jdk \
-Dcompile.jdk=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/images/jdk \
-Dtest.timeout.factor=4.0 \
-Dtest.root=/home/sunguoyun/jdk-ls/test/langtools \
-Dtest.name=tools/javac/lambda/T8031967.java \
-Dtest.file=/home/sunguoyun/jdk-ls/test/langtools/tools/javac/lambda/T8031967.java \
-Dtest.src=/home/sunguoyun/jdk-ls/test/langtools/tools/javac/lambda \
-Dtest.src.path=/home/sunguoyun/jdk-ls/test/langtools/tools/javac/lambda \
-Dtest.classes=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/classes/0/tools/javac/lambda/T8031967.d \
-Dtest.class.path=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/classes/0/tools/javac/lambda/T8031967.d \
-Dtest.class.path.prefix=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/classes/0/tools/javac/lambda/T8031967.d:/home/sunguoyun/jdk-ls/test/langtools/tools/javac/lambda \
-Dtest.modules=jdk.compiler \
--add-modules jdk.compiler \
-Xmx768m \
-XX:MaxRAMPercentage=0.78125 \
-Djava.io.tmpdir=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/tmp \
-XX:TieredStopAtLevel=3 \
-ea \
-esa \
-Xss1m \
com.sun.javatest.regtest.agent.MainWrapper /home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/tools/javac/lambda/T8031967.d/main.0.jta
TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.IllegalStateException: java.lang.StackOverflowError
--------------------------------------------------
Test results: failed: 1
Report written to /home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-results/jtreg_test_langtools_tools_javac_lambda_T8031967_java/html/report.html
Results written to /home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java
Error: Some tests failed or other problems occurred.
Finished running test 'jtreg:test/langtools/tools/javac/lambda/T8031967.java'
Test report is stored in build/linux-aarch64-server-fastdebug/test-results/jtreg_test_langtools_tools_javac_lambda_T8031967_java
==============================
Test summary
==============================
TEST TOTAL PASS FAIL ERROR
jtreg:test/langtools/tools/javac/lambda/T8031967.java
>> 1 0 1 0 <<
==============================
TEST FAILURE
ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.IllegalStateException: java.lang.StackOverflowError
REASON: User specified action: run main/othervm -Xss1m T8031967
TIME: 2.812 seconds
messages:
command: main -Xss1m T8031967
reason: User specified action: run main/othervm -Xss1m T8031967
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.compiler
elapsed time (seconds): 2.812
configuration:
Boot Layer
add modules: jdk.compiler
STDOUT:
STDERR:
/Test.java:3: error: cannot find symbol
GroupLayout l = new GroupLayout();
^
symbol: class GroupLayout
location: class Test
/Test.java:3: error: cannot find symbol
GroupLayout l = new GroupLayout();
^
symbol: class GroupLayout
location: class Test
java.lang.IllegalStateException: java.lang.StackOverflowError
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
at T8031967.runTestCase(T8031967.java:108)
at T8031967.run(T8031967.java:55)
at T8031967.main(T8031967.java:49)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: java.lang.StackOverflowError
at jdk.compiler/com.sun.tools.javac.code.Scope$FilterImportScope$SymbolImporter.importFrom(Scope.java:1000)
at jdk.compiler/com.sun.tools.javac.code.Scope$FilterImportScope.getSymbolsByName(Scope.java:968)
at jdk.compiler/com.sun.tools.javac.code.Scope$CompoundScope.lambda$getSymbolsByName$2(Scope.java:1093)
at jdk.compiler/com.sun.tools.javac.util.Iterators$CompoundIterator.update(Iterators.java:78)
at jdk.compiler/com.sun.tools.javac.util.Iterators$CompoundIterator.hasNext(Iterators.java:60)
at jdk.compiler/com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:2321)
at jdk.compiler/com.sun.tools.javac.comp.Resolve.findType(Resolve.java:2408)
at jdk.compiler/com.sun.tools.javac.comp.Resolve.findIdentInternal(Resolve.java:2439)
at jdk.compiler/com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:2425)
at jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:2718)
at jdk.compiler/com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:4293)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2664)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:687)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribType(Attr.java:753)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribType(Attr.java:746)
at jdk.compiler/com.sun.tools.javac.comp.Attr.visitNewClass(Attr.java:2749)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1854)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:687)
at jdk.compiler/com.sun.tools.javac.comp.ArgumentAttr.visitNewClass(ArgumentAttr.java:326)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1854)
at jdk.compiler/com.sun.tools.javac.comp.ArgumentAttr.attribArg(ArgumentAttr.java:197)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:685)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:788)
at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2584)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1799)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:687)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:500)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:480)
...
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.complete(DeferredAttr.java:315)
at jdk.compiler/com.sun.tools.javac.comp.ArgumentAttr$ArgumentType.complete(ArgumentAttr.java:355)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:359)
JavaTest Message: Test threw exception: java.lang.IllegalStateException: java.lang.StackOverflowError
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.IllegalStateException: java.lang.StackOverflowError
rerun:
cd /home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/scratch/0 && \
HOME=/home/sunguoyun \
LANG=zh_CN.utf8 \
LC_ALL=C \
PATH=/bin:/usr/bin:/usr/sbin \
TEST_IMAGE_DIR=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/images/test \
XMODIFIERS=@im=fcitx \
CLASSPATH=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/classes/0/tools/javac/lambda/T8031967.d:/home/sunguoyun/jdk-ls/test/langtools/tools/javac/lambda:/home/sunguoyun/jtreg/lib/javatest.jar:/home/sunguoyun/jtreg/lib/jtreg.jar \
/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/images/jdk/bin/java \
-Dtest.vm.opts='-Xmx768m -XX:MaxRAMPercentage=0.78125 -Djava.io.tmpdir=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/tmp -XX:TieredStopAtLevel=3 -ea -esa' \
-Dtest.tool.vm.opts='-J-Xmx768m -J-XX:MaxRAMPercentage=0.78125 -J-Djava.io.tmpdir=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/tmp -J-XX:TieredStopAtLevel=3 -J-ea -J-esa' \
-Dtest.compiler.opts= \
-Dtest.java.opts= \
-Dtest.jdk=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/images/jdk \
-Dcompile.jdk=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/images/jdk \
-Dtest.timeout.factor=4.0 \
-Dtest.root=/home/sunguoyun/jdk-ls/test/langtools \
-Dtest.name=tools/javac/lambda/T8031967.java \
-Dtest.file=/home/sunguoyun/jdk-ls/test/langtools/tools/javac/lambda/T8031967.java \
-Dtest.src=/home/sunguoyun/jdk-ls/test/langtools/tools/javac/lambda \
-Dtest.src.path=/home/sunguoyun/jdk-ls/test/langtools/tools/javac/lambda \
-Dtest.classes=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/classes/0/tools/javac/lambda/T8031967.d \
-Dtest.class.path=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/classes/0/tools/javac/lambda/T8031967.d \
-Dtest.class.path.prefix=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/classes/0/tools/javac/lambda/T8031967.d:/home/sunguoyun/jdk-ls/test/langtools/tools/javac/lambda \
-Dtest.modules=jdk.compiler \
--add-modules jdk.compiler \
-Xmx768m \
-XX:MaxRAMPercentage=0.78125 \
-Djava.io.tmpdir=/home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/tmp \
-XX:TieredStopAtLevel=3 \
-ea \
-esa \
-Xss1m \
com.sun.javatest.regtest.agent.MainWrapper /home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java/tools/javac/lambda/T8031967.d/main.0.jta
TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.IllegalStateException: java.lang.StackOverflowError
--------------------------------------------------
Test results: failed: 1
Report written to /home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-results/jtreg_test_langtools_tools_javac_lambda_T8031967_java/html/report.html
Results written to /home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_langtools_tools_javac_lambda_T8031967_java
Error: Some tests failed or other problems occurred.
Finished running test 'jtreg:test/langtools/tools/javac/lambda/T8031967.java'
Test report is stored in build/linux-aarch64-server-fastdebug/test-results/jtreg_test_langtools_tools_javac_lambda_T8031967_java
==============================
Test summary
==============================
TEST TOTAL PASS FAIL ERROR
jtreg:test/langtools/tools/javac/lambda/T8031967.java
>> 1 0 1 0 <<
==============================
TEST FAILURE
- duplicates
-
JDK-8302369 Reduce the stack size of the C1 compiler
- Resolved
- relates to
-
JDK-8323041 tools/javac/lambda/T8031967.java fails with StackOverflowError with C1 on aarch64
- Open
- links to
-
Review openjdk/jdk/9934