Skip to content

View::to_arrow_*() crashes when called from python #2597

Closed
@abalabin-bamfunds

Description

Bug Report

Steps to Reproduce:

  1. call View.to_arrow() from python

Expected Result:

it should work

Actual Result:

crash. when ran with debug-malloc python clearly states there were allocations attempted without GIL

Environment:

2.8.0/2.10.0, python 3.11/3.12, windows 10

Additional Context:

there is a bunch of methods that releases GIL to do stuff in C++ but does not grab it back before creating py::bytes object to return. See https://github.com/finos/perspective/compare/master...abalabin-bamfunds:perspective:fix-gil-unlocking?expand=1

Metadata

Assignees

No one assigned

    Labels

    bugConcrete, reproducible bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions