File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
graalpython/lib-graalpython/patches/pyarrow Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,20 @@ index 46ea021..58a3fb5 100644
1111 SendSignal(exc_value.signum)
1212 else:
1313 SendSignalToThread(exc_value.signum,
14+ diff --git a/pyarrow/tests/test_memory.py b/pyarrow/tests/test_memory.py
15+ index 092c50d..931b3fa 100644
16+ --- a/pyarrow/tests/test_memory.py
17+ +++ b/pyarrow/tests/test_memory.py
18+ @@ -44,6 +44,9 @@ def allocate_bytes(pool, nbytes):
19+ """
20+ Temporarily allocate *nbytes* from the given *pool*.
21+ """
22+ + # GraalPy change: the buffers don't maintain a python reference to their
23+ + # pool, so they may get destroyed after their pool, which segfaults
24+ + raise RuntimeError("GraalPy: destructors segfault")
25+ arr = pa.array([b"x" * nbytes], type=pa.binary(), memory_pool=pool)
26+ # Fetch the values buffer from the varbinary array and release the rest,
27+ # to get the desired allocation amount
1428diff --git a/pyarrow_build_backend.py b/pyarrow_build_backend.py
1529new file mode 100644
1630index 0000000..c9826ce
You can’t perform that action at this time.
0 commit comments