-
Notifications
You must be signed in to change notification settings - Fork 712
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
GaloisKeys serialization crash #249
Comments
Duplicate of #248 |
Thanks for the helpful report! This was a pretty serious bug in native/src/seal/util/ztools.cpp. Our in-place Zstandard compression didn't update the "read-head" correctly so that the in-place compression basically didn't work, and all output was always written into temporary buffers. Since the output size continues to grow as more data is compressed, a new allocation was always done for each new size temporary buffer. Since these were allocation from a SEAL memory pool, the memory was not released until the function returned, and you ended up with huge memory drain. Linux killed your process because of this. We'll release v3.6.1 shortly to fix this. |
Thank you for the explanation&fix, @kimlaine! 🚀 |
3.6.1 is now available. Please let us know if there are further issues. |
The issue doesn't reproduce with 3.6.1. Thank you so much for the quick fix! 👍 |
With the following code snippet, I'm receiving SIGKILL, it seems to be an infinite loop at the save step.
My only "custom" flags for the build system are
I ran the test with strace, and it actually shows an infinite loop of mmaps until it crashes.
Tested with SEAL 3.6. Ubuntu 20.04. gcc 9.3.0
The code was OK with SEAL 3.5.9, I hope I didn't miss something in the updated API.
The text was updated successfully, but these errors were encountered: