Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[s390x] crash on jar (openjdk-15.0.1_p9) in alpine 3.12.3, but working on the native arch #129

Closed
BbolroC opened this issue Jan 14, 2021 · 1 comment · Fixed by #153 or jenkinsci/docker#1198

Comments

@BbolroC
Copy link

BbolroC commented Jan 14, 2021

Is this a bug report, feature (enhancement) request or question? (leave only one on its own line)

/kind bug

Description:

Steps to reproduce the issue:

  1. docker run --rm --privileged multiarch/qemu-user-static:5.2.0-2 --reset -p yes

  2. docker run --rm -it --entrypoint /bin/sh ghcr.io/openzipkin/alpine:3.12.3@sha256:2236f4fd8f9b4e595661a5886f1b075401c2b8d4f5357bc30fff7a50404c07cd

  3. apk --no-cache add openjdk15-jmods=~15.0.1_p9 openjdk15-jdk=~15.0.1_p9 binutils tar wget

  4. /usr/lib/jvm/default-jvm/bin/jar --version

Describe the results you received:

/ # /usr/lib/jvm/default-jvm/bin/jar --version
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000004011e1ac40, pid=46, tid=50
#
# JRE version: OpenJDK Runtime Environment (15.0.1+9) (build 15.0.1+9-alpine-r1)
# Java VM: OpenJDK 64-Bit Server VM (15.0.1+9-alpine-r1, mixed mode, sharing, tiered, compressed oops, serial gc, linux-s390x)
# Problematic frame:
# J 26 c1 java.util.HashMap.afterNodeInsertion(Z)V java.base@15.0.1 (1 bytes) @ 0x0000004011e1ac40 [0x0000004011e1ac00+0x0000000000000040]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to //core.46)
#
# An error report file with more information is saved as:
# //hs_err_pid46.log
Compiled method (c1)     513   26       3       java.util.HashMap::afterNodeInsertion (1 bytes)
 total in heap  [0x0000004011e1aa10,0x0000004011e1adb0] = 928
 relocation     [0x0000004011e1ab68,0x0000004011e1ab98] = 48
 constants      [0x0000004011e1abc0,0x0000004011e1ac00] = 64
 main code      [0x0000004011e1ac00,0x0000004011e1ad00] = 256
 stub code      [0x0000004011e1ad00,0x0000004011e1ad58] = 88
 metadata       [0x0000004011e1ad58,0x0000004011e1ad68] = 16
 scopes data    [0x0000004011e1ad68,0x0000004011e1ad78] = 16
 scopes pcs     [0x0000004011e1ad78,0x0000004011e1ada8] = 48
 dependencies   [0x0000004011e1ada8,0x0000004011e1adb0] = 8
Compiled method (c1)     521   23       3       java.util.HashMap::putVal (300 bytes)
 total in heap  [0x0000004011e16310,0x0000004011e17fe0] = 7376
 relocation     [0x0000004011e16468,0x0000004011e16830] = 968
 constants      [0x0000004011e16840,0x0000004011e16b40] = 768
 main code      [0x0000004011e16b40,0x0000004011e17a40] = 3840
 stub code      [0x0000004011e17a40,0x0000004011e17b28] = 232
 metadata       [0x0000004011e17b28,0x0000004011e17b90] = 104
 scopes data    [0x0000004011e17b90,0x0000004011e17da8] = 536
 scopes pcs     [0x0000004011e17da8,0x0000004011e17f78] = 464
 dependencies   [0x0000004011e17f78,0x0000004011e17f80] = 8
 nul chk table  [0x0000004011e17f80,0x0000004011e17fe0] = 96
Compiled method (c1)     529   23       3       java.util.HashMap::putVal (300 bytes)
 total in heap  [0x0000004011e16310,0x0000004011e17fe0] = 7376
 relocation     [0x0000004011e16468,0x0000004011e16830] = 968
 constants      [0x0000004011e16840,0x0000004011e16b40] = 768
 main code      [0x0000004011e16b40,0x0000004011e17a40] = 3840
 stub code      [0x0000004011e17a40,0x0000004011e17b28] = 232
 metadata       [0x0000004011e17b28,0x0000004011e17b90] = 104
 scopes data    [0x0000004011e17b90,0x0000004011e17da8] = 536
 scopes pcs     [0x0000004011e17da8,0x0000004011e17f78] = 464
 dependencies   [0x0000004011e17f78,0x0000004011e17f80] = 8
 nul chk table  [0x0000004011e17f80,0x0000004011e17fe0] = 96
#
# If you would like to submit a bug report, please visit:
#   https://gitlab.alpinelinux.org/alpine/aports/issues
#
Aborted (core dumped)

Describe the results you expected:

/ # /usr/lib/jvm/default-jvm/bin/jar --version
jar 15.0.1

Environment:

  • QEMU version: (if you can know it): 5.2.0-2
  • Container application: Docker

Output of docker version

Client: Docker Engine - Community
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46d9d
 Built:             Wed Sep 16 17:02:52 2020
 OS/Arch:           linux/amd64
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          19.03.13
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       4484c46d9d
  Built:            Wed Sep 16 17:01:20 2020
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          1.3.7
  GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Additional information optionally:
No errors found on the native(s390x) system (only following the step 2 through 4)

@BbolroC
Copy link
Author

BbolroC commented Aug 26, 2021

I confirmed that the commits in https://gitlab.com/qemu-project/qemu/-/issues/319 resolved the problem. Those have been recently reflected to http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu-user-static_6.1+dfsg-1_amd64.deb. The corresponding update in https://github.com/multiarch/qemu-user-static/blob/master/.github/workflows/actions.yml would be nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant