<div dir="ltr"><div><div>Hi Dmitry,<br><br></div>To check your situation I created simple demo for your gz module (<a href="https://gist.github.com/kvratkin/ec4736aaf65a79bc4469">https://gist.github.com/kvratkin/ec4736aaf65a79bc4469</a>). <br>As I can see file size about 1Gb unzipped properly. No errors or VM crashes. Maybe I use your module incorrectly ... <br>Unfortunately I can't check as huge file as you have but I'll try file 10Gb soon.<br></div><div><br>P.S. I use Debian Jessie, 64 bit, 1 Virtual CPU and Erlang installed from Erlang Solution repo.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-14 23:25 GMT+03:00 Dmitry Kolesnikov <span dir="ltr"><<a href="mailto:dmkolesnikov@gmail.com" target="_blank">dmkolesnikov@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I’ve got an interesting issue with zlib at otp-18.2.1 I’ve not checked other releases yet.<br>
I do have a file about 30GB of compressed data, it is expanded to 300GB of textual UTF8 data.<br>
The producer of the file claims that standard gzip is used. The file header [1] is:<br>
1F 8B 08 04 00 00 00 00 00 00 24 03<br>
<br>
My decompression program is very simple [2], it reads 64K binary chunks from file and inflates them using zlib:inflate(…).<br>
<br>
At some point of time, the inflate do not return and VM binary memory growth to infinity until it is crashed.<br>
The crash is reproducible all the time with my file. The file is not corrupted and gzip is capable to perform it check and inflate data. The file becomes readable by program if it is inflated - deflated again using command line gzip. The header of readable file is:<br>
1F 8B 08 00 6E EC E6 56 00 03 D4 BD<br>
<br>
I am having a challenge to debug this issue further to zlib and understand root-cause.<br>
Do you have any suggestions on it?<br>
<br>
Best Regards,<br>
Dmitry<br>
<br>
P.S: the file, I am taking about, contains confidential data and cannot be disclosed to community.<br>
<br>
Reference:<br>
[1] <a href="http://www.zlib.org/rfc-gzip.html" rel="noreferrer" target="_blank">http://www.zlib.org/rfc-gzip.html</a><br>
[2] <a href="https://github.com/fogfish/feta/blob/master/src/gz.erl" rel="noreferrer" target="_blank">https://github.com/fogfish/feta/blob/master/src/gz.erl</a><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>