openjdk-23 fails to build in jammy armhf with dtrace enabled

Bug #2091226 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-21 (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned
openjdk-23 (Ubuntu)
Fix Released
Undecided
Unassigned
openjdk-lts (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

The build failure[1]:

Executing: [/usr/bin/arm-linux-gnueabihf-g++-12 -MMD -MF /<<PKGBUILDDIR>>/build/hotspot/variant-zero/libjvm/objs/codeCache.d.tmp -I/<<PKGBUILDDIR>>/build/hotspot/variant-zero/libjvm/objs/precompiled -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -D_REENTRANT -pipe -fno-rtti -fno-exceptions -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector -std=c++14 -DLIBC=default -DLINUX -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wformat=2 -Wpointer-arith -Wsign-compare -Wunused-function -Wundef -Wunused-value -Wreturn-type -Wtrampolines -Woverloaded-virtual -Wreorder -fPIC -fmacro-prefix-map=/<<PKGBUILDDIR>>/= -DVM_LITTLE_ENDIAN -fsigned-char -Wno-psabi -DJDK_ARCH_ABI_PROP_NAME='""' -DARM -fno-lifetime-dse -Wno-format-zero-length -Wtype-limits -Wuninitialized -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -fno-stack-protector -Wno-deprecated-declarations -DNDEBUG -DPRODUCT -DTARGET_ARCH_zero -DINCLUDE_SUFFIX_OS=_linux -DINCLUDE_SUFFIX_CPU=_zero -DINCLUDE_SUFFIX_COMPILER=_gcc -DTARGET_COMPILER_gcc -DARM32 -DHOTSPOT_LIB_ARCH='"arm"' -DZERO -DZERO_LIBARCH='"arm"' -DDTRACE_ENABLED -DINCLUDE_JVMCI=0 -DINCLUDE_ZGC=0 -DINCLUDE_SHENANDOAHGC=0 -DINCLUDE_JFR=0 -I/<<PKGBUILDDIR>>/src/hotspot/share -I/<<PKGBUILDDIR>>/src/hotspot/os/linux -I/<<PKGBUILDDIR>>/src/hotspot/os/posix -I/<<PKGBUILDDIR>>/src/hotspot/cpu/zero -I/<<PKGBUILDDIR>>/src/hotspot/os_cpu/linux_zero -I/<<PKGBUILDDIR>>/build/hotspot/variant-zero/gensrc -I/<<PKGBUILDDIR>>/src/hotspot/share/precompiled -I/<<PKGBUILDDIR>>/src/hotspot/share/include -I/<<PKGBUILDDIR>>/src/hotspot/os/posix/include -I/<<PKGBUILDDIR>>/build/support/modules_include/java.base -I/<<PKGBUILDDIR>>/build/support/modules_include/java.base/linux -I/<<PKGBUILDDIR>>/src/java.base/share/native/libjimage -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -fno-stack-protector -Wno-deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2 -DOVERRIDE_LIBPATH='"/usr/lib/arm-linux-gnueabihf/jni:/lib/arm-linux-gnueabihf:/usr/lib/arm-linux-gnueabihf:/usr/lib/jni:/lib:/usr/lib"' -I/<<PKGBUILDDIR>>/src/hotspot/share -I/<<PKGBUILDDIR>>/src/hotspot/os/linux -I/<<PKGBUILDDIR>>/src/hotspot/os/posix -I/<<PKGBUILDDIR>>/src/hotspot/cpu/zero -I/<<PKGBUILDDIR>>/src/hotspot/os_cpu/linux_zero -I/<<PKGBUILDDIR>>/build/hotspot/variant-zero/gensrc -I/<<PKGBUILDDIR>>/build/support/modules_include/java.base -I/<<PKGBUILDDIR>>/src/java.base/unix/native/include -I/<<PKGBUILDDIR>>/src/java.base/share/native/include -g -gdwarf-4 -fdebug-prefix-map=/<<PKGBUILDDIR>>/= -fdebug-prefix-map=/usr/include/=/usr/include/ -fdebug-prefix-map=/usr/lib/gcc/arm-linux-gnueabihf/12/include/=/usr/local/gcc_include/ -fdebug-prefix-map=/usr/include/c++/12/=/usr/local/gxx_include/ -fdebug-prefix-map=/<<PKGBUILDDIR>>/build/= -Wno-unused-parameter -Wno-unused -Wno-array-bounds -Wno-comment -Wno-delete-non-virtual-dtor -Wno-empty-body -Wno-implicit-fallthrough -Wno-int-in-bool-context -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-shift-negative-value -Wno-unknown-pragmas -O3 -c -o /<<PKGBUILDDIR>>/build/hotspot/variant-zero/libjvm/objs/codeCache.o /<<PKGBUILDDIR>>/src/hotspot/share/code/codeCache.cpp -frandom-seed="codeCache.cpp"]
Preprocessed source stored into /tmp/ccZ9I5Iu.out file, please attach this to your bugreport.
=== BEGIN GCC DUMP ===
21177: // Target: arm-linux-gnueabihf
21177: // Configured with: ../src/configure -v --with-pkgversion='Ubuntu 12.3.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-12/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-12 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
21177: // Thread model: posix
21177: // Supported LTO compression algorithms: zlib zstd
21177: // gcc version 12.3.0 (Ubuntu 12.3.0-1ubuntu1~22.04)
21177: //
21177: // during RTL pass: mach
21177: // /<<PKGBUILDDIR>>/src/hotspot/share/services/classLoadingService.cpp: In static member function ‘static void ClassLoadingService::notify_class_unloaded(InstanceKlass*)’:
21177: // /<<PKGBUILDDIR>>/src/hotspot/share/services/classLoadingService.cpp:243:1: internal compiler error: in create_fix_barrier, at config/arm/arm.cc:18042
21177: // 243 | }
21177: // | ^
21177: // Please submit a full bug report, with preprocessed source (by using -freport-bug).
21177: // See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
21177:
21177: // /usr/lib/gcc/arm-linux-gnueabihf/12/cc1plus -quiet -I /<<PKGBUILDDIR>>/build/hotspot/variant-zero/libjvm/objs/precompiled -I /<<PKGBUILDDIR>>/src/hotspot/share -I /<<PKGBUILDDIR>>/src/hotspot/os/linux -I /<<PKGBUILDDIR>>/src/hotspot/os/posix -I /<<PKGBUILDDIR>>/src/hotspot/cpu/zero -I /<<PKGBUILDDIR>>/src/hotspot/os_cpu/linux_zero -I /<<PKGBUILDDIR>>/build/hotspot/variant-zero/gensrc -I /<<PKGBUILDDIR>>/src/hotspot/share/precompiled -I /<<PKGBUILDDIR>>/src/hotspot/share/include -I /<<PKGBUILDDIR>>/src/hotspot/os/posix/include -I /<<PKGBUILDDIR>>/build/support/modules_include/java.base -I /<<PKGBUILDDIR>>/build/support/modules_include/java.base/linux -I /<<PKGBUILDDIR>>/src/java.base/share/native/libjimage -I /<<PKGBUILDDIR>>/src/hotspot/share -I /<<PKGBUILDDIR>>/src/hotspot/os/linux -I /<<PKGBUILDDIR>>/src/hotspot/os/posix -I /<<PKGBUILDDIR>>/src/hotspot/cpu/zero -I /<<PKGBUILDDIR>>/src/hotspot/os_cpu/linux_zero -I /<<PKGBUILDDIR>>/build/hotspot/variant-zero/gensrc -I /<<PKGBUILDDIR>>/build/support/modules_include/java.base -I /<<PKGBUILDDIR>>/src/java.base/unix/native/include -I /<<PKGBUILDDIR>>/src/java.base/share/native/include -imultilib . -imultiarch arm-linux-gnueabihf -MMD /<<PKGBUILDDIR>>/build/hotspot/variant-zero/libjvm/objs/classLoadingService.d -MF /<<PKGBUILDDIR>>/build/hotspot/variant-zero/libjvm/objs/classLoadingService.d.tmp -MQ /<<PKGBUILDDIR>>/build/hotspot/variant-zero/libjvm/objs/classLoadingService.o -D_GNU_SOURCE -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -D _GNU_SOURCE -D _REENTRANT -D LIBC=default -D LINUX -D _FILE_OFFSET_BITS=64 -D VM_LITTLE_ENDIAN -D JDK_ARCH_ABI_PROP_NAME="" -D ARM -D _FORTIFY_SOURCE=2 -D NDEBUG -D PRODUCT -D TARGET_ARCH_zero -D INCLUDE_SUFFIX_OS=_linux -D INCLUDE_SUFFIX_CPU=_zero -D INCLUDE_SUFFIX_COMPILER=_gcc -D TARGET_COMPILER_gcc -D ARM32 -D HOTSPOT_LIB_ARCH="arm" -D ZERO -D ZERO_LIBARCH="arm" -D DTRACE_ENABLED -D INCLUDE_JVMCI=0 -D INCLUDE_ZGC=0 -D INCLUDE_SHENANDOAHGC=0 -D INCLUDE_JFR=0 -D _FORTIFY_SOURCE=2 -D _FORTIFY_SOURCE=2 -D OVERRIDE_LIBPATH="/usr/lib/arm-linux-gnueabihf/jni:/lib/arm-linux-gnueabihf:/usr/lib/arm-linux-gnueabihf:/usr/lib/jni:/lib:/usr/lib" /<<PKGBUILDDIR>>/src/hotspot/share/services/classLoadingService.cpp -quiet -dumpdir /<<PKGBUILDDIR>>/build/hotspot/variant-zero/libjvm/objs/ -dumpbase classLoadingService.cpp -dumpbase-ext .cpp -mfloat-abi=hard -mtls-dialect=gnu -mthumb -mlibarch=armv7-a+fp -march=armv7-a+fp -g -g -g -gdwarf-4 -O3 -Wall -Wextra -Wformat=2 -Wpointer-arith -Wsign-compare -Wunused-function -Wundef -Wunused-value -Wreturn-type -Wtrampolines -Woverloaded-virtual -Wreorder -Wno-psabi -Wno-format-zero-length -Wtype-limits -Wuninitialized -Wformat=1 -Wformat=1 -Wno-deprecated-declarations -Wdate-time -Wno-unused-parameter -Wno-unused -Wno-array-bounds -Wno-comment -Wno-delete-non-virtual-dtor -Wno-empty-body -Wimplicit-fallthrough=0 -Wno-int-in-bool-context -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-shift-negative-value -Wno-unknown-pragmas -std=c++14 -fno-rtti -fno-exceptions -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer -fPIC -fmacro-prefix-map=/<<PKGBUILDDIR>>/= -fsigned-char -fno-lifetime-dse -ffile-prefix-map=/<<PKGBUILDDIR>>=. -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fno-stack-protector -fdebug-prefix-map=/<<PKGBUILDDIR>>/= -fdebug-prefix-map=/usr/include/=/usr/include/ -fdebug-prefix-map=/usr/lib/gcc/arm-linux-gnueabihf/12/include/=/usr/local/gcc_include/ -fdebug-prefix-map=/usr/include/c++/12/=/usr/local/gxx_include/ -fdebug-prefix-map=/<<PKGBUILDDIR>>/build/= -frandom-seed=classLoadingService.cpp -o - -frandom-seed=0 -fdump-noaddr
21177:
21177: # 0 "/<<PKGBUILDDIR>>/src/hotspot/share/services/classLoadingService.cpp"
21177: # 1 "/<<PKGBUILDDIR>>/make/hotspot//"
21177: # 0 "<built-in>"
21177: # 0 "<command-line>"
21177: # 1 "/usr/include/stdc-predef.h" 1 3 4
21177: # 0 "<command-line>" 2
21177: # 1 "/<<PKGBUILDDIR>>/src/hotspot/share/services/classLoadingService.cpp"
21177: # 25 "/<<PKGBUILDDIR>>/src/hotspot/share/services/classLoadingService.cpp"
21177: # 1 "/<<PKGBUILDDIR>>/src/hotspot/share/precompiled/precompiled.hpp" 1
21177: # 34 "/<<PKGBUILDDIR>>/src/hotspo
.....

[1] https://launchpadlibrarian.net/762419461/buildlog_ubuntu-jammy-armhf.openjdk-23_23.0.1+11-1~22.04_BUILDING.txt.gz

Related branches

CVE References

Vladimir Petko (vpa1977)
no longer affects: openjdk-23 (Ubuntu Jammy)
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 :

Note, the crash still occurs with gcc 12.4

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-21 - 21.0.6+7-1~24.10.1

---------------
openjdk-21 (21.0.6+7-1~24.10.1) oracular-security; urgency=high

  * Upload to Ubuntu 24.10.
  * d/rules: disable dtrace on jammy armhf (LP: #2091226).
  * d/t/problems.csv: synchronize problem list with openjdk-25. The
    problemlist did not include issues from October 2024 update.

openjdk-21 (21.0.6+7-1) unstable; urgency=high

  * OpenJDK 21.0.6 release, build 7. Release notes:
    https://mail.openjdk.org/pipermail/jdk-updates-dev/2025-January/040828.html
    - CVEs:
      + CVE-2025-21502 - 8330045: Enhance array handling.

  [ Vladimir Petko ]
  * d/rules: disable c2 compiler for boot jdk on s390x to avoid ftbfs.
  * d/p/jdk-8347014-proposed.patch: Define MAP_FIXED_NOREPLACE_value for alpha.
  * d/rules: Add -fno-delete-null-pointer-checks for armhf and armel.
    The flag was removed in JDK-8316893 causing JVM lockup.
  * d/rules: Dump complete hs_err_pid and replay_pid logs to stdout.
  * d/rules: create link to jquery-3.7.1.min.js instead of jquery-3.6.1.min.js.
    Also link jquery-ui.min.{js,css} (LP: #2095455).
  * d/{watch,copyright}: regenerate.

  [ Matthias Klose ]
  * Try to work-around a ftbfs on alpha. For now we keep the
    zero-alpha-workaround patch enabled instead of jdk-8347014-proposed.
  * d/rules: Also dump logs for zero builds and for build failures.

 -- Vladimir Petko <email address hidden> Fri, 24 Jan 2025 11:52:53 +1300

Changed in openjdk-21 (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-21 - 21.0.6+7-1~24.04.1

---------------
openjdk-21 (21.0.6+7-1~24.04.1) noble-security; urgency=high

  * Upload to Ubuntu 24.04.
  * d/rules: disable dtrace on jammy armhf (LP: #2091226).
  * d/t/problems.csv: synchronize problem list with openjdk-25. The
    problemlist did not include issues from October 2024 update.

openjdk-21 (21.0.6+7-1) unstable; urgency=high

  * OpenJDK 21.0.6 release, build 7. Release notes:
    https://mail.openjdk.org/pipermail/jdk-updates-dev/2025-January/040828.html
    - CVEs:
      + CVE-2025-21502 - 8330045: Enhance array handling.

  [ Vladimir Petko ]
  * d/rules: disable c2 compiler for boot jdk on s390x to avoid ftbfs.
  * d/p/jdk-8347014-proposed.patch: Define MAP_FIXED_NOREPLACE_value for alpha.
  * d/rules: Add -fno-delete-null-pointer-checks for armhf and armel.
    The flag was removed in JDK-8316893 causing JVM lockup.
  * d/rules: Dump complete hs_err_pid and replay_pid logs to stdout.
  * d/rules: create link to jquery-3.7.1.min.js instead of jquery-3.6.1.min.js.
    Also link jquery-ui.min.{js,css} (LP: #2095455).
  * d/{watch,copyright}: regenerate.

  [ Matthias Klose ]
  * Try to work-around a ftbfs on alpha. For now we keep the
    zero-alpha-workaround patch enabled instead of jdk-8347014-proposed.
  * d/rules: Also dump logs for zero builds and for build failures.

 -- Vladimir Petko <email address hidden> Fri, 24 Jan 2025 11:52:35 +1300

Changed in openjdk-21 (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-21 - 21.0.6+7-1~22.04.1

---------------
openjdk-21 (21.0.6+7-1~22.04.1) jammy-security; urgency=high

  * Upload to Ubuntu 22.04.
  * d/rules: disable dtrace on jammy armhf (LP: #2091226).
  * d/t/problems.csv: synchronize problem list with openjdk-25. The
    problemlist did not include issues from October 2024 update.

openjdk-21 (21.0.6+7-1) unstable; urgency=high

  * OpenJDK 21.0.6 release, build 7. Release notes:
    https://mail.openjdk.org/pipermail/jdk-updates-dev/2025-January/040828.html
    - CVEs:
      + CVE-2025-21502 - 8330045: Enhance array handling.

  [ Vladimir Petko ]
  * d/rules: disable c2 compiler for boot jdk on s390x to avoid ftbfs.
  * d/p/jdk-8347014-proposed.patch: Define MAP_FIXED_NOREPLACE_value for alpha.
  * d/rules: Add -fno-delete-null-pointer-checks for armhf and armel.
    The flag was removed in JDK-8316893 causing JVM lockup.
  * d/rules: Dump complete hs_err_pid and replay_pid logs to stdout.
  * d/rules: create link to jquery-3.7.1.min.js instead of jquery-3.6.1.min.js.
    Also link jquery-ui.min.{js,css} (LP: #2095455).
  * d/{watch,copyright}: regenerate.

  [ Matthias Klose ]
  * Try to work-around a ftbfs on alpha. For now we keep the
    zero-alpha-workaround patch enabled instead of jdk-8347014-proposed.
  * d/rules: Also dump logs for zero builds and for build failures.

 -- Vladimir Petko <email address hidden> Fri, 24 Jan 2025 11:52:17 +1300

Changed in openjdk-21 (Ubuntu Jammy):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-lts - 11.0.26+4-1ubuntu1~24.10

---------------
openjdk-lts (11.0.26+4-1ubuntu1~24.10) oracular-security; urgency=medium

  * Upload to Ubuntu 24.10.
  * d/rules: disable dtrace on jammy armhf (LP: #2091226).
  * d/rules: point --with-jtreg to /usr/share/jtreg

openjdk-lts (11.0.26+4-1ubuntu1) plucky; urgency=medium

  * OpenJDK 11.0.26 release, build 4. Release notes:
    https://mail.openjdk.org/pipermail/jdk-updates-dev/2025-January/040826.html

    - CVEs:
      + CVE-2025-21502 - 8330045: Enhance array handling.

  * d/rules: Dump complete hs_err_pid and replay_pid logs to stdout.
  * d/t/problems.csv: Add openjdk-24 and openjdk-25 to the problems.csv.
  * d/{copyright, watch}: regenerate.

  [ Matthias Klose ]
  * d/rules: Also dump logs for zero builds and for build failures.

 -- Vladimir Petko <email address hidden> Fri, 24 Jan 2025 11:36:30 +1300

Changed in openjdk-lts (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-lts - 11.0.26+4-1ubuntu1~22.04

---------------
openjdk-lts (11.0.26+4-1ubuntu1~22.04) jammy-security; urgency=medium

  * Upload to Ubuntu 22.04.
  * d/rules: disable dtrace on jammy armhf (LP: #2091226).
  * d/rules: point --with-jtreg to /usr/share/jtreg

openjdk-lts (11.0.26+4-1ubuntu1) plucky; urgency=medium

  * OpenJDK 11.0.26 release, build 4. Release notes:
    https://mail.openjdk.org/pipermail/jdk-updates-dev/2025-January/040826.html

    - CVEs:
      + CVE-2025-21502 - 8330045: Enhance array handling.

  * d/rules: Dump complete hs_err_pid and replay_pid logs to stdout.
  * d/t/problems.csv: Add openjdk-24 and openjdk-25 to the problems.csv.
  * d/{copyright, watch}: regenerate.

  [ Matthias Klose ]
  * d/rules: Also dump logs for zero builds and for build failures.

 -- Vladimir Petko <email address hidden> Fri, 24 Jan 2025 11:35:54 +1300

Changed in openjdk-lts (Ubuntu Jammy):
status: New → Fix Released
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.