-
Notifications
You must be signed in to change notification settings - Fork 786
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
Fix memory leak in ffi test #1878
Conversation
Tried to reproduce the miri report and I see still some leaks related to |
Codecov Report
@@ Coverage Diff @@
## master #1878 +/- ##
==========================================
- Coverage 83.46% 83.46% -0.01%
==========================================
Files 201 201
Lines 57014 57016 +2
==========================================
+ Hits 47586 47587 +1
- Misses 9428 9429 +1
Continue to review full report at Codecov.
|
How to reproduce it? I ran |
I did run
or
for one specific test. Only difference to your command line is fewer CI looks like it passed because of #1873 |
Oh, I skip array::xxx. There are a few ffi tests under array:: module too. Let me look at them. Thanks @jhorstmann |
@jhorstmann Fixed them and verified by |
Nice, can confirm that miri is happy with that change! I'm not that familiar with the ffi api, that |
Thanks @sunchao @jhorstmann |
Which issue does this PR close?
Closes #1872.
Rationale for this change
A few raw Arc pointers were not converted back to Arc structs so leading to leaks.
Verified by
cargo +nightly miri test -p arrow -- --skip csv --skip ipc --skip json --skip util --skip compute --skip array --skip buffer --skip datatypes --skip bitmap --skip record_batch --skip tensor
What changes are included in this PR?
Are there any user-facing changes?