#951764 openjdk-11: Crash with qemu-s390x-static

Package:
openjdk-11-jre-headless
Source:
openjdk-11
Description:
OpenJDK Java runtime, using Hotspot JIT (headless)
Submitter:
Michael R . Crusoe
Date:
2021-06-15 20:21:03 UTC
Severity:
normal
#951764#5
Date:
2020-02-21 11:09:22 UTC
From:
To:
Dear Maintainer,

Installing openjdk-11-jre-headless:s390x in a s390x chroot on an amd64 host with qemu-s390x-static produces the following crash:

Setting up ca-certificates-java (20190909) ...
/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:
#
#  SIGILL (0x4) at pc=0x000000401193e280, pid=402198, tid=402201
#
# JRE version: OpenJDK Runtime Environment (11.0.6+10) (build 11.0.6+10-post-Debian-2)
# Java VM: OpenJDK 64-Bit Server VM (11.0.6+10-post-Debian-2, mixed mode, tiered, compressed oops, g1 gc, linux-s390x)
# Problematic frame:
# J 1 c1 java.lang.StringLatin1.hashCode([B)I java.base@11.0.6 (42 bytes) @ 0x000000401193e280 [0x000000401193e280+0x0000000000000000]
#
# Core dump will be written. Default location: //core
#
# An error report file with more information is saved as:
# //hs_err_pid402198.log
Compiled method (c1)     831    1       3       java.lang.StringLatin1::hashCode (42 bytes)
 total in heap  [0x000000401193e010,0x000000401193e520] = 1296
 relocation     [0x000000401193e178,0x000000401193e1e0] = 104
 constants      [0x000000401193e200,0x000000401193e280] = 128
 main code      [0x000000401193e280,0x000000401193e400] = 384
 stub code      [0x000000401193e400,0x000000401193e458] = 88
 metadata       [0x000000401193e458,0x000000401193e468] = 16
 scopes data    [0x000000401193e468,0x000000401193e4a8] = 64
 scopes pcs     [0x000000401193e4a8,0x000000401193e508] = 96
 dependencies   [0x000000401193e508,0x000000401193e510] = 8
 nul chk table  [0x000000401193e510,0x000000401193e520] = 16
Compiled method (c1)     834    4       3       java.lang.String::hashCode (49 bytes)
 total in heap  [0x000000401193fd10,0x0000004011940468] = 1880
 relocation     [0x000000401193fe78,0x000000401193ff58] = 224
 constants      [0x000000401193ff80,0x0000004011940040] = 192
 main code      [0x0000004011940040,0x0000004011940300] = 704
 stub code      [0x0000004011940300,0x0000004011940378] = 120
 metadata       [0x0000004011940378,0x00000040119403a8] = 48
 scopes data    [0x00000040119403a8,0x00000040119403e0] = 56
 scopes pcs     [0x00000040119403e0,0x0000004011940450] = 112
 dependencies   [0x0000004011940450,0x0000004011940458] = 8
 nul chk table  [0x0000004011940458,0x0000004011940468] = 16
Compiled method (c1)     837    4       3       java.lang.String::hashCode (49 bytes)
 total in heap  [0x000000401193fd10,0x0000004011940468] = 1880
 relocation     [0x000000401193fe78,0x000000401193ff58] = 224
 constants      [0x000000401193ff80,0x0000004011940040] = 192
 main code      [0x0000004011940040,0x0000004011940300] = 704
 stub code      [0x0000004011940300,0x0000004011940378] = 120
 metadata       [0x0000004011940378,0x00000040119403a8] = 48
 scopes data    [0x00000040119403a8,0x00000040119403e0] = 56
 scopes pcs     [0x00000040119403e0,0x0000004011940450] = 112
 dependencies   [0x0000004011940450,0x0000004011940458] = 8
 nul chk table  [0x0000004011940458,0x0000004011940468] = 16
Could not load hsdis-s390x.so; library not loadable; PrintAssembly is disabled
#
# If you would like to submit a bug report, please visit:
#   https://bugs.debian.org/openjdk-11
#
/var/lib/dpkg/info/ca-certificates-java.postinst: line 88: 402196 Done                    echo -e "-diginotar_root_ca\n-diginotar_root_ca_pem"
     402198 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
Setting up readline-common (8.0-3) ...
Setting up libreadline8:s390x (8.0-3) ...
dpkg: dependency problems prevent configuration of openjdk-11-jre-headless:s390x:
 openjdk-11-jre-headless:s390x depends on ca-certificates-java (>= 20190405~); however:
  Package ca-certificates-java is not configured yet.

dpkg: error processing package openjdk-11-jre-headless:s390x (--configure):
 dependency problems - leaving unconfigured

#951764#10
Date:
2021-06-15 20:19:50 UTC
From:
To:
[…]

This is almost certainly #986022 in qemu-user-static.

bye,
//mirabilos