S390x build of openjdk crashes with the segmentation fault

Bug #2095441 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Invalid
High
bugproxy
openjdk-21 (Ubuntu)
New
Undecided
Unassigned
openjdk-23 (Ubuntu)
New
Undecided
Unassigned
openjdk-25 (Ubuntu)
New
Undecided
Unassigned
qemu (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

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)

Vladimir Petko (vpa1977)
description: updated
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
assignee: nobody → bugproxy (bugproxy)
importance: Undecided → High
tags: added: s390x
Vladimir Petko (vpa1977)
description: updated
description: updated
Vladimir Petko (vpa1977)
description: updated
Vladimir Petko (vpa1977)
description: updated
bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-211220 severity-high targetmilestone-inin2204
Revision history for this message
Launchpad Janitor (janitor) wrote :

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 <email address hidden> Fri, 24 Jan 2025 11:58:07 +1300

Changed in openjdk-23 (Ubuntu):
status: New → Fix Released
Revision history for this message
Vladimir Petko (vpa1977) wrote :

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.

Revision history for this message
Frank Heimes (fheimes) wrote :

Hmm, maybe due to kernel differences?
Or maybe because qemu is started in a different way (different options)?

Revision history for this message
Vladimir Petko (vpa1977) wrote (last edit ):

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)

Rest of the build environment matches.

Tried with focal cloud image (kernel Linux ubu-vm-08 5.4.0-205-generic #225-Ubuntu SMP Fri Jan 10 22:22:54 UTC 2025 s390x s390x s390x GNU/Linux) - build passes

Revision history for this message
Vladimir Petko (vpa1977) wrote :

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

Revision history for this message
Vladimir Petko (vpa1977) wrote :

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

tags: added: server-todo
Revision history for this message
Vladimir Petko (vpa1977) wrote :

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
tags: removed: server-todo
Revision history for this message
Vladimir Petko (vpa1977) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.