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

jpackage launcher exits with 134 "terminate called without an active exception

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Linux josh 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 20.04.4 LTS
      Release: 20.04
      Codename: focal
      openjdk version "17.0.4" 2022-07-19
      OpenJDK Runtime Environment (build 17.0.4+8-Ubuntu-120.04)
      OpenJDK 64-Bit Server VM (build 17.0.4+8-Ubuntu-120.04, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      Reproduce JDK-8289195 as reported at https://bugs.openjdk.org/browse/JDK-8289195


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      See bash script in Source code - this contains all the steps to reproduce issue JDK-8289195 for both Java 17 and Java 14 on Ubuntu


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      $? == 0
      ACTUAL -
      $? == 134

      ---------- BEGIN SOURCE ----------
      #!/usr/bin/env bash
      # Date: Sat Nov 12 11:28:56 SAST 2022
      # Name: Theo Kramer - theo@dns.business
      # Reproduce https://bugs.openjdk.org/browse/JDK-8289195

      uname -a
      lsb_release -a
      java -version
      mkdir -p example/distr
      cd example
      echo 'package example;

      public class Main {
        public static void main(String[] args) {
          System.out.println("Hello World!");
        }
      }' >Main.java

      javac -d . Main.java
      jar cvfe distr/example.jar example.Main example/Main.class
      jpackage --linux-package-name example --name Example --input distr/ --main-jar example.jar --dest distr/
      sudo dpkg -i distr/example_1.0-1_amd64.deb
      /opt/example/bin/Example
      # Output as follows:
      # Hello World!
      # pure virtual method called
      # terminate called without an active exception
      # Aborted (core dumped)
      retval=$?
      echo "Retval: '${retval}'"
      exit ${retval}

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

      FREQUENCY : always


        1. test.sh
          0.8 kB
        2. screenshot-openjdk.png
          screenshot-openjdk.png
          165 kB
        3. screenshot.png
          screenshot.png
          146 kB
        4. reproducer.png
          reproducer.png
          265 kB
        5. JDK 17.0.4.png
          JDK 17.0.4.png
          182 kB

            adev Anupam Dev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: