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

0.22.0: zlib(finalizer): the stream was freed prematurely #42

Closed
zhulik opened this issue Sep 5, 2022 · 2 comments
Closed

0.22.0: zlib(finalizer): the stream was freed prematurely #42

zhulik opened this issue Sep 5, 2022 · 2 comments

Comments

@zhulik
Copy link
Contributor

zhulik commented Sep 5, 2022

Hello,

after updating to 0.22.0 from 0.19.2 and making adjustments for the new read/write interface I started getting warnings from zlib:

zlib(finalizer): the stream was freed prematurely.

Besides that my code works as expected.

I couldn't precisely trace what exactly causes printing of this warning, do you have any ideas where I can start from?

Thanks!

@zhulik
Copy link
Contributor Author

zhulik commented Nov 10, 2022

Some updates: warning is only shown with ruby 2.7 and 3.0, 3.1 is not affected. This PR in zlib simply disables warnings ruby/zlib#30. I assume we can't do anything but updating ruby to 3.1

@ioquatix
Copy link
Member

Yeah I removed that message from the CRuby native extension for zlib. Thanks for confirming the fix!

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

2 participants