I get a core dump when running the test suite:
```
$ python -m pytest -v --tb=native pyarrow/tests/test_gpu.py
=============================================================== test session
starts ===============================================================
platform linux -- Python 3.7.0, pytest-3.7.2, py-1.5.4, pluggy-0.7.1 --
/home/antoine/miniconda3/envs/pyarrow/bin/python
cachedir: .pytest_cache
rootdir: /home/antoine/arrow/python, inifile: setup.cfg
plugins: timeout-1.3.1, faulthandler-1.5.0
collected 15 items
pyarrow/tests/test_gpu.py::test_manager_num_devices PASSED
[ 6%]
pyarrow/tests/test_gpu.py::test_manage_allocate_free_host Fatal Python error:
Aborted
Current thread 0x00007f87077fd740 (most recent call first):
File "/home/antoine/arrow/python/pyarrow/tests/test_gpu.py", line 81 in
test_manage_allocate_free_host
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/python.py",
line 196 in pytest_pyfunc_call
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/callers.py",
line 180 in _multicall
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/manager.py",
line 61 in <lambda>
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/manager.py",
line 67 in _hookexec
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/hooks.py",
line 258 in __call__
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/python.py",
line 1430 in runtest
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/runner.py",
line 111 in pytest_runtest_call
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/callers.py",
line 180 in _multicall
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/manager.py",
line 61 in <lambda>
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/manager.py",
line 67 in _hookexec
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/hooks.py",
line 258 in __call__
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/runner.py",
line 183 in <lambda>
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/runner.py",
line 201 in __init__
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/runner.py",
line 185 in call_runtest_hook
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/runner.py",
line 161 in call_and_report
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/runner.py",
line 81 in runtestprotocol
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/runner.py",
line 66 in pytest_runtest_protocol
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/callers.py",
line 180 in _multicall
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/manager.py",
line 61 in <lambda>
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/manager.py",
line 67 in _hookexec
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/hooks.py",
line 258 in __call__
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/main.py",
line 236 in pytest_runtestloop
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/callers.py",
line 180 in _multicall
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/manager.py",
line 61 in <lambda>
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/manager.py",
line 67 in _hookexec
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/hooks.py",
line 258 in __call__
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/main.py",
line 215 in _main
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/main.py",
line 178 in wrap_session
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/main.py",
line 208 in pytest_cmdline_main
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/callers.py",
line 180 in _multicall
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/manager.py",
line 61 in <lambda>
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/manager.py",
line 67 in _hookexec
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pluggy/hooks.py",
line 258 in __call__
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/config/__init__.py",
line 65 in main
File
"/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/pytest.py",
line 68 in <module>
File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/runpy.py", line 85
in _run_code
File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/runpy.py", line 193
in _run_module_as_main
Abandon (core dumped)
```
Here is the truncated gdb backtrace:
```
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007ffff7805801 in __GI_abort () at abort.c:79
#2 0x00007fffde548428 in arrow::internal::CerrLog::~CerrLog
(this=0x7fffffff78a0, __in_chrg=<optimized out>) at
../src/arrow/util/logging.h:130
#3 0x00007fffdb122243 in arrow::gpu::CudaHostBuffer::~CudaHostBuffer
(this=0x555556a48490, __in_chrg=<optimized out>)
at ../src/arrow/gpu/cuda_memory.cc:153
#4 0x00007fffdb120dff in
__gnu_cxx::new_allocator<arrow::gpu::CudaHostBuffer>::destroy<arrow::gpu::CudaHostBuffer>
(this=0x555556a48490,
__p=0x555556a48490) at /usr/include/c++/7/ext/new_allocator.h:140
#5 0x00007fffdb120d97 in
std::allocator_traits<std::allocator<arrow::gpu::CudaHostBuffer>
>::destroy<arrow::gpu::CudaHostBuffer> (__a=...,
__p=0x555556a48490) at /usr/include/c++/7/bits/alloc_traits.h:487
#6 0x00007fffdb120b71 in
std::_Sp_counted_ptr_inplace<arrow::gpu::CudaHostBuffer,
std::allocator<arrow::gpu::CudaHostBuffer>,
(__gnu_cxx::_Lock_policy)2>::_M_dispose (this=0x555556a48480) at
/usr/include/c++/7/bits/shared_ptr_base.h:535
#7 0x00007fffdef09ba8 in
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(this=0x555556a48480)
at /usr/include/c++/7/bits/shared_ptr_base.h:154
#8 0x00007fffdef053bf in
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
(this=0x7fffd9898be0, __in_chrg=<optimized out>)
at /usr/include/c++/7/bits/shared_ptr_base.h:684
#9 0x00007fffdef021da in std::__shared_ptr<arrow::Buffer,
(__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x7fffd9898bd8,
__in_chrg=<optimized out>) at /usr/include/c++/7/bits/shared_ptr_base.h:1123
#10 0x00007fffdef021f6 in std::shared_ptr<arrow::Buffer>::~shared_ptr
(this=0x7fffd9898bd8, __in_chrg=<optimized out>)
at /usr/include/c++/7/bits/shared_ptr.h:93
#11 0x00007fffdef09564 in __Pyx_call_destructor<std::shared_ptr<arrow::Buffer>
> (x=...)
at /home/antoine/arrow/python/build/temp.linux-x86_64-3.7/lib.cpp:281
#12 0x00007fffdee9ed92 in __pyx_tp_dealloc_7pyarrow_3lib_Buffer
(o=0x7fffd9898bc0)
at /home/antoine/arrow/python/build/temp.linux-x86_64-3.7/lib.cpp:120931
#13 0x00007fffdb171578 in __pyx_tp_dealloc_7pyarrow_7lib_gpu_CudaHostBuffer
(o=0x7fffd9898bc0)
at /home/antoine/arrow/python/build/temp.linux-x86_64-3.7/lib_gpu.cpp:12759
#14 0x00007ffff2089509 in array_dealloc ()
from
/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/numpy/core/multiarray.cpython-37m-x86_64-linux-gnu.so
```
[ Full content available at: https://github.com/apache/arrow/pull/2536 ]
This message was relayed via gitbox.apache.org for [email protected]