Skip to content

Conversation

@pitrou
Copy link
Member

@pitrou pitrou commented Jun 28, 2021

Some Python versions have a bug where signal.getsignal creates a reference cycle holding execution frames alive (https://bugs.python.org/issue42248).

This would cause excessive lifetimes of the PyArrow table returned by read_csv.

@pitrou
Copy link
Member Author

pitrou commented Jun 28, 2021

cc @westonpace

@github-actions
Copy link

… file

Some Python versions have a bug where `signal.getsignal` creates a reference cycle
holding execution frames alive (https://bugs.python.org/issue42248).

This would cause excessive lifetimes of the PyArrow table returned by `read_csv`.
@pitrou pitrou force-pushed the ARROW-13187-signal-refcycle branch from ea26d44 to 29dc65d Compare June 28, 2021 18:27
Copy link
Member

@westonpace westonpace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this fix in! LGTM.

import os
import signal
import threading
import weakref
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need weakref here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's just a remnant from a failed attempt.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I won't say I fully understand this code ;), but LGTM

@pitrou pitrou closed this in fda6b27 Jun 29, 2021
@pitrou pitrou deleted the ARROW-13187-signal-refcycle branch June 29, 2021 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants