{"action":"created","issue":{"url":"https://api.github.com/repos/koraktor/rbzip2/issues/3","repository_url":"https://api.github.com/repos/koraktor/rbzip2","labels_url":"https://api.github.com/repos/koraktor/rbzip2/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/koraktor/rbzip2/issues/3/comments","events_url":"https://api.github.com/repos/koraktor/rbzip2/issues/3/events","html_url":"https://github.com/koraktor/rbzip2/issues/3","id":148750480,"number":3,"title":"RBZip2 never finishes on large file","user":{"login":"rylarson","id":2703404,"avatar_url":"https://avatars.githubusercontent.com/u/2703404?v=3","gravatar_id":"","url":"https://api.github.com/users/rylarson","html_url":"https://github.com/rylarson","followers_url":"https://api.github.com/users/rylarson/followers","following_url":"https://api.github.com/users/rylarson/following{/other_user}","gists_url":"https://api.github.com/users/rylarson/gists{/gist_id}","starred_url":"https://api.github.com/users/rylarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rylarson/subscriptions","organizations_url":"https://api.github.com/users/rylarson/orgs","repos_url":"https://api.github.com/users/rylarson/repos","events_url":"https://api.github.com/users/rylarson/events{/privacy}","received_events_url":"https://api.github.com/users/rylarson/received_events","type":"User","site_admin":false},"labels":[{"id":364484727,"url":"https://api.github.com/repos/koraktor/rbzip2/labels/bug","name":"bug","color":"e99695","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-04-15T19:40:58Z","updated_at":"2016-11-08T16:52:49Z","closed_at":null,"body":"Even for a moderately large file, RBzip2::Decompressor.new never returns, because it seems to sit endlessly in `get_and_move_to_front_decode`. \n\nCode snippet that reproduces the problem (on linux)\n\n```\n#!/usr/bin/env ruby\n\n`dd if=/dev/urandom of=output.dat bs=1M count=10`\n`tar cjvf bigTar.tar.bz2 output.dat`\nrequire 'rbzip2'\ndc = RBzip2::Decompressor.new(File.new('bigTar.tar.bz2'))\n```\n"},"comment":{"url":"https://api.github.com/repos/koraktor/rbzip2/issues/comments/259192433","html_url":"https://github.com/koraktor/rbzip2/issues/3#issuecomment-259192433","issue_url":"https://api.github.com/repos/koraktor/rbzip2/issues/3","id":259192433,"user":{"login":"rylarson","id":2703404,"avatar_url":"https://avatars.githubusercontent.com/u/2703404?v=3","gravatar_id":"","url":"https://api.github.com/users/rylarson","html_url":"https://github.com/rylarson","followers_url":"https://api.github.com/users/rylarson/followers","following_url":"https://api.github.com/users/rylarson/following{/other_user}","gists_url":"https://api.github.com/users/rylarson/gists{/gist_id}","starred_url":"https://api.github.com/users/rylarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rylarson/subscriptions","organizations_url":"https://api.github.com/users/rylarson/orgs","repos_url":"https://api.github.com/users/rylarson/repos","events_url":"https://api.github.com/users/rylarson/events{/privacy}","received_events_url":"https://api.github.com/users/rylarson/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T16:52:49Z","updated_at":"2016-11-08T16:52:49Z","body":"Hey there,\r\n\r\nSorry for the delay. I did try the code on master, it doesn't hang anymore but I get a CRC error:\r\n\r\n```\r\n => #<RBzip2::Ruby::Decompressor: @io=#<File:bigTar.tar.bz2> size=10043871 uncompressed=899981> \r\n2.3.1 :012 > dc.read\r\nRuntimeError: BZip2 CRC error\r\n\tfrom /Users/rjlarson/working/rbzip2/lib/rbzip2/ruby/decompressor.rb:148:in `complete'\r\n\tfrom /Users/rjlarson/working/rbzip2/lib/rbzip2/ruby/decompressor.rb:111:in `init_block'\r\n\tfrom /Users/rjlarson/working/rbzip2/lib/rbzip2/ruby/decompressor.rb:599:in `setup_no_rand_part_a'\r\n\tfrom /Users/rjlarson/working/rbzip2/lib/rbzip2/ruby/decompressor.rb:674:in `setup_no_rand_part_c'\r\n\tfrom /Users/rjlarson/working/rbzip2/lib/rbzip2/ruby/decompressor.rb:66:in `read0'\r\n\tfrom /Users/rjlarson/working/rbzip2/lib/rbzip2/ruby/decompressor.rb:40:in `read'\r\n\tfrom (irb):12\r\n\tfrom /Users/rjlarson/.rvm/rubies/ruby-2.3.1/bin/irb:11:in `<main>'\r\n```"}}
{"actor":{"display_login":"rylarson"}}