clang-13 built java/openjdk11 on recent stable/12

From: Jonathan Chen <jonc_at_chen.org.nz>
Date: Mon, 20 Dec 2021 01:44:28 UTC
Hi,

I updated to stable/12 on 15-Dec, and it appears that with the switch
to clang-13, java/openjdk11 is not quite as stable as one built with
clang-12. When I attempt to build java/eclipse, I keep getting a
seg-fault. It's quite a big file, so I've only attached the first part
to the end of this email. Please let me know if if the larger file is
required.

Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000802cbee66, pid=60971, tid=142096
#
# JRE version: OpenJDK Runtime Environment (11.0.13+8) (build 11.0.13+8-1)
# Java VM: OpenJDK 64-Bit Server VM (11.0.13+8-1, mixed mode, tiered,
compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# V  [libjvm.so+0xebee66]  JVM_RaiseSignal+0x3d15c6
#
# Core dump will be written. Default location:
/construction/xports/java/eclipse/work/eclipse.platform.releng.aggregator-R4_16/rt.equinox.bundles/bundles/org.eclipse.equinox.preferences/java.core
#
# 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
#

---------------  S U M M A R Y ------------

Command Line: /construction/xports/java/eclipse/work/eclipse-maven-repo-4.16/p2/osgi/bundle/org.eclipse.equinox.launcher/1.5.700.v20200207-2156/org.eclipse.equinox.launcher-1.5.700.v20200207-2156.jar
-install /construction/xports/java/eclipse/work/eclipse.platform.releng.aggregator-R4_16/rt.equinox.bundles/bundles/org.eclipse.equinox.preferences/target/eclipserun-work
-configuration /construction/xports/java/eclipse/work/eclipse.platform.releng.aggregator-R4_16/rt.equinox.bundles/bundles/org.eclipse.equinox.preferences/target/eclipserun-work/configuration
-data target/apibuild-workspace -application
org.eclipse.ant.core.antRunner -buildfile target/.apibuild.xml

Host: AMD Ryzen 5 2600X Six-Core Processor            amd64, 12 cores,
15G, FreeBSD 13.0-STABLE
Time: Mon Dec 20 01:33:51 2021 UTC elapsed time: 2.659902 seconds (0d 0h 0m 2s)

---------------  T H R E A D  ---------------

Current thread (0x000000080327d800):  JavaThread "Equinox resolver
thread - Equinox Container: a9c921fa-7903-47f8-b4ef-43d84e26b5bd"
daemon [_thread_in_vm, id=142096,
stack(0x00007fffde9e9000,0x00007fffdeae9000)]

Stack: [0x00007fffde9e9000,0x00007fffdeae9000],
sp=0x00007fffdeae85b0,  free space=1021k
Native frames: (J=compiled Java code, A=aot compiled Java code,
j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xebee66]  JVM_RaiseSignal+0x3d15c6
V  [libjvm.so+0xebebef]  JVM_RaiseSignal+0x3d134f
V  [libjvm.so+0x9fc973]  AsyncGetCallTrace+0xd0963
V  [libjvm.so+0x9fcb90]  AsyncGetCallTrace+0xd0b80
V  [libjvm.so+0xa146e0]  AsyncGetCallTrace+0xe86d0
j  java.util.concurrent.SynchronousQueue.poll(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;+30
java.base@11.0.13
j  java.util.concurrent.ThreadPoolExecutor.getTask()Ljava/lang/Runnable;+132
java.base@11.0.13
j  java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+26
java.base@11.0.13
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 java.base@11.0.13
j  java.lang.Thread.run()V+11 java.base@11.0.13
v  ~StubRoutines::call_stub
V  [libjvm.so+0xa1d2e3]  AsyncGetCallTrace+0xf12d3
V  [libjvm.so+0xa1c604]  AsyncGetCallTrace+0xf05f4
V  [libjvm.so+0xa1c6b2]  AsyncGetCallTrace+0xf06a2
V  [libjvm.so+0xad4a10]  JVM_StartThread+0x430
V  [libjvm.so+0xef431c]  JVM_RaiseSignal+0x406a7c
V  [libjvm.so+0xef1bb8]  JVM_RaiseSignal+0x404318
V  [libjvm.so+0xd3ebc9]  JVM_RaiseSignal+0x251329
C  [libthr.so.3+0x1083a]  operator->+0x8ca

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.util.concurrent.SynchronousQueue.poll(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;+30
java.base@11.0.13
j  java.util.concurrent.ThreadPoolExecutor.getTask()Ljava/lang/Runnable;+132
java.base@11.0.13
j  java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+26
java.base@11.0.13
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 java.base@11.0.13
j  java.lang.Thread.run()V+11 java.base@11.0.13
v  ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr:
0x0000000000000000