You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Daniel Nugent (Jira)" <ji...@apache.org> on 2020/03/11 01:12:00 UTC

[jira] [Created] (ARROW-8070) [Python] Casting Segfault

Daniel Nugent created ARROW-8070:
------------------------------------

             Summary: [Python] Casting Segfault
                 Key: ARROW-8070
                 URL: https://issues.apache.org/jira/browse/ARROW-8070
             Project: Apache Arrow
          Issue Type: Bug
            Reporter: Daniel Nugent


Was messing around with some nested arrays and found a pretty easy to reproduce segfault:


{code:java}
Python 3.7.6 | packaged by conda-forge | (default, Jan  7 2020, 22:33:48)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np, pyarrow as pa
>>> pa.__version__
'0.16.0'
>>> np.__version__
'1.18.1'
>>> x=[np.array([b'a',b'b'])]
>>> a = pa.array(x,pa.list_(pa.binary()))
>>> a
<pyarrow.lib.ListArray object at 0x7fd948b108a0>
[
  [
    61,
    62
  ]
]
>>> a.cast(pa.string())
Segmentation fault
{code}

I don't know if that cast makes sense, but I left the checks on, so I would not expect a segfault from it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)