Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 May 2020 19:21:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 246339] [Patch] SIGSEGV of linux java packaged with ADVA NMS
Message-ID:  <bug-246339-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246339

            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: bugs@FreeBSD.org
          Reporter: john@sanren.ac.za

Created attachment 214321
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D214321&action=
=3Dedit
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=3D0xffffffffff600800, pid=3D12763, tid=3D101256
#
# 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[] =3D {
        LINUX_SYS_gettimeofday,
        LINUX_SYS_linux_time,
-                               /* getcpu not implemented */
+       LINUX_SYS_linux_getcpu, /* getcpu not implemented */
 };

 static int

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246339-227>