From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D25EC433F5 for ; Wed, 29 Sep 2021 23:51:56 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D03BB61423 for ; Wed, 29 Sep 2021 23:51:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D03BB61423 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:40786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVjMh-0006WS-12 for qemu-devel@archiver.kernel.org; Wed, 29 Sep 2021 19:51:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVjLW-00059X-2Q for qemu-devel@nongnu.org; Wed, 29 Sep 2021 19:50:42 -0400 Received: from smtp-relay-services-0.canonical.com ([185.125.188.250]:42216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVjLS-0003mp-Ud for qemu-devel@nongnu.org; Wed, 29 Sep 2021 19:50:41 -0400 Received: from loganberry.canonical.com (loganberry.canonical.com [91.189.90.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-relay-services-0.canonical.com (Postfix) with ESMTPSA id 9040A3F61E for ; Wed, 29 Sep 2021 23:50:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=launchpad.net; s=20210803; t=1632959432; bh=NiBPr2QVIWZtkiddy727JLHLAlKzq8TTt0E0V9zlQT4=; h=MIME-Version:Content-Type:Date:From:To:Reply-To:Message-Id: Subject; b=g7udfkEaHXeobeBgRTxNRk2q3cIYWvp//KikPJMBUhmb9nSjx2MUWjMmZUbNZ1hwW bQ9oU0ut2/EfeLOE+I3Rg8V3smzhyNzmtWRRfnmLpM+owM6MkUsZnQai1GuHLNYPw/ MwSAgpfKvF0lg90D5KXzrruBc9/L6NaEWKn6E+5hm21bGlLJ9dir4ejh4FBKlodgZ3 TvgdfnWwS7Ex6/jvRbLgohERDrb7rnHDji1z1D59kDn7lQpHmuUoCbbFAP08Q8lFxB OwfEeU3xwbWOfhurR/Ze7uhb4JjF1sW9x7uXgFGJ/TEEYVOoB5AotMpOLAlyRe8tYp K1toRkT0qsorA== Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 350F72E8181 for ; Wed, 29 Sep 2021 23:50:32 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 29 Sep 2021 23:41:02 -0000 From: John Neffenger <1945540@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=New; importance=Undecided; assignee=None; X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: jgneff X-Launchpad-Bug-Reporter: John Neffenger (jgneff) X-Launchpad-Bug-Modifier: John Neffenger (jgneff) Message-Id: <163295886256.12676.6273345579938490980.malonedeb@chaenomeles.canonical.com> Subject: [Bug 1945540] [NEW] Java crashes on s390x VM with SIGILL/ILL_PRVOPC at '__kernel_getcpu+0x8' X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="732145c78fc09841c9906082a9f784c21494fca6"; Instance="production" X-Launchpad-Hash: 7d1268387910b32ff84bab3b6ecaed6f697bf471 Received-SPF: pass client-ip=185.125.188.250; envelope-from=noreply@launchpad.net; helo=smtp-relay-services-0.canonical.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1945540 <1945540@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Public bug reported: Host environment - Operating system: Ubuntu 20.04.3 LTS Desktop - OS/kernel version: Linux tower 5.11.0-37-generic #41~20.04.2-Ubuntu SMP Fri Sep 24 09:06:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux - Architecture: amd64 - QEMU flavor: qemu-system-s390x - QEMU version: QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.17) - QEMU command line: See attached file 'command-line.txt' Emulated/Virtualized environment - Operating system: Ubuntu 20.04.3 LTS Server - OS/kernel version: Linux s390x-focal 5.4.0-88-generic #99-Ubuntu SMP Thu Sep 23 17:27:44 UTC 2021 s390x s390x s390x GNU/Linux - Architecture: s390x Description of problem Java crashes as shown below: $ java --version # # A fatal error has been detected by the Java Runtime Environment: # # SIGILL (0x4) at pc=3D0x000003ff9f5fe6f4, pid=3D6789, tid=3D6818 # # JRE version: (17.0+35) (build ) # Java VM: OpenJDK 64-Bit Server VM (17+35-snap, mixed mode, sharing, # tiered, compressed oops, compressed class ptrs, g1 gc, linux-s390x) # Problematic frame: # C [linux-vdso64.so.1+0x6f8] __kernel_getcpu+0x8 # # Core dump will be written. Default location: core.6789 (may not # exist) # # An error report file with more information is saved as: # /home/ubuntu/src/hs_err_pid6789.log # # Aborted (core dumped) Steps to reproduce Run any Java program to reproduce the problem. Because the 'openjdk' packages in Ubuntu run the 'java' command during installation, they hit the same error and fail to install. As an alternative, you can install the OpenJDK Snap package for the 's390x' architecture as follows: $ sudo snap install openjdk The OpenJDK Snap package has been tested to work on a real IBM/S390 8561 system, namely the IBM LinuxONE III LT1 at Marist College: Marist College Installs World=E2=80=99s First IBM LinuxONE III=E2=84=A2 https://www.marist.edu/-/marist-first-linuxone-iii Additional information See the following attached files: command-line.txt - the command-line used to start the virtual machine hs_err_pid6789.log - the log file resulting from 'java --version' ** Affects: qemu Importance: Undecided Status: New ** Attachment added: "the command-line used to start the virtual machine" https://bugs.launchpad.net/bugs/1945540/+attachment/5529210/+files/comma= nd-line.txt --=20 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1945540 Title: Java crashes on s390x VM with SIGILL/ILL_PRVOPC at '__kernel_getcpu+0x8' Status in QEMU: New Bug description: Host environment - Operating system: Ubuntu 20.04.3 LTS Desktop - OS/kernel version: Linux tower 5.11.0-37-generic #41~20.04.2-Ubuntu SMP Fri Sep 24 09:06:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux - Architecture: amd64 - QEMU flavor: qemu-system-s390x - QEMU version: QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.17) - QEMU command line: See attached file 'command-line.txt' Emulated/Virtualized environment - Operating system: Ubuntu 20.04.3 LTS Server - OS/kernel version: Linux s390x-focal 5.4.0-88-generic #99-Ubuntu SMP Thu Sep 23 17:27:44 UTC 2021 s390x s390x s390x GNU/Linux - Architecture: s390x Description of problem Java crashes as shown below: $ java --version # # A fatal error has been detected by the Java Runtime Environment: # # SIGILL (0x4) at pc=3D0x000003ff9f5fe6f4, pid=3D6789, tid=3D6818 # # JRE version: (17.0+35) (build ) # Java VM: OpenJDK 64-Bit Server VM (17+35-snap, mixed mode, sharing, # tiered, compressed oops, compressed class ptrs, g1 gc, linux-s390x) # Problematic frame: # C [linux-vdso64.so.1+0x6f8] __kernel_getcpu+0x8 # # Core dump will be written. Default location: core.6789 (may not # exist) # # An error report file with more information is saved as: # /home/ubuntu/src/hs_err_pid6789.log # # Aborted (core dumped) Steps to reproduce Run any Java program to reproduce the problem. Because the 'openjdk' packages in Ubuntu run the 'java' command during installation, they hit the same error and fail to install. As an alternative, you can install the OpenJDK Snap package for the 's390x' architecture as follows: $ sudo snap install openjdk The OpenJDK Snap package has been tested to work on a real IBM/S390 8561 system, namely the IBM LinuxONE III LT1 at Marist College: Marist College Installs World=E2=80=99s First IBM LinuxONE III=E2=84=A2 https://www.marist.edu/-/marist-first-linuxone-iii Additional information See the following attached files: command-line.txt - the command-line used to start the virtual machine hs_err_pid6789.log - the log file resulting from 'java --version' To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1945540/+subscriptions