Some more analysis:
Tried to explicitely compile as well as exclude few methods during compilation
such as 'java.lang.StringLatin1::hashCode',
'java.util.concurrent.ConcurrentHashMap', 'java.lang.String*' which are part of
trace as logged in above comments, with the help of advanced JIT options
As java -version passes few times, further also checked behaviour of Maven.
Observed that mvn -v crashes in a similar fashion, however after setting below:
export MAVEN_OPTS="-XX:-TieredCompilation -XX:+UseG1GC -Dcount=100"
mvn -v always passes.
root@XX:/# mvn -v
OpenJDK 64-Bit Server VM war
@davidhildenbrand The other issue which you have mentioned as duplicate
shows java getting stuck for long, whereas for me it crashes right away.
Do you think these 2 are related?
Also observed another behaviour :
java -version randomly passes, sometimes.
I can also confirm that it is observed und
Tried building jdk 11 from source, the generated executable still
crashes(fastdebug as well as release mode):
```
root@24d396a17e00:~/jdk# build/linux-s390x-normal-server-release/jdk/bin/java
-version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0
Please find below steps to reproduce the issue(Running on amd64 VM):
```
apt-get install -y qemu qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker run -it s390x/ubuntu:20.04 bash
--> apt-get update && apt-get install -y openjdk-11-jdk
jar --version
Public bug reported:
While installing openjdk11 or higher from repo, it crashes while configuring
ca-certificates-java.
Although `java -version` passes, `jar -version` crashes. Detailed logs attached
to this issue.
```
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGI