Skip to content

[BUG] Memory leak when mdarray is used in a file that is used by cython/python interface #740

Closed
@rg20

Description

Describe the bug
When using mdarray in C++ code alone, it works as expected. However, when using the python interface, we get memory issues such as:

  • Caught signal 11 (Segmentation fault: address not mapped to object at address (nil))
  • munmap_chunk(): invalid pointer, Aborted (core dumped)
  • corrupted double-linked list. Aborted (core dumped)

Steps/Code to reproduce bug
A PR in cuOpt that reproduces the bug is here: https://github.com/rapidsai/cuopt/pull/605. In this PR, mdarray is declared as a member variable in a class and not at all used (null op)

Expected behavior
The C++ version is working just fine. The mdarray (in this case) is not part of the cython or python class, so it should work fine.

Environment details (please complete the following information):
cuOpt needs to be installed to reproduce the bug. There may be other projects (like cuGraph) that can be used to reproduce the bug.

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions