openjdk-19-jdk crashes inside docker(ubuntu:22:04) on riscv64
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=0x0000003f70
#
# JRE version: (19.0.1+10) (build )
# Java VM: OpenJDK 64-Bit Server VM (19.0.1+
# Problematic frame:
# v ~BufferBlob::native signature handlers 0x0000003f702aca08
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/
#
# An error report file with more information is saved as:
# /root/hs_
#
#
javac --version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0000003f8c
#
# 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+
# Problematic frame:
# v ~BufferBlob::vtable chunks 0x0000003f8c390a60
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/
#
# An error report file with more information is saved as:
# /root/hs_
#
# If you would like to submit a bug report, please visit:
# Unknown
#
Host:
uname -a
Linux ubuntu 5.19.0-
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
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://
500 http://
100 /var/lib/
19+36-2 500
500 http://
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
&& apt-get --quiet --yes install vim-common \
&& apt-get --quiet update && apt-get --quiet --yes install openjdk-19-jdk
```
```
docker build -t riscv64/
```
```
docker run --rm -it --entrypoint="bash" riscv64/
```
And inside container run javac --version
The same error with debian based image debian: unstable
```
FROM riscv64/
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/ apt/lists/ * \ locale/ locale. alias en_US.UTF-8
&& localedef -i en_US -c -f UTF-8 -A /usr/share/
ENV LANG en_US.utf8
# java 19 -java git curl unzip wget apt-utils tar unzip build-essential \
RUN apt-get --quiet update \
&& apt-get --quiet --yes upgrade \
&& apt-get --quiet --yes install ca-certificates
&& apt-get --quiet update && apt-get --quiet --yes install openjdk-19-jdk openjdk-19-jre
```
javac --version 2ad1d8, pid=24, tid=25 10-Debian- 1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-riscv64) apport/ apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to //core.24) /bugs.debian. org/openjdk- 19
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0000003fa4
#
# 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+
# Problematic frame:
# v ~BufferBlob::native signature handlers 0x0000003fa42ad1d8
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/
#
# 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:/
#