Hotspot segfaulting on Linux SPARC
John Paul Adrian Glaubitz
glaubitz at physik.fu-berlin.de
Thu Apr 12 09:53:21 UTC 2018
On 04/12/2018 11:36 AM, John Paul Adrian Glaubitz wrote:
>> I still think the safest fix is to change os::free to ::free, not ::strdup to os::strdup. There are too many codepaths through the os:: code that lead to places where we expect to have an attached thread - even if they are error paths.
>
> Ok, let me test that alternative patch.
Ok, that works as well in the sense that it exposes the "Illegal Load Factor" crash again:
glaubitz at deb4g:/srv/glaubitz/hs$ hg diff
diff -r 46f2dc7c4c39 src/hotspot/os_cpu/linux_sparc/vm_version_linux_sparc.cpp
--- a/src/hotspot/os_cpu/linux_sparc/vm_version_linux_sparc.cpp Thu Apr 12 11:05:42 2018 +0200
+++ b/src/hotspot/os_cpu/linux_sparc/vm_version_linux_sparc.cpp Thu Apr 12 12:52:00 2018 +0300
@@ -56,7 +56,7 @@
}
}
- ~CPUinfo() { os::free((void*)_string); }
+ ~CPUinfo() { free((void*)_string); }
const char* value() const { return _string; }
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.desktop
Caused by: java.lang.module.InvalidModuleDescriptorException: Illegal load factor: -1.2197928E-12
glaubitz at deb4g:/srv/glaubitz/hs$
I'll send a CR with your version.
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