Uploaded image for project: 'Periscope'
  1. Periscope
  2. MGNLPER-148

SIGILL - JVM core dump on M1 (apple silicon) based macbooks due to nd4j

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Neutral Neutral
    • None
    • None

      Due to issue in the nd4j library, ranker will crash JVM will variation of following error on M1 based apple macbooks:

      ------------------------------------
      2020-12-09 15:50:14,521 INFO fo.magnolia.i18nsystem.DefaultMessageBundlesLoader: Starting monitoring of info.magnolia.resourceloader.layered.LayeredResourceOrigin@93c3b12 to load translation files
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGILL (0x4) at pc=0x00000001731fdfe1, pid=6041, tid=247303
      #
      # JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.9+7) (build 11.0.9+7-LTS)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (11.0.9+7-LTS, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
      # Problematic frame:
      # C [libnd4jcpu.dylib+0x5efcfe1] _ZN2sd14ContextBuffersC1Ev+0x11
      #
      # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /Users/luketrueman/Desktop/magnolia-core-6.2.5/apache-tomcat/bin/hs_err_pid6041.log
      #
      # If you would like to submit a bug report, please visit:
      #  https://bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug. 
      
      

      Confirmed the same with 8, 11 and 15. Haven’t tried 14. OTOH since issue is with the c++ library loaded by nd4j, it’s not surprising that it happens across all jvm versions

        Acceptance criteria

              Unassigned Unassigned
              had Jan Haderka
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD