[Bug 296831] java/openjdk25: HotSpot SIGSEGV in G1BarrierSet/ResolvedMethodTable when running Eclipse-4.40 on FreeBSD 15.1 (Wayland)

[email protected] Thu, 16 Jul 2026 08:16:18 +0000
Newsgroups gmane.os.freebsd.devel.java
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D296831

            Bug ID: 296831
           Summary: java/openjdk25: HotSpot SIGSEGV in
                    G1BarrierSet/ResolvedMethodTable when running
                    Eclipse-4.40 on FreeBSD 15.1 (Wayland)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
          Assignee: [email protected]
             Flags: maintainer-feedback?([email protected])
 Attachment #272899 text/plain
         mime type:

Created attachment 272899
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D272899&action=
=3Dedit
hs_err

Environment

OS: FreeBSD 15.1-RELEASE-p1 amd64
CPU: Intel i7-1360P
JDK: OpenJDK Runtime Environment 25.0.3+9-freebsd-1
App: Eclipse Platform 4.40 (SWT GTK)
Display: Wayland (WAYLAND_DISPLAY=3Dwayland-1)

Description:

I can reliably trigger JVM crashes with Eclipse on FreeBSD using OpenJDK
25.0.3:

JVM crash (this report) in HotSpot runtime:

SIGSEGV in libjvm.so
problematic frame:
AccessInternal::PostRuntimeDispatch<...G1BarrierSet...>::oop_access_barrier
stack includes: ResolvedMethodTable::find_method
java_lang_invoke_ResolvedMethodName::find_resolved_method
MethodHandles::resolve_MemberName
si_addr =3D 0x00000cf900000000 (invalid pointer-like value)
Before the crash, hs_err frequently logs multiple MethodHandle-related link=
age
anomalies:

NoSuchMethodError for java.lang.invoke.*$Holder.*
IncompatibleClassChangeError: Found class java.lang.Object, but interface w=
as
expected
This suggests corruption/inconsistency in MethodHandle resolution/runtime
metadata path, possibly JIT/runtime related on this port/version.

How to Reproduce

Install openjdk25, eclipse, SWT/GTK stack on FreeBSD 15.1.
Start Eclipse under Wayland.
Use UI actions involving SWT browser/dialog disposal/key traversal (ESC clo=
se,
compare/editor interactions, etc.).
After some runtime (minutes), JVM crashes with hs_err and core.

(gdb) bt
#0  0x0000000823694cca in thr_kill () at /lib/libsys.so.7
#1  0x000000082261e954 in raise () at /lib/libc.so.7
#2  0x00000008226d0919 in abort () at /lib/libc.so.7
#3  0x0000000827653411 in os::abort(bool, void const*, void const*) () at
/usr/local/openjdk25/lib/server/libjvm.so
#4  0x000000082796a5df in VMError::report_and_die(int, char const*, char
const*, __va_list_tag*, Thread*, unsigned char*, void const*, void const*, =
char
const*, int, unsigned long) () at /usr/local/openjdk25/lib/server/libjvm.so
#5  0x0000000827969b74 in VMError::report_and_die(Thread*, unsigned int,
unsigned char*, void const*, void const*, char const*, ...) ()
    at /usr/local/openjdk25/lib/server/libjvm.so
#6  0x000000082796a907 in VMError::report_and_die(Thread*, unsigned int,
unsigned char*, void const*, void const*) ()
    at /usr/local/openjdk25/lib/server/libjvm.so
#7  0x000000082796ae42 in crash_handler(int, __siginfo*, void*) () at
/usr/local/openjdk25/lib/server/libjvm.so
#8  0x0000000824b1245a in ??? () at /lib/libthr.so.3
#9  0x0000000824b11a5b in ??? () at /lib/libthr.so.3
#10 0x000000082120e2d3 in <signal handler called> ()
#11 0x00000008274f00e8 in
LogConfiguration::describe_current_configuration(outputStream*) () at
/usr/local/openjdk25/lib/server/libjvm.so
#12 0x0000000827967b70 in VMError::report(outputStream*, bool) () at
/usr/local/openjdk25/lib/server/libjvm.so
#13 0x000000082796a119 in VMError::report_and_die(int, char const*, char
const*, __va_list_tag*, Thread*, unsigned char*, void const*, void const*, =
char
const*, int, unsigned long) () at /usr/local/openjdk25/lib/server/libjvm.so
#14 0x0000000827969b74 in VMError::report_and_die(Thread*, unsigned int,
unsigned char*, void const*, void const*, char const*, ...) ()
    at /usr/local/openjdk25/lib/server/libjvm.so
#15 0x000000082796a907 in VMError::report_and_die(Thread*, unsigned int,
unsigned char*, void const*, void const*) ()
    at /usr/local/openjdk25/lib/server/libjvm.so
#16 0x00000008277e37bc in JVM_handle_bsd_signal () at
/usr/local/openjdk25/lib/server/libjvm.so
#17 0x0000000b312b21ab in WTF::jscSignalHandler(int, __siginfo*, void*) () =
at
/usr/local/lib/libjavascriptcoregtk-4.1.so.0
#18 0x0000000824b1245a in ??? () at /lib/libthr.so.3
#19 0x0000000824b11a5b in ??? () at /lib/libthr.so.3
#20 0x000000082120e2d3 in <signal handler called> ()
#21 0x0000000b53f38a3c in ??? () at /usr/local/lib/libgallium-26.1.3.so
#22 0x0000000b53f38a4d in ??? () at /usr/local/lib/libgallium-26.1.3.so
#23 0x0000000b53f38a59 in ??? () at /usr/local/lib/libgallium-26.1.3.so
#24 0x0000000b53f38a4d in ??? () at /usr/local/lib/libgallium-26.1.3.so
#25 0x0000000b53f38a59 in ??? () at /usr/local/lib/libgallium-26.1.3.so
#26 0x0000000b53f38a4d in ??? () at /usr/local/lib/libgallium-26.1.3.so
#27 0x00000008226d0d7f in __cxa_finalize () at /lib/libc.so.7
#28 0x00000008226d13bc in exit () at /lib/libc.so.7
#29 0x00000008276534e9 in permit_forbidden_function::exit(int) () at
/usr/local/openjdk25/lib/server/libjvm.so
--Type <RET> for more, q to quit, c to continue without paging--
#30 0x0000000827651c59 in os::exit(int) () at
/usr/local/openjdk25/lib/server/libjvm.so
#31 0x0000000827228bf9 in vm_direct_exit(int) () at
/usr/local/openjdk25/lib/server/libjvm.so
#32 0x000000082796ffae in VM_Exit::doit() () at
/usr/local/openjdk25/lib/server/libjvm.so
#33 0x000000082796f3d5 in VM_Operation::evaluate() () at
/usr/local/openjdk25/lib/server/libjvm.so
#34 0x00000008279834d7 in VMThread::evaluate_operation(VM_Operation*) () at
/usr/local/openjdk25/lib/server/libjvm.so
#35 0x0000000827983b98 in VMThread::inner_execute(VM_Operation*) () at
/usr/local/openjdk25/lib/server/libjvm.so
#36 0x00000008279831a7 in VMThread::run() () at
/usr/local/openjdk25/lib/server/libjvm.so
#37 0x00000008278ed4e2 in Thread::call_run() () at
/usr/local/openjdk25/lib/server/libjvm.so
#38 0x0000000827649e12 in thread_native_entry(Thread*) () at
/usr/local/openjdk25/lib/server/libjvm.so
#39 0x0000000824b08e41 in ??? () at /lib/libthr.so.3
#40 0x0000000000000000 in ??? ()

Workarounds observed

add -XX:+UseShenandoahGC -XX:ShenandoahGCMode=3Dgenerational, not found cra=
shing.

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