[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
This change to test/hotspot/jtreg/compiler/codecache/stress/UnexpectedDeoptimizationAllTest.java allows it to crash faster by requiring more threads. ** Patch added: "faster_crash.patch" https://bugs.launchpad.net/ubuntu/+source/openjdk-21/+bug/2095441/+attachment/5888752/+files/faster_crash.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
To reproduce the issue with upstream openjdk the build flags need to be patched to allow setting CPU flags using the attached patch: export VENDOR_FLAGS_CPU="-march=z13 -mtune=z15". The bug is reproducible on CPUs with 'gs' flag enabled, in release configuration. cat /proc/cpuinfo | more vendor_id : IBM/S390 # processors: 64 bogomips per cpu: 3241.00 max thread id : 1 features: esan3 zarch stfle msa ldisp eimm dfp edat etf3eh highgprs te vx vxd vxe >gs< vxe2 vxp sort dflt pcimio sie --- To reproduce run `` make reconfigure clean test TEST=test/hotspot/jtreg/compiler/codecache/stress/UnexpectedDeoptimizationAllTest.java CONF=linux-s390x-server-release `` note reconfigure/clean to apply VENDOR_FLAGS_CPU variables when building openjdk. ** Patch added: "flags.patch" https://bugs.launchpad.net/ubuntu/+source/openjdk-21/+bug/2095441/+attachment/5888750/+files/flags.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
** Merge proposal linked: https://code.launchpad.net/~vpa1977/ubuntu/+source/openjdk-25/+git/openjdk-25/+merge/487319 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
Upstream is updating code generation to z13[1] [1] https://bugs.openjdk.org/browse/JDK-8355570 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
To summarize this: Using the openjdk-25 upstream default, that is "-march=10", the build works fine, as well as the succeeding tests. However, the general defaults that we use in Ubuntu (as of today) are -arch=z13 and mtune=z15. Means this requires us to manually override the baseline, which can be done. But since z10 is pretty outdated (it's from 2008 !), this override should not be permanently, and we want to ask IBM to help bringing upstream to a more modern baseline (like for example z13). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
** Also affects: openjdk-25 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
I have got another set of JVM crashes in openjdk-25 during the early access rebuild for April 2025 Security Release[1]. The openjdk packaging uses following vendor CPU flags: "-march=z13 -mtune=z15". I have reset it to the openjdk default of "-march=z10" and was able to build opendjdk without the issue[2] [1] https://launchpadlibrarian.net/781025993/buildlog_ubuntu-plucky-s390x.openjdk-25_25~13ea-1~ppa15_BUILDING.txt.gz [2] https://launchpadlibrarian.net/781211760/buildlog_ubuntu-plucky-s390x.openjdk-25_25~13ea-1~ppa21_BUILDING.txt.gz -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
** Tags removed: server-todo -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
The confusing part is that openjdk-23 started building again without any workarounds. I will keep this bug around to track rolling them back. ** Changed in: openjdk-23 (Ubuntu) Status: Fix Released => New ** Changed in: ubuntu-z-systems Status: New => Invalid ** Changed in: qemu (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
** Tags added: server-todo -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
The issue can be worked around on the builder image by increasing the stack size: https://launchpad.net/~vpa1977/+archive/ubuntu/october-21/+build/30168454 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
Rebuilding openjdk using provided lp build image succeeded. The only difference is kernel versions on host: - test host 5.15.130 vs lp host 5.15.122 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
The kernel in build image is: Kernel: Linux 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:30:37 UTC 2024 s390x (s390x) The kernel in qemu image is: [1.740851] Linux version 5.15.0-130-generic (buildd@bos03-s390x-007) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #140-Ubuntu SMP Wed Dec 18 17:58:06 UTC 2024 (Ubuntu 5.15.0-130.140-generic 5.15.168) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
Hmm, maybe due to kernel differences? Or maybe because qemu is started in a different way (different options)? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
I have ran build inside jammy qemu vm on jammy host and the build succeeded. Probably there is something specific in the setup of launchpad builders that trigger the issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
This bug was fixed in the package openjdk-23 - 23.0.2+7-1ubuntu1 --- openjdk-23 (23.0.2+7-1ubuntu1) plucky; urgency=medium * d/rules: disable dtrace on jammy armhf (LP: #2091226). * d/t/problems.csv: fix typo - remove jdk prefix for sun/security/util/Debug/DebugOptions.java. -- Vladimir Petko Fri, 24 Jan 2025 11:58:07 +1300 ** Changed in: openjdk-23 (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
** Tags added: architecture-s39064 bugnameltc-211220 severity-high targetmilestone-inin2204 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
** Description changed: See https://launchpadlibrarian.net/771962104/buildlog_ubuntu- plucky-s390x.openjdk-23_23.0.2+7~us1-0ubuntu1~ppa2_BUILDING.txt.gz The issue is present on launchpad builder version of QEMU (jammy): qemu binaries: 1:6.2+dfsg-2ubuntu6.22 libvirt-daemon-driver-qemu: 8.0.0-1ubuntu7.10 + The crash (though different) is present in 1:8.2.2+ds-0ubuntu1.4 + (noble). + The issue is not present when testing on actual hardware. The issue is not present in 1:9.0.2+ds-4ubuntu5.1 (oracular) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
** Description changed: See https://launchpadlibrarian.net/771962104/buildlog_ubuntu- plucky-s390x.openjdk-23_23.0.2+7~us1-0ubuntu1~ppa2_BUILDING.txt.gz The issue is present on launchpad builder version of QEMU (jammy): - qemu binaries: 1:6.2+dfsg-2ubuntu6.22 + qemu binaries: 1:6.2+dfsg-2ubuntu6.22 libvirt-daemon-driver-qemu: 8.0.0-1ubuntu7.10 The issue is not present when testing on actual hardware. - The issue is not present in 1:9.0.2+ds-4ubuntu5.1 + The issue is not present in 1:9.0.2+ds-4ubuntu5.1 (oracular) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
** Description changed: See https://launchpadlibrarian.net/771962104/buildlog_ubuntu- plucky-s390x.openjdk-23_23.0.2+7~us1-0ubuntu1~ppa2_BUILDING.txt.gz - The issue is present on launchpad builder version of QEMU. + The issue is present on launchpad builder version of QEMU: + qemu binaries: 1:6.2+dfsg-2ubuntu6.22 + libvirt-daemon-driver-qemu: 8.0.0-1ubuntu7.10 The issue is not present when testing on actual hardware. The issue is not present in 1:9.0.2+ds-4ubuntu5.1 ** Description changed: See https://launchpadlibrarian.net/771962104/buildlog_ubuntu- plucky-s390x.openjdk-23_23.0.2+7~us1-0ubuntu1~ppa2_BUILDING.txt.gz - The issue is present on launchpad builder version of QEMU: - qemu binaries: 1:6.2+dfsg-2ubuntu6.22 + The issue is present on launchpad builder version of QEMU (jammy): + qemu binaries: 1:6.2+dfsg-2ubuntu6.22 libvirt-daemon-driver-qemu: 8.0.0-1ubuntu7.10 The issue is not present when testing on actual hardware. The issue is not present in 1:9.0.2+ds-4ubuntu5.1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
** Also affects: ubuntu-z-systems Importance: Undecided Status: New ** Changed in: ubuntu-z-systems Assignee: (unassigned) => bugproxy (bugproxy) ** Changed in: ubuntu-z-systems Importance: Undecided => High ** Tags added: s390x -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2095441] Re: S390x build of openjdk crashes with the segmentation fault
** Description changed: See https://launchpadlibrarian.net/771962104/buildlog_ubuntu- plucky-s390x.openjdk-23_23.0.2+7~us1-0ubuntu1~ppa2_BUILDING.txt.gz - The issue is present on launchpad build version of QEMU. + The issue is present on launchpad builder version of QEMU. - The issue is not present when testing on actual hardware. + The issue is not present when testing on actual hardware. The issue is not present in 1:9.0.2+ds-4ubuntu5.1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095441 Title: S390x build of openjdk crashes with the segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openjdk-21/+bug/2095441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs