Hotspot segfaulting on Linux SPARC

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Mon Apr 9 11:23:54 UTC 2018


On 04/09/2018 01:10 PM, David Holmes wrote:
>> Here's the output of the java command with the change os::free > ::free:
> 
> You didn't apply Zhengyu's patch as well did you?
I did apply his patch as well. So, the total changes are:

diff -r cd4da74e310b src/hotspot/cpu/sparc/assembler_sparc.cpp
--- a/src/hotspot/cpu/sparc/assembler_sparc.cpp Fri Apr 06 19:16:33 2018 +0200
+++ b/src/hotspot/cpu/sparc/assembler_sparc.cpp Mon Apr 09 11:23:38 2018 +0000
@@ -49,7 +49,7 @@
      uint32_t insn = *reinterpret_cast<uint32_t*>(pc);
  
      // 1. General case: No CTI immediately after other CTI
-    assert(!(is_cti(prev) && is_cti(insn)), "CTI-CTI not allowed.");
+    // assert(!(is_cti(prev) && is_cti(insn)), "CTI-CTI not allowed.");
  
      // 2. Special case: No CTI immediately after/before RDPC
      assert(!(is_cti(prev) && is_rdpc(insn)), "CTI-RDPC not allowed.");
diff -r cd4da74e310b src/hotspot/os_cpu/linux_sparc/vm_version_linux_sparc.cpp
--- a/src/hotspot/os_cpu/linux_sparc/vm_version_linux_sparc.cpp Fri Apr 06 19:16:33 2018 +0200
+++ b/src/hotspot/os_cpu/linux_sparc/vm_version_linux_sparc.cpp Mon Apr 09 11:23:38 2018 +0000
@@ -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;
          }
        }

-- 
  .''`.  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