https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246339

            Bug ID: 246339
           Summary: [Patch] SIGSEGV of linux java packaged with ADVA NMS
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: b...@freebsd.org
          Reporter: j...@sanren.ac.za

Created attachment 214321
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=214321&action=edit
patch to add LINUX_SYS_linux_getcpu to linux_vsyscall

The linux java packaged with the ADVA NMS SIGSEGV:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xffffffffff600800, pid=12763, tid=101256
#
# JRE version:  (11.0.4+11) (build )
# Java VM: OpenJDK 64-Bit Server VM (11.0.4+11, mixed mode, aot, sharing,
tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  0xffffffffff600800

That is when it is trying to execute the vsyscall linux_getcpu.

Just by adding it, even though it is not implemented, allow their java to
continue and the NMS is working.

The patch is simple:

--- sys/amd64/linux/linux_sysvec.c.orig 2019-11-01 02:01:48.000000000 +0200
+++ sys/amd64/linux/linux_sysvec.c      2020-05-09 20:43:42.010510000 +0200
@@ -667,7 +667,7 @@
 const unsigned long linux_vsyscall_vector[] = {
        LINUX_SYS_gettimeofday,
        LINUX_SYS_linux_time,
-                               /* getcpu not implemented */
+       LINUX_SYS_linux_getcpu, /* getcpu not implemented */
 };

 static int

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to