Hotspot segfaulting on Linux SPARC

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Tue Apr 10 19:39:48 UTC 2018


On 04/09/2018 11:31 PM, David Holmes wrote:
> Looks like you will need compiler folk to jump in here. No idea why this would be linux-sparc specific, but would need to see exactly what was being compiled at the time the invalid code sequence was encountered.
> 
> Sorry. This is what happens when code is no longer actively maintained.
Update: I just ran "hg update && hg update --clean", applied the following diff
which includes the suggested fix for 8201360 and the change suggested by
Zhengyu:

glaubitz at deb4g:/srv/glaubitz/hs$ hg diff
diff -r 00805b129186 make/hotspot/lib/CompileJvm.gmk
--- a/make/hotspot/lib/CompileJvm.gmk   Tue Apr 10 11:43:40 2018 -0700
+++ b/make/hotspot/lib/CompileJvm.gmk   Tue Apr 10 22:38:12 2018 +0300
@@ -219,7 +219,7 @@
      TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
      OUTPUT_DIR := $(JVM_LIB_OUTPUTDIR), \
      SRC := $(JVM_SRC_DIRS), \
-    EXTRA_FILES := $(DTRACE_EXTRA_SOURCE_FILES), \
+    EXTRA_FILES := $(BUILD_LIBJVM_EXTRA_FILES) $(DTRACE_EXTRA_SOURCE_FILES), \
      EXCLUDES := $(JVM_EXCLUDES), \
      EXCLUDE_FILES := $(JVM_EXCLUDE_FILES), \
      EXCLUDE_PATTERNS := $(JVM_EXCLUDE_PATTERNS), \
diff -r 00805b129186 src/hotspot/os_cpu/linux_sparc/vm_version_linux_sparc.cpp
--- a/src/hotspot/os_cpu/linux_sparc/vm_version_linux_sparc.cpp Tue Apr 10 11:43:40 2018 -0700
+++ b/src/hotspot/os_cpu/linux_sparc/vm_version_linux_sparc.cpp Tue Apr 10 22:38:12 2018 +0300
@@ -48,7 +48,7 @@
          if (vstr != NULL) {
            // We have a matching line and a valid starting point to the value of
            // the field, copy the string for keeps.
-          _string = strdup(vstr);
+          _string = os::strdup(vstr, mtInternal);
            break;
          }
        }

and now the crash is different:

glaubitz at deb4g:/srv/glaubitz/hs$ ./build/linux-sparcv9-normal-server-fastdebug/jdk/bin/java --version
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: /srv/glaubitz/hs/build/linux-sparcv9-normal-server-fastdebug/jdk/modules/java.datatransfer
Caused by: java.lang.module.InvalidModuleDescriptorException: Illegal load factor: -1.2197928E-12
glaubitz at deb4g:/srv/glaubitz/hs$

What exactly is the load factor?

Adrian

-- 
  .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


More information about the hotspot-dev mailing list