-
Notifications
You must be signed in to change notification settings - Fork 21
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
C API: errors while running tests #247
Comments
I can't vouch for the C API's quality - in fact I'm pretty confident it should be destroyed and started over. I'm hoping someone with a bit more C expertise than me could work on this. Would you be interested in working on this? |
To elaborate a bit: Rust shouldn't allocate and own the memory in these "FFI vecs". The C user should allocate the memory (probably based on a |
I would like to try but currently I don't know If I will be able to allocate enough resources on that in the nearest future. For now, I found the following workaround: call |
I'm not sure. Sounds risky! |
I see. Anyway, I will try to play a bit with the current version this way on my datasets, if everything goes smoothly, I'll probably try to fix the issue or rewrite the API as you suggested. Thank you for your comments. |
Hi guys,
First of all, thank you for the great tool! I have been using the pcodec python bindings recently and it works perfectly.
Currently, I am trying to get familiar with the C API and I encountered some errors while running tests.
run_test.sh
I get undefined reference to pco_auto_compress/pco_auto_decompress error.pco_auto_compress
withpco_sumpler_compress
andpco_auto_decompress
withpco_simple_decompress
, everything works fine until the moment when memory deallocation happens. Then, I get segmentation fault.Seems like there is some issue with the
pco_free_pcovec
function. Would you please comment on this? Is there any chance to fix this issue?The text was updated successfully, but these errors were encountered: