-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
17
-
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 :
ReproduceJDK-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 issueJDK-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
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
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See bash script in Source code - this contains all the steps to reproduce issue
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
- duplicates
-
JDK-8289195 jpackage launcher exits with 134 "terminate called without an active exception"
-
- Closed
-