This project is closed and read-only.
Actions
Backport #8467
closedRewinding and iterating through gzipped IO leads to segmentation fault
Backport #8467:
Rewinding and iterating through gzipped IO leads to segmentation fault
Status:
Closed
Assignee:
Description
The following steps reproduce the bug in 2.0.0:
-
Create a file and gzip it in a terminal:
echo "some content" > compressed_file && gzip compressed_file
Then start a IRB session with the following code:
require 'zlib'
filename = "compressed_file.gz"
io = Zlib::GzipReader.new(open(filename, 'rb'))
io.rewind
io.each {} # segmentation_fault in Ruby 2.0.0
This works in Ruby 1.9.3, 1.9.2, and 1.8.7.
Files
Actions