[ 
https://issues.apache.org/jira/browse/ARROW-3828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xander Johnson closed ARROW-3828.
---------------------------------
    Resolution: Not A Problem

> [Python] client.list() produces segfault on macOS
> -------------------------------------------------
>
>                 Key: ARROW-3828
>                 URL: https://issues.apache.org/jira/browse/ARROW-3828
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>         Environment: macOS 10.12.6
> pyarrow 0.11.1
>            Reporter: Xander Johnson
>            Priority: Trivial
>
> Issue: running some of the examples 
> [https://github.com/apache/arrow/blob/master/python/doc/source/plasma.rst] 
> here cause a segfault, when they call client.list():
> In one process:
> {code:java}
> plasma_store -m 1000000000 -s /tmp/plasma          {code}
> in another, this will fail on the call to {{list}}:
> {code:java}
> import pyarrow.plasma as plasma
> client = plasma.connect("/tmp/plasma", "", 0)
> foo = client.put(1)
> client.list(){code}
> e.g.
> {code:java}
> Python 3.6.7 (default, Nov 15 2018, 16:25:31)
> [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pyarrow.plasma as plasma
> >>> client = plasma.connect("/tmp/plasma", "", 0)
> >>> foo = client.put(1)
> >>> client.list()
> zsh: segmentation fault  python3
> {code}
> I installed pyarrow via pip - version 0.11.1
> Out of curiosity, I tried it also in a fresh virtualenv with python2.7, to 
> the same effect.
>  
> On linux, I seem to be able to do the same thing fine:
> {code:java}
> ❯ docker run -it --rm --entrypoint bash python:slim
> root@5de7f7560ac6:/# pip install pyarrow
> Collecting pyarrow
>   Downloading 
> https://files.pythonhosted.org/packages/c3/7c/4d796eafb4c77fb13d91afce06641df2c2a7f3670544e8f511b7b492f315/pyarrow-0.11.1-cp37-cp37m-manylinux1_x86_64.whl
>  (11.6MB)
>     100% |████████████████████████████████| 11.6MB 1.5MB/s
> Collecting numpy>=1.14 (from pyarrow)
>   Downloading 
> https://files.pythonhosted.org/packages/38/39/f73e104d44f19a6203e786d5204532e214443ea2954917b27f3229e7639b/numpy-1.15.4-cp37-cp37m-manylinux1_x86_64.whl
>  (13.8MB)
>     100% |████████████████████████████████| 13.9MB 1.7MB/s
> Collecting six>=1.0.0 (from pyarrow)
>   Downloading 
> https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
> Installing collected packages: numpy, six, pyarrow
> Successfully installed numpy-1.15.4 pyarrow-0.11.1 six-1.11.0
> root@5de7f7560ac6:/# plasma_store -m 1000000 -s /tmp/plasma &
> [1] 17
> root@5de7f7560ac6:/# /arrow/cpp/src/plasma/store.cc:971: Allowing the Plasma 
> store to use up to 0.001GB of memory.
> /arrow/cpp/src/plasma/store.cc:1001: Starting object store with directory 
> /dev/shm and huge page support disabled
> root@5de7f7560ac6:/# python
> Python 3.7.1 (default, Oct 24 2018, 22:38:59)
> [GCC 6.3.0 20170516] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pyarrow.plasma as plasma
> >>> client = plasma.connect("/tmp/plasma", "", 0)
> >>> foo = client.put(1)
> >>> client.list()
> {ObjectID(fda78ff273c4e4b92c788b719748881fb847ee59): {'data_size': 448, 
> 'metadata_size': 0, 'ref_count': 0, 'create_time': 1542447115, 
> 'construct_duration': 0, 'state': 'sealed'}}{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to