Skip to content

Java bindings vs mpool/memkind #5206

Open
@ggouaillardet

Description

@ggouaillardet

With the latest master (I did not test the release branches yet), all my Java tests ends up in a crash at the end.

I made a bit of debugging, and found the issue involves the memkind library that is linked to the mpool/memkind component.

At first glance, it seems memkind invokes pthread_key_create() with a destructor, but this destructor ends up being invoked after libmemkind.so has been unmapped, resulting in a crash
(so it seems pthread_key_delete() has not been invoked by memkind)

A simple workaround is to

mpirun --mca mpool ^memkind ...

FWIW, I use memkind provided by xppsl (e.g. the Intel addons for KNL) xppsl-memkind-1.5.1-4151.x86_64

At this stage, I am not sure whether this is a bug in memkind (nor if it has been fixed since) or in how mpool/memkind uses memkind.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions