Skip to content

[C++] Array Take may dereference absent null bitmap #27556

@asfimport

Description

@asfimport

Sorting a non-chunked array has some sort of reference problem. Some operations on the resulting indices array crash.

import pyarrow as pa, pyarrow.compute as pc

array = pa.array(list("abcba"))
assert pc.sort_indices(pa.chunked_array([array])).take([0])
assert pc.array_sort_indices(pa.chunked_array([array])).take([0])
pc.sort_indices(array).take([0])  # crash
pc.array_sort_indices(array).take([0])  # crash

Environment: macOS, ubuntu
Reporter: A. Coady / @coady
Assignee: Antoine Pitrou / @pitrou

PRs and other links:

Note: This issue was originally created as ARROW-11694. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions