-
Bug
-
Resolution: Unresolved
-
P4
-
21
-
linux
When launching a packaged application using the jpackage command on Linux, the launcher terminates with the following message:
```
pure virtual method called
terminate called without an active exception
```
This issue occurs with JDK 21.0.6 but not with JDK 22.0.2 and later version.
I confirmed that it occurs on RHEL x64 and Amazon Linux 2023 x64
How to Reproduce:
1. build jdk21 with configure option "--with-stdc++lib=dynamic" on Linux
2. packageb java application
$ javac Sample.java -d classes/
$ jar -c -f ./input/sample.jar -C ./classes/ .
$ jpackage --input ./input/ --dest ./output/ --name SampleApp --type app-image --main-jar sample.jar --main-class Sample
3. run
$ ./output/SampleApp/bin/SampleApp
pure virtual method called
terminate called without an active exception
Hello
I found this issue because the following test fail.
jdk/tools/jpackage/share/AppLauncherEnvTest.java
A similar issue has been reported inJDK-8289195.
```
pure virtual method called
terminate called without an active exception
```
This issue occurs with JDK 21.0.6 but not with JDK 22.0.2 and later version.
I confirmed that it occurs on RHEL x64 and Amazon Linux 2023 x64
How to Reproduce:
1. build jdk21 with configure option "--with-stdc++lib=dynamic" on Linux
2. packageb java application
$ javac Sample.java -d classes/
$ jar -c -f ./input/sample.jar -C ./classes/ .
$ jpackage --input ./input/ --dest ./output/ --name SampleApp --type app-image --main-jar sample.jar --main-class Sample
3. run
$ ./output/SampleApp/bin/SampleApp
pure virtual method called
terminate called without an active exception
Hello
I found this issue because the following test fail.
jdk/tools/jpackage/share/AppLauncherEnvTest.java
A similar issue has been reported in
- relates to
-
JDK-8289195 jpackage launcher exits with 134 "terminate called without an active exception"
-
- Closed
-