SIGSEGV (core dump) java -Xmx64m -jar $JAR -storepass "$storepass"

Bug #1818631 reported by Jun Aruga
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ca-certificates-java (Ubuntu)
Invalid
Undecided
Unassigned

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.

Revision history for this message
Jun Aruga (junaruga) wrote :
Revision history for this message
Jun Aruga (junaruga) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ca-certificates-java (Ubuntu):
status: New → Confirmed
Revision history for this message
Vladimir Petko (vpa1977) wrote :

Unable to reproduce using the docker script provided.
The issue affects qemu, rather than ca-certificates-java

Changed in ca-certificates-java (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.