From: Travis Whitton Date: 2004-04-01T01:39:22+09:00 Subject: Re: Strange rubyzip behaviour (Errno::EFBIG) I've distilled the problem down to the following lines of code. travis@aop:~$ touch foo.txt travis@aop:~$ cat crash.rb MAX_END_OF_CENTRAL_DIRECTORY_STRUCTURE_SIZE = 65536 + 18 name = "foo.txt" File.open(name, "rb") do |f| f.seek(-MAX_END_OF_CENTRAL_DIRECTORY_STRUCTURE_SIZE, IO::SEEK_END) f.read end travis@aop:~$ ruby crash.rb crash.rb:6:in `read': File too large - foo.txt (Errno::EFBIG) from crash.rb:6 from crash.rb:4:in `open' from crash.rb:4