Shenandoah crash on Mac OS X

Zhengyu Gu zgu at redhat.com
Wed Jun 20 12:57:38 UTC 2018


Hi Vsevolod,

Thanks for reporting.

However, it does not look like Shenandoah specific, as hs_err shows that 
you were running with CMS collector.

Do you have reproducer? I can help to verify that and report to Oracle 
(/bugs.openjdk.java.net) if confirmed.

-Zhengyu


On 06/20/2018 08:43 AM, Vsevolod Tolstopyatov wrote:
> Hi, we have private OpenJDK build (based on
> https://github.com/JetBrains/jdk8u) with merged Shenandoah into it.
> On recent clang (9.4.1) on Mac OS X  undefined behaviour in perfData.hpp
> (no-delete-non-virtual-dtor) causes a crash on JVM exit.
> The issue was found and fixed by my colleague Simon (
> simon.ogorodnik at gmail.com).
> 
> ---
>   src/share/vm/runtime/perfData.hpp | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/share/vm/runtime/perfData.hpp
> b/src/share/vm/runtime/perfData.hpp
> index 9ba4e4b71..0ed4a3c68 100644
> --- a/src/share/vm/runtime/perfData.hpp
> +++ b/src/share/vm/runtime/perfData.hpp
> @@ -288,7 +288,7 @@ class PerfData : public CHeapObj<mtInternal> {
>       void *_valuep;
> 
>       PerfData(CounterNS ns, const char* name, Units u, Variability v);
> -    ~PerfData();
> +    virtual ~PerfData();
> 
>       // create the entry for the PerfData item in the PerfData memory
> region.
>       // this region is maintained separately from the PerfData objects to
> 


More information about the shenandoah-dev mailing list