[Bug 260319] java/openjdk11: various segfaults with llvm13

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 13 Aug 2022 20:56:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260319

--- Comment #32 from Jonathan Chen <jonc@chen.org.nz> ---
I am seeing segfaults when using openjdk11 packages built since the Aug 6
commit of 591a784f324b7d8c45596d758b4c0893626bdbef :
   java/openjdk{8,11}: Remove dependency on devel/llvm12 which is no longer
necessary

This is on a recent copy of 13-stable, stable/13-n252080-3ea8c7ad90f: Wed Aug
10 12:24:18 NZST 2022, with clang-14. I also had to apply the patch from PR
265687 to get openjdk11 to build.

Currently, when building java/eclipse, I get a segfault with:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000015597d8b9178, pid=32238, tid=119308
#
# JRE version: OpenJDK Runtime Environment (11.0.16+8) (build 11.0.16+8-1)
# Java VM: OpenJDK 64-Bit Server VM (11.0.16+8-1, mixed mode, tiered,
compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# V  [libjvm.so+0xeb9178]  JVM_RaiseSignal+0x3ca628
#
# Core dump will be written. Default location:
/construction/xports/java/eclipse/work/eclipse.platform.releng.aggregator-R4_24/java.core
#
# An error report file with more information is saved as:
#
/construction/xports/java/eclipse/work/eclipse.platform.releng.aggregator-R4_24/hs_err_pid32238.log
Compiled method (c1)  322509 23471   !   3      
org.eclipse.core.internal.jobs.JobManager::startJob (187 bytes)
 total in heap  [0x00001559939a3e10,0x00001559939a5ea8] = 8344
 relocation     [0x00001559939a3f88,0x00001559939a4120] = 408
 main code      [0x00001559939a4120,0x00001559939a55e0] = 5312
 stub code      [0x00001559939a55e0,0x00001559939a56b0] = 208
 oops           [0x00001559939a56b0,0x00001559939a56c0] = 16
 metadata       [0x00001559939a56c0,0x00001559939a5738] = 120
 scopes data    [0x00001559939a5738,0x00001559939a5ae0] = 936
 scopes pcs     [0x00001559939a5ae0,0x00001559939a5d80] = 672
 dependencies   [0x00001559939a5d80,0x00001559939a5d90] = 16
 handler table  [0x00001559939a5d90,0x00001559939a5e68] = 216
 nul chk table  [0x00001559939a5e68,0x00001559939a5ea8] = 64
#
# If you would like to submit a bug report, please visit:
#  
https://bugs.freebsd.org/bugzilla/enter_bug.cgi?product=Ports%20%26%20Packages&component=Individual%20Port(s)&short_desc=java/o
#
*** Signal 6

-- 
You are receiving this mail because:
You are the assignee for the bug.