sourcegraph / scip-java

SCIP Code Intelligence Protocol generator for Java
https://sourcegraph.github.io/scip-java/
Apache License 2.0
73 stars 28 forks source link

NullPointerException indexing jdk v11 in auto-indexing #520

Open Strum355 opened 2 years ago

Strum355 commented 2 years ago

Link to autoindexing job https://sourcegraph.com/jdk/-/code-graph/indexes/TFNJRkluZGV4OjM5NDM0MDk=

Status: Downloaded newer image for sourcegraph/scip-java@sha256:eb3996bdc8ab3a56600e7d647bc1ef72f3db8cfffc2026550095a0af7bb762bd
+ scip-java index --build-tool=scip
Using JVM version '11'
Downloading https://raw.githubusercontent.com/coursier/jvm-index/master/index.json
Downloaded https://raw.githubusercontent.com/coursier/jvm-index/master/index.json
info: Compiling 18,334 Java sources
Downloaded 1 missing file(s) / 24
Downloaded 2 missing file(s) / 24
Downloaded 3 missing file(s) / 24
Downloaded 4 missing file(s) / 24
Downloaded 5 missing file(s) / 24
Downloaded 6 missing file(s) / 24
Downloaded 7 missing file(s) / 24
Downloaded 8 missing file(s) / 24
Downloaded 9 missing file(s) / 24
Downloaded 10 missing file(s) / 24
Downloaded 11 missing file(s) / 24
Downloaded 12 missing file(s) / 24
Downloaded 13 missing file(s) / 24
Downloaded 14 missing file(s) / 24
Downloaded 15 missing file(s) / 24
Downloaded 16 missing file(s) / 24
Downloaded 17 missing file(s) / 24
Downloaded 18 missing file(s) / 24
Downloaded 19 missing file(s) / 24
Downloaded 20 missing file(s) / 24
Downloaded 21 missing file(s) / 24
Downloaded 22 missing file(s) / 24
Downloaded 23 missing file(s) / 24
Downloaded 24 missing file(s) / 24
info: $ /root/.cache/coursier/arc/https/github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.16.1%252B1/OpenJDK11U-jdk_x64_linux_hotspot_11.0.16.1_1.tar.gz/jdk-11.0.16.1+1/bin/javac @/data/target/javacopts.txt
info: An exception has occurred in the compiler (11.0.16.1). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
info: java.lang.NullPointerException
info:     at jdk.compiler/com.sun.tools.javac.comp.Modules$UsesProvidesVisitor.visitExports(Modules.java:1011)
info:     at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCExports.accept(JCTree.java:2743)
info:     at jdk.compiler/com.sun.tools.javac.comp.Modules$UsesProvidesVisitor.lambda$visitModuleDef$0(Modules.java:988)
info:     at java.base/java.lang.Iterable.forEach(Iterable.java:75)
info:     at jdk.compiler/com.sun.tools.javac.comp.Modules$UsesProvidesVisitor.visitModuleDef(Modules.java:988)
info:     at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCModuleDecl.accept(JCTree.java:2693)
info:     at jdk.compiler/com.sun.tools.javac.comp.Modules.lambda$getUsesProvidesCompleter$4(Modules.java:963)
info:     at jdk.compiler/com.sun.tools.javac.code.Symbol$ModuleSymbol.completeUsesProvides(Symbol.java:1009)
info:     at jdk.compiler/com.sun.tools.javac.comp.Attr.visitModuleDef(Attr.java:4596)
info:     at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCModuleDecl.accept(JCTree.java:2693)
info:     at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
info:     at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:724)
info:     at jdk.compiler/com.sun.tools.javac.comp.Attr.attribModule(Attr.java:4493)
info:     at jdk.compiler/com.sun.tools.javac.comp.Attr.attribModule(Attr.java:4484)
info:     at jdk.compiler/com.sun.tools.javac.comp.Attr.attrib(Attr.java:4441)
info:     at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1337)
info:     at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:973)
info:     at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:311)
info:     at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
info:     at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
info:     at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)
error: CommandResult 4
time="2022-11-10T14:55:20Z" level=error msg="Process exited with status 1\n"
olafurpg commented 2 years ago

Can we work around this issue by using an older version of JDK v11? This was working before.

Strum355 commented 2 years ago

I will try out multiple versions tomorrow/next week to see if I can narrow it down to that addressing it 🙂