openjdk-19-jdk crashes inside docker(ubuntu:22:04) on riscv64

Bug #1999040 reported by jershell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-19 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Error inside docker container. on host javac is work.

java --version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0000003f702aca08, pid=13, tid=14
#
# JRE version: (19.0.1+10) (build )
# Java VM: OpenJDK 64-Bit Server VM (19.0.1+10-Ubuntu-1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-riscv64)
# Problematic frame:
# v ~BufferBlob::native signature handlers 0x0000003f702aca08
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /root/core.13)
#
# An error report file with more information is saved as:
# /root/hs_err_pid13.log
#
#

javac --version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0000003f8c390a60, pid=21, tid=22
#
# JRE version: OpenJDK Runtime Environment (19.0.1+10) (build 19.0.1+10-Ubuntu-1)
# Java VM: OpenJDK 64-Bit Server VM (19.0.1+10-Ubuntu-1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-riscv64)
# Problematic frame:
# v ~BufferBlob::vtable chunks 0x0000003f8c390a60
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /root/core.21)
#
# An error report file with more information is saved as:
# /root/hs_err_pid21.log
#
# If you would like to submit a bug report, please visit:
# Unknown
#

Host:
uname -a
Linux ubuntu 5.19.0-1005-starfive #7-Ubuntu SMP Sat Oct 15 12:21:57 UTC 2022 riscv64 riscv64 riscv64 GNU/Linux

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

docker --version
Docker version 20.10.12, build 20.10.12-0ubuntu4

openjdk-19-jdk:
  Installed: 19.0.1+10-1
  Candidate: 19.0.1+10-1
  Version table:
 *** 19.0.1+10-1 500
        500 http://ports.ubuntu.com/ubuntu-ports kinetic-updates/universe riscv64 Packages
        500 http://ports.ubuntu.com/ubuntu-ports kinetic-security/universe riscv64 Packages
        100 /var/lib/dpkg/status
     19+36-2 500
        500 http://ports.ubuntu.com/ubuntu-ports kinetic/universe riscv64 Packages

How to reproduce
install docker.io package and build image by this Dockerfile

```
FROM ubuntu:22.10
# OR FROM ubuntu:22.04

# java 19
RUN apt-get --quiet update \
&& apt-get --quiet --yes upgrade \
&& apt-get --quiet --yes install ca-certificates-java git curl unzip wget apt-utils tar unzip build-essential \
&& apt-get --quiet --yes install vim-common \
&& apt-get --quiet update && apt-get --quiet --yes install openjdk-19-jdk
```

```
docker build -t riscv64/your_image_name .

```

```
docker run --rm -it --entrypoint="bash" riscv64/your_image_name
```

And inside container run javac --version

Revision history for this message
jershell (jershell) wrote :
Revision history for this message
jershell (jershell) wrote :

The same error with debian based image
```
FROM riscv64/debian:unstable

RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
        && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8

# java 19
RUN apt-get --quiet update \
&& apt-get --quiet --yes upgrade \
&& apt-get --quiet --yes install ca-certificates-java git curl unzip wget apt-utils tar unzip build-essential \
&& apt-get --quiet update && apt-get --quiet --yes install openjdk-19-jdk openjdk-19-jre

```

javac --version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0000003fa42ad1d8, pid=24, tid=25
#
# JRE version: OpenJDK Runtime Environment (19.0.1+10) (build 19.0.1+10-Debian-1)
# Java VM: OpenJDK 64-Bit Server VM (19.0.1+10-Debian-1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-riscv64)
# Problematic frame:
# v ~BufferBlob::native signature handlers 0x0000003fa42ad1d8
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to //core.24)
#
# An error report file with more information is saved as:
# //hs_err_pid24.log
#
# If you would like to submit a bug report, please visit:
# https://bugs.debian.org/openjdk-19
#

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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