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

Size Constraints - Malloc Error #1

Closed
brainmap opened this issue Feb 24, 2010 · 3 comments
Closed

Size Constraints - Malloc Error #1

brainmap opened this issue Feb 24, 2010 · 3 comments

Comments

@brainmap
Copy link

Hi Brian,

Thanks for the great work with this. Unfortunately, I'm running into a malloc error when trying to zip or unzip very large files (685MB zipped, 2.1GB unzipped). I'm running this on a machine w/ 4GB ram, so I think it may actually a limitation in the memory size that ruby itself allows. Are there any plans to implement a buffer to unzip larger files? Unfortunately I'm not familiar with C well enough to edit the bindings myself, hoping this is on your radar. Thanks again!

Erik Kastman

@brianmario
Copy link
Owner

Hi Erik,

I've been wanting to refactor the C code of this gem for a while but haven't had the time. It has quite a few bugs and uses parts of the Ruby C API that it shouldn't be. I suspect the bug you're hitting has to do with that, or something related.
I'll do my best to get around to fixing it up, but for now maybe search Github for "bz2" (the original gem sources).

-Brian

@brainmap
Copy link
Author

Thanks Brian - I'll definitely take a look at it. I suspect that the original sources will also have this memory problem, but if not (and it has to do with your implementation specifically) i'll post a stack trace for you. Thanks,

Erik

@brianmario
Copy link
Owner

Nice, that would be awesome.
Thanks Erik

This issue was closed.
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