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

Creating CDS archive for jdk image: deletes the crashing java executable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 12
    • 12
    • infrastructure
    • None

      If "Creating CDS archive for jdk image" crashes the java executable is deleted. This means you can't open the core-file or run the command with gdb.

      [rehn@rehn-ws vanilla-jdk]$ make images CONF=linux-x86_64-normal-server-fastdebug
      Building target 'images' in configuration '/home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug'
      Creating jdk image
      Creating CDS archive for jdk image
      /usr/bin/bash: line 1: 21666 Aborted (core dumped) /home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java -Xshare:dump -Xmx128M -Xms128M > /dev/null
      gmake[3]: *** [Images.gmk:97: /home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java] Error 134
      gmake[3]: *** Deleting file '/home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java'
      gmake[2]: *** [make/Main.gmk:354: jdk-image] Error 2

      ERROR: Build failed for target 'images' in configuration '/home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug' (exit code 2)

      No indication of failed target found.
      Hint: Try searching the build log for '] Error'.
      Hint: See doc/building.html#troubleshooting for assistance.

      make[1]: *** [/home/rehn/source/jdk/vanilla-jdk/open/make/Init.gmk:310: main] Error 2
      make: *** [/home/rehn/source/jdk/vanilla-jdk/open/make/Init.gmk:186: images] Error 2
      [rehn@rehn-ws vanilla-jdk]$ ll /home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java
      ls: cannot access '/home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java': No such file or directory


      During compilation:
      [rehn@rehn-ws vanilla-jdk]$ ll /home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java
      ls: cannot access '/home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java': No such file or directory
      [rehn@rehn-ws vanilla-jdk]$ ll /home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java
      -rwxrw-r-- 1 rehn rehn 16088 9 nov 10.27 /home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java
      [rehn@rehn-ws vanilla-jdk]$ ll /home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java
      ls: cannot access '/home/rehn/source/jdk/vanilla-jdk/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java': No such file or directory

      The java executable should not be deleted.

            Unassigned Unassigned
            rehn Robbin Ehn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: