Hotspot segfaulting on Linux SPARC
Thomas Stüfe
thomas.stuefe at gmail.com
Mon Apr 9 15:03:40 UTC 2018
VM_Version::determine_features() needs a code blob, and hence
ResourceMark, on sparc and ppc and s390 I think.
But I think the reason that only sparc fails is that
VM_Version::determine_features() is called too early on Sparc (as part of
os::init_before_ergo()). The other platforms call that function later in
initialization (VM_Version_init() -> init_globals()). Could that be the
error, and if yes, could VM_Version::determine_features() be delayed?
(Apart from that - the strdup/os::free mismatch Zhengyu found is quite real
and should be fixed).
..Thomas
On Mon, Apr 9, 2018 at 2:57 PM, John Paul Adrian Glaubitz <
glaubitz at physik.fu-berlin.de> wrote:
> On 04/09/2018 02:37 PM, Zhengyu Gu wrote:
>
>> The use of the os* functions can lead us into code that uses ResourceMark
>>> and requires an attached thread.
>>>
>>
>> Ah, I would argue that we should not get to this crash to begin with :-)
>>
>
> But I'm still not getting further :(.
>
> Can anyone tell me what the state on Solaris/SPARC is? The assertion
> failure
> should occur on Solaris as well I guess as the crash doesn't seem
> Linux-specific.
>
>
> 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