openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #13466
[Bug 1818631] Re: SIGSEGV (core dump) java -Xmx64m -jar $JAR -storepass "$storepass"
Similar report here.
https://github.com/multiarch/qemu-user-static/issues/18
** Bug watch added: github.com/multiarch/qemu-user-static/issues #18
https://github.com/multiarch/qemu-user-static/issues/18
--
You received this bug notification because you are a member of OpenJDK,
which is subscribed to ca-certificates-java in Ubuntu.
https://bugs.launchpad.net/bugs/1818631
Title:
SIGSEGV (core dump) java -Xmx64m -jar $JAR -storepass "$storepass"
Status in ca-certificates-java package in Ubuntu:
New
Bug description:
## Environment
OS version: Ubuntu arm64-bionic
I am using below ubuntu container.
https://hub.docker.com/r/multiarch/ubuntu-debootstrap/tags/
ca-certificates-java: 20180516ubuntu1~18.04.1
```
$ uname -a
Linux 4e7245866a0e 4.15.0-1026-gcp #27~16.04.1-Ubuntu SMP Fri Dec 7 09:59:47 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux
```
## How to reproduce
I created reproducer script.
https://github.com/junaruga/ubuntu-arm-java-sigsegv/blob/master/.travis.yml
The actual result. You can see the core dump here.
https://travis-ci.org/junaruga/ubuntu-arm-java-sigsegv/builds/501915248#L469-L492
```
$ git clone https://github.com/junaruga/ubuntu-arm-java-sigsegv.git
``
Then run Travis CI on your repository,
or run below commands
```
$ docker run --rm --privileged multiarch/qemu-user-static:register --reset
$ docker build --rm -t sample -f Dockerfile-arm64 .
```
or run below commands on your ARM (arm64) environment
```
# apt-get update && apt-get install -y ca-certificates-java
```
Below result is shown randomly with around 30%.
When trying 3 times, succeeded 2 times, failed 1 time on my impression.
```
...
Setting up ca-certificates-java (20180516ubuntu1~18.04.1) ...
/usr/bin/head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00000040013c8dd8, pid=5827, tid=5831
#
# JRE version: (10.0.2+13) (build )
# Java VM: OpenJDK 64-Bit Server VM (10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode, tiered, compressed oops, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x898dd8]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to //core.5827)
#
# An error report file with more information is saved as:
# //hs_err_pid5827.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
/var/lib/dpkg/info/ca-certificates-java.postinst: line 76: 5826 Done echo -e "-diginotar_root_ca\n-diginotar_root_ca_pem"
5827 Aborted (core dumped) | java -Xmx64m -jar $JAR -storepass "$storepass"
dpkg: error processing package ca-certificates-java (--configure):
installed ca-certificates-java package post-installation script subprocess returned error exit status 134
```
`default-jre` package installation is also failed for this issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1818631/+subscriptions
References