Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8271127

Abnormal build process termination

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 11.0.11
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Apple Macbook M1 2020, Mac OS, Java 11.0.11, Amazon Corretto-11.0.11.9.1

      A DESCRIPTION OF THE PROBLEM :
      While trying to run a simple program, the compiler starting crashing today with the above mentioned heading

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Abnormal build process termination:
      /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/bin/java -Xmx700m -Djava.awt.headless=true -Djdt.compiler.useSingleThread=true -Dpreload.project.path=/Users/ruchiragarwal/IdeaProjects/Programming "-Dpreload.config.path=/Users/ruchiragarwal/Library/Application Support/JetBrains/IdeaIC2021.1/options" -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Dio.netty.initialSeedUniquifier=-7990451175274449442 -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US -Didea.paths.selector=IdeaIC2021.1 "-Didea.home.path=/Applications/IntelliJ IDEA CE.app/Contents" "-Didea.config.path=/Users/ruchiragarwal/Library/Application Support/JetBrains/IdeaIC2021.1" "-Didea.plugins.path=/Users/ruchiragarwal/Library/Application Support/JetBrains/IdeaIC2021.1/plugins" -Djps.log.dir=/Users/ruchiragarwal/Library/Logs/JetBrains/IdeaIC2021.1/build-log "-Djps.fallback.jdk.home=/Applications/IntelliJ IDEA CE.app/Contents/jbr/Contents/Home" -Djps.fallback.jdk.version=11.0.11 -Dio.netty.noUnsafe=true -Djava.io.tmpdir=/Users/ruchiragarwal/Library/Caches/JetBrains/IdeaIC2021.1/compile-server/programming_92d22dc/_temp_ -Djps.backward.ref.index.builder=true -Dtmh.instrument.annotations=true -Dkotlin.incremental.compilation=true -Dkotlin.incremental.compilation.js=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"/var/folders/8g/4_0fkht16bj0vtyth6h5sr7c0000gn/T/kotlin-idea-5776823463573491351-is-running\" -classpath "/Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/jps-launcher.jar" org.jetbrains.jps.cmdline.Launcher "/Applications/IntelliJ IDEA CE.app/Contents/lib/netty-buffer.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/commons-lang3-3.10.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/slf4j.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/maven-resolver-transport-http-1.3.3.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/util.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/jna-platform.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/qdox-2.0.0.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/gson-2.8.6.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/plexus-utils-3.3.0.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/aether-dependency-resolver.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/maven-resolver-transport-file-1.3.3.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/log4j.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/jps-builders-6.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/maven-resolver-connector-basic-1.3.3.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/resources_en.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/lz4-java-1.7.1.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/oro-2.0.8.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/intellij-deps-fastutil-8.5.2-6.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/jps-model.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/nanoxml-2.2.3.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/jps-builders.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/netty-codec-http.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/javac2.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/http-client.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/platform-api.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/guava.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/forms-1.1-preview.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/trove4j.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/jna.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/jdom.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/protobuf-java-3.13.0.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/jps-javac-extension-1.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/forms_rt.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/annotations.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/commons-logging-1.2.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/maven-resolver-provider.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/asm-all-9.1.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/kotlin-stdlib-jdk8.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/ant/lib/ant-jps.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/uiDesigner/lib/jps/java-guiForms-jps.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/eclipse/lib/eclipse-jps.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/eclipse/lib/eclipse-common.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/javaFX/lib/javaFX-jps.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/javaFX/lib/javaFX-common.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/IntelliLang/lib/java-langInjection-jps.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/Groovy/lib/groovy-jps.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/Groovy/lib/groovy-constants-rt.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven-jps.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/gradle-java/lib/gradle-jps.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/devkit/lib/devkit-jps.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/Kotlin/lib/kotlin-stdlib.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/Kotlin/lib/kotlin-stdlib-jdk7.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/Kotlin/lib/kotlin-stdlib-jdk8.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/Kotlin/lib/kotlin-reflect.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/Kotlin/lib/kotlin-plugin.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/Kotlin/lib/kotlin-jps-common.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/Kotlin/lib/kotlin-common.jar" org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 57365 4400a3b8-d680-43b6-b637-e0b503675a50 /Users/ruchiragarwal/Library/Caches/JetBrains/IdeaIC2021.1/compile-server
      Build process started. Classpath: /Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/jps-launcher.jar
      rosetta error: /var/db/oah/63b8ff35a4bc93e2da17585c4ea5ae7f225c3b5f3c7ebcea016bd32f0f335c15/89b6d86a73a0e38682650e417b7b3fa415dabb319540057d78290287eb9a0019/jna10495014837544710891.tmp.aot: attachment of code signature supplement failed: 1



      REGRESSION : Last worked in version 11.0.11

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Replicating with every file

      ACTUAL -
      Saw the above crash log

      ---------- BEGIN SOURCE ----------
      package com.company;

      import java.util.*;

      public class ReverseWordsInAString {

          //PROBLEM

          public static void main(String[] args){
              System.out.println(reverseWords("a good example "));
          }

          //took 7 ms (56 percentile) and 39.2 MB (55 percentile)
          public static String reverseWords(String s){
              String[] words = Arrays.stream(s.split(" ")).filter(value ->
                      value.length() > 0).toArray(size -> new String[size]);
              StringBuilder sb = new StringBuilder();
              for(int i = words.length - 1; i > 0 ; i--)
                  sb.append(words[i] + " ");
              sb.append(words[0]);

              return sb.toString();
          }

          // took 9 ms (36 percentile) and 39.7 MB (28 percentile)
          public static String reverseWords2(String s){
              s = s.trim();
              List<String> words = Arrays.asList(s.split("\\s+"));
              Collections.reverse(words);
              return String.join(" ", words);
          }

          //took 5 ms (71 percentile) and 38.9 MB (81 percentile)
          public static String reverseWords3(String s){
              int i = 0, j = s.length() - 1;

              //remove leading spaces
              while(i < j && s.charAt(i) == ' ') i++;

              //remove trailing spaces
              while(j > i && s.charAt(j) == ' ') j--;

              Deque<String> res = new ArrayDeque<>();
              StringBuilder word = new StringBuilder();

              while(i <= j){

                  //split words and add them to result
                  char c = s.charAt(i);
                  if (c != ' '){
                      word.append(s.charAt(i));
                  }
                   else if(word.length() > 0 && c == ' '){
                       res.offerFirst(word.toString());
                       word.setLength(0);
                  }
                  i++;
              }

              //add last word
              res.offerFirst(word.toString());

              //merge words
              return String.join(" ", res);
          }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      None found

      FREQUENCY : rarely


        Attachments

          Activity

            People

            Assignee:
            sswsharm swati sharma
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: