https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112021-08-02T20:24:03ZRuby Issue Tracking SystemRuby master - Bug #18058: 3.1.0-dev with MJIT enabled Zlib::BufError during `gem install`https://bugs.ruby-lang.org/issues/18058?journal_id=930902021-08-02T20:24:03Zk0kubun (Takashi Kokubun)takashikkbn@gmail.com
<ul><li><strong>Assignee</strong> set to <i>k0kubun (Takashi Kokubun)</i></li></ul> Ruby master - Bug #18058: 3.1.0-dev with MJIT enabled Zlib::BufError during `gem install`https://bugs.ruby-lang.org/issues/18058?journal_id=930912021-08-02T20:26:41Zk0kubun (Takashi Kokubun)takashikkbn@gmail.com
<ul></ul><p>Do you know if we can let <del>Bundler</del> rubygems (you're right, it wasn't Bundler) show the backtrace? The first step to fix this is to increase reproduction probability, and the backtrace information might be helpful for reproducing the issue with a smaller script for it.</p> Ruby master - Bug #18058: 3.1.0-dev with MJIT enabled Zlib::BufError during `gem install`https://bugs.ruby-lang.org/issues/18058?journal_id=930922021-08-02T20:28:07Zbyroot (Jean Boussier)byroot@ruby-lang.org
<ul></ul><blockquote>
<p>Do you know if we can let Bundler show the backtrace?</p>
</blockquote>
<p>It's <code>rubygems</code> not bundler. I don't know how make it print the backtrace, but I can take a look. Worst case I can probably directly patch it to let the error bubble up.</p> Ruby master - Bug #18058: 3.1.0-dev with MJIT enabled Zlib::BufError during `gem install`https://bugs.ruby-lang.org/issues/18058?journal_id=930932021-08-02T20:31:38Zbyroot (Jean Boussier)byroot@ruby-lang.org
<ul></ul><p>Here you go:</p>
<pre><code>/usr/local/lib/ruby/3.1.0/rubygems/package.rb:698:in `read': buffer error (Zlib::BufError)
from /usr/local/lib/ruby/3.1.0/rubygems/package.rb:698:in `block in verify_gz'
from /usr/local/lib/ruby/3.1.0/rubygems/package.rb:697:in `wrap'
from /usr/local/lib/ruby/3.1.0/rubygems/package.rb:697:in `verify_gz'
from /usr/local/lib/ruby/3.1.0/rubygems/package.rb:664:in `verify_entry'
from /usr/local/lib/ruby/3.1.0/rubygems/package.rb:676:in `block in verify_files'
from /usr/local/lib/ruby/3.1.0/rubygems/package/tar_reader.rb:65:in `each'
from /usr/local/lib/ruby/3.1.0/rubygems/package.rb:675:in `verify_files'
from /usr/local/lib/ruby/3.1.0/rubygems/package.rb:606:in `block (2 levels) in verify'
from /usr/local/lib/ruby/3.1.0/rubygems/package/tar_reader.rb:27:in `new'
from /usr/local/lib/ruby/3.1.0/rubygems/package.rb:603:in `block in verify'
from /usr/local/lib/ruby/3.1.0/rubygems/package/file_source.rb:29:in `open'
from /usr/local/lib/ruby/3.1.0/rubygems/package/file_source.rb:29:in `with_read_io'
from /usr/local/lib/ruby/3.1.0/rubygems/package.rb:602:in `verify'
from /usr/local/lib/ruby/3.1.0/rubygems/package.rb:583:in `spec'
from /usr/local/lib/ruby/3.1.0/rubygems/installer.rb:269:in `spec'
from /usr/local/lib/ruby/3.1.0/rubygems/installer.rb:719:in `verify_spec'
from /usr/local/lib/ruby/3.1.0/rubygems/installer.rb:891:in `pre_install_checks'
from /usr/local/lib/ruby/3.1.0/rubygems/installer.rb:286:in `install'
from /usr/local/lib/ruby/3.1.0/rubygems/resolver/specification.rb:104:in `install'
from /usr/local/lib/ruby/3.1.0/rubygems/request_set.rb:194:in `block in install'
from /usr/local/lib/ruby/3.1.0/rubygems/request_set.rb:182:in `each'
from /usr/local/lib/ruby/3.1.0/rubygems/request_set.rb:182:in `install'
from /usr/local/lib/ruby/3.1.0/rubygems/commands/install_command.rb:210:in `install_gem'
from /usr/local/lib/ruby/3.1.0/rubygems/commands/install_command.rb:226:in `block in install_gems'
from /usr/local/lib/ruby/3.1.0/rubygems/commands/install_command.rb:219:in `each'
from /usr/local/lib/ruby/3.1.0/rubygems/commands/install_command.rb:219:in `install_gems'
from /usr/local/lib/ruby/3.1.0/rubygems/commands/install_command.rb:167:in `execute'
from /usr/local/lib/ruby/3.1.0/rubygems/command.rb:323:in `invoke_with_build_args'
from /usr/local/lib/ruby/3.1.0/rubygems/command_manager.rb:178:in `process_args'
from /usr/local/lib/ruby/3.1.0/rubygems/command_manager.rb:147:in `run'
from /usr/local/lib/ruby/3.1.0/rubygems/gem_runner.rb:53:in `run'
from /usr/local/bin/gem:21:in `<main>'
</code></pre> Ruby master - Bug #18058: 3.1.0-dev with MJIT enabled Zlib::BufError during `gem install`https://bugs.ruby-lang.org/issues/18058?journal_id=944162021-10-30T19:53:34Zbyroot (Jean Boussier)byroot@ruby-lang.org
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/18277">Bug #18277</a>: buffer error (Zlib::BufError) in Zlib::Deflate#deflate when using MJIT</i> added</li></ul> Ruby master - Bug #18058: 3.1.0-dev with MJIT enabled Zlib::BufError during `gem install`https://bugs.ruby-lang.org/issues/18058?journal_id=990312022-08-31T04:47:17Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li></ul> Ruby master - Bug #18058: 3.1.0-dev with MJIT enabled Zlib::BufError during `gem install`https://bugs.ruby-lang.org/issues/18058?journal_id=1021862023-03-08T04:56:32Zk0kubun (Takashi Kokubun)takashikkbn@gmail.com
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>I replaced the entire implementation in [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Simplify MJIT implementation (Closed)" href="https://bugs.ruby-lang.org/issues/19420">#19420</a>], and I haven't seen this issue with today's implementation.</p>