[MacRuby] #1109: Installing a gem from disk fails
#1109: Installing a gem from disk fails -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.9 Component: MacRuby | Keywords: rubygems -------------------------------------+-------------------------------------- For example: {{{ % sudo macgem install pkg/mac_bacon-1.1.21.gem ERROR: While executing gem ... (Zlib::BufError) buffer error }}} Installing from a remote source, however, does work: {{{ % sudo macgem install mac_bacon Successfully installed mac_bacon-1.1.21 1 gem installed }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1109> MacRuby <http://macruby.org/>
#1109: Installing a gem from disk fails -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.9 Component: MacRuby | Keywords: rubygems -------------------------------------+-------------------------------------- Comment(by lsansonetti@…): {{{ (gdb) bt #0 rb_exc_raise (mesg=17189290048) at eval.c:322 #1 0x0000000104f7c9ec in raise_zlib_error (err=<value temporarily unavailable, due to optimizations>, msg=<value temporarily unavailable, due to optimizations>) at zlib.c:242 #2 0x0000000104f7cc2a in zstream_run (z=<value temporarily unavailable, due to optimizations>, src=<value temporarily unavailable, due to optimizations>, len=<value temporarily unavailable, due to optimizations>, flush=<value temporarily unavailable, due to optimizations>) at zlib.c:678 #3 0x0000000104f786bf in rb_zstream_finish (obj=17189172480, sel=0x0) at zlib.c:866 #4 0x000000010013bb36 in rb_vm_dispatch (_vm=0x100b22b60, cache=0x100ab5830, top=17189200288, self=17189172480, klass=0x40031a520, sel=0x7fff953ffdee, block=0x0, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x0) at dispatcher.cpp:159 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1109#comment:1> MacRuby <http://macruby.org/>
#1109: Installing a gem from disk fails -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: rubygems -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * milestone: MacRuby 0.9 => Comment: "lib/rubygems/package/tar_input.rb" line 218 {{{ def zipped_stream(entry) if defined? Rubinius or defined? Maglev then # these implementations have working Zlib zis = Zlib::GzipReader.new entry dis = zis.read is = StringIO.new(dis) else # This is Jamis Buck's Zlib workaround for some unknown issue entry.read(10) # skip the gzip header zis = Zlib::Inflate.new(-Zlib::MAX_WBITS) is = StringIO.new(zis.inflate(entry.read)) end ensure zis.finish if zis # XXX we crash here end }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1109#comment:2> MacRuby <http://macruby.org/>
#1109: Installing a gem from disk fails -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: rubygems -------------------------------------+-------------------------------------- Comment(by lsansonetti@…): I verified that we were able to install the gem locally with macgem 1.3.6. However, in 1.4.1, we no longer can. I also verified that entering the first code path fixes the problem. I may commit this change then. -- Ticket URL: <http://www.macruby.org/trac/ticket/1109#comment:3> MacRuby <http://macruby.org/>
#1109: Installing a gem from disk fails -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.9 Component: MacRuby | Resolution: fixed Keywords: rubygems | -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.9 Comment: Done in r5156. -- Ticket URL: <http://www.macruby.org/trac/ticket/1109#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby