You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2022/04/25 09:07:00 UTC

[jira] [Commented] (ARROW-16300) pc.sort_indices with nonexistent column throws malloc error

    [ https://issues.apache.org/jira/browse/ARROW-16300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17527387#comment-17527387 ] 

Antoine Pitrou commented on ARROW-16300:
----------------------------------------

Could you try to get a C-level backtrace (using gdb for example)? I can't reproduce here, it probably depends on the underlying malloc implementation.

> pc.sort_indices with nonexistent column throws malloc error
> -----------------------------------------------------------
>
>                 Key: ARROW-16300
>                 URL: https://issues.apache.org/jira/browse/ARROW-16300
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>    Affects Versions: 7.0.0
>         Environment: OS X 11.6.1 MacBook Pro (13-inch, M1, 2020)
> Python 3.10.0
> pyarrow 7.0.0
>            Reporter: Ben Schmidt
>            Priority: Minor
>
>  
> When calling pa.compute.sort_indices using a column name that is not in the table to be sorted, I get a malloc error that brings down the whole process, rather than a recoverable error.
> Example:
> {code:java}
> import pyarrow as pa
> from pyarrow import compute as pc
> tb = pa.table({'foo': [1, 2, 3]})
> pc.sort_indices(tb, [('foo', 'ascending'), ('bar', 'ascending')]) {code}
> results in:
> {code:java}
> python(11346,0x1046cfd40) malloc: *** error for object 0x16bdae458: pointer being freed was not allocated
> python(11346,0x1046cfd40) malloc: *** set a breakpoint in malloc_error_break to debug {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)