Skip to content

__malloc_hook issue #1336

Closed
Closed
@igor-ivanov

Description

@igor-ivanov

This issue came from UCX:
btl openib sets __malloc_hook to handle alignment (added in this commit cd17fee)

when it’s closed (component_close), for example because another component has higher priority, it restores the original handler.

The problem is that the __malloc_hook may have been changed since then by other component (e.g UCX), and restoring the original handler overrides this other component setting (UCX).

As a result, when UCX is running, it installs __malloc_hook, but btl openib changes it “under its feet”

I think this should be fixed by checking that the currentl __malloc_hook still points to btl_openib’s replacement, before restoring the original.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions