apache / apache/arrow

[Python] Logging memory pool crashes if set as the default memory pool

Open
#38,328 1 comment 0 reactions 0 assignees View on GitHub
Component: Python Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

This crashes:

```
In [1]: pa.set_memory_pool(pa.logging_memory_pool(pa.default_memory_pool()))

In [2]: pa.array([1, 2, 3])
Segmentation fault (core dumped)
```

while passing it as an argument to the function allocating the data works fine:

```
In [1]: pa.array([1, 2, 3], memory_pool=pa.logging_memory_pool(pa.default_memory_pool()))
Allocate: size = 256, alignment = 64
Allocate: size = 64, alignment = 64
Reallocate: old_size = 256, new_size = 64, alignment = 64
Free: size = 64, alignment = 64
Out[1]:

[
1,
2,
3
]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.