Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on exist with pyarrow >= 12.0.0 #614

Closed
mattw-nws opened this issue Jun 23, 2023 · 1 comment
Closed

Crash on exist with pyarrow >= 12.0.0 #614

mattw-nws opened this issue Jun 23, 2023 · 1 comment

Comments

@mattw-nws
Copy link
Contributor

We're getting this at the end of a run of ngen with routing in some environments, with pyarrow >= 12.0.0 (up to 12.0.1 at time of writing):

/arrow/cpp/src/arrow/filesystem/s3fs.cc:2598:  arrow::fs::FinalizeS3 was not called even though S3 was initialized.  This could lead to a segmentation fault at exit
/home/runner/work/_temp/b7ac2c59-df3f-4a2c-97fc-aac3460ed081.sh: line 2:  4242 Segmentation fault      (core dumped) ./cmake_build/test/test_routing_pybind

e.g. here: https://github.com/NOAA-OWP/ngen/actions/runs/5348001534/jobs/9697297839?pr=534#step:7:121

This seems related to apache/arrow#15054 and apache/arrow#33858 ... but it seems like those are closed and should be incorporated into pyarrow 12.0.0 ... it may be that there needs to be an explicit initialize or finalize call for the S3 API to make this go away, but it's unclear.

Current behavior

t-route+ngen crashes at exit with the above message ... mainly this is causing us to have failing tests.

Expected behavior

No crash

Steps to replicate behavior (include URLs)

  1. Re-running the ngen+t-route tests with pyarrow >= 12.0.0 seems to be the most reliable way so far observed, though it's not 100% reliable. But this may be happening more often and people not paying it any attention (since it happens at the end of the process).

Screenshots

@pitrou
Copy link

pitrou commented Jul 4, 2023

We hope to have a reliable fix for this in apache/arrow#36442
If you are able to easily reproduce the issue, could you perhaps try one of the wheels produced in apache/arrow#36442 (comment)
(click on the "crossbow" icon corresponding to your configuration, then click on "summary" in the Github Actions UI, and you should see a wheel artifact)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants