Ruby Issue Tracking System: Issueshttps://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112024-03-19T09:10:29ZRuby Issue Tracking System
Redmine Ruby master - Feature #20347 (Assigned): Separate docs task from allhttps://bugs.ruby-lang.org/issues/203472024-03-19T09:10:29Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I would like to migrate RDoc as bundled gems at Ruby 3.5.</p>
<p>We need to handle <code>install-doc</code> and related task with that. I removed <code>docs</code> task from <code>all</code> and re-order <code>docs</code> task at <code>install-all</code>.</p>
<p><a href="https://github.com/ruby/ruby/pull/10282" class="external">https://github.com/ruby/ruby/pull/10282</a></p>
<p>It works with RDoc as bundled gems. We can keep current behavior with this migration.</p>
<p>I hope to merge changes for <code>all</code> task and re-order <code>install-all</code> task at Ruby 3.4.</p>
<p><a href="https://github.com/ruby/ruby/pull/10282/commits/b160083175aed062c320b8d76eafe1c8706309d4" class="external">https://github.com/ruby/ruby/pull/10282/commits/b160083175aed062c320b8d76eafe1c8706309d4</a></p>
<p>After that, the default <code>make</code> task will not generate rdoc. We need to add <code>make all docs</code> for that.</p> Ruby master - Feature #20309 (Assigned): Bundled gems for Ruby 3.5https://bugs.ruby-lang.org/issues/203092024-02-27T22:16:20Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I propose migrate the following default gems to bundled gems at Ruby 3.5. So, It means users will get warnings if users try to load them.</p>
<p>(Update with 2024/03/14)</p>
<ul>
<li>ostruct
<ul>
<li>I make ostruct as optional on json at <a href="https://github.com/flori/json/pull/565" class="external">https://github.com/flori/json/pull/565</a>
</li>
</ul>
</li>
<li>logger
<ul>
<li>activesupport needs to add logger to its dependency same as bigdecimal, drb or etc.</li>
</ul>
</li>
<li>fiddle</li>
<li>pstore</li>
<li>win32ole</li>
</ul>
<p>I have a plan to migrate the following default gems too. But I need to more feedback from other committers about them.</p>
<ul>
<li>irb
<ul>
<li>We need to consider how works <code>binding.irb</code> after Ruby 3.5.</li>
<li>I consider to use <code>irb</code> without Gemfile.</li>
</ul>
</li>
<li>reline</li>
<li>readline (wrapper file for readline-ext and reline)</li>
<li>io-console
<ul>
<li>rubygems uses that. Should we make optional that?</li>
</ul>
</li>
<li>open-uri</li>
<li>yaml (wrapper file for psych)
<ul>
<li>syck is retired today. I'm not sure what people uses <code>psych</code> directly, not <code>yaml</code>.</li>
</ul>
</li>
<li>rdoc
<ul>
<li>We need to change build task like download rdoc gem before document generation.
<ul>
<li>extract <code>make doc</code> from <code>make all</code> and invoke <code>make doc</code> before <code>make install</code>.</li>
</ul>
</li>
<li>or We make document generation is optional from Ruby 3.5
<ul>
<li>We explicitly separate <code>make install</code> and <code>make install-doc</code>
</li>
</ul>
</li>
</ul>
</li>
<li>un
<ul>
<li>
<code>ruby -run</code> is one of cool feature of Ruby. Should we avoid uninstalling <code>un</code> gem?</li>
<li>mkmf uses <code>ruby -run</code> for that. I need to investigate that.</li>
</ul>
</li>
<li>singleton
<ul>
<li>This is famous design pattern. Should we enforce users add them to their Gemfile?</li>
</ul>
</li>
<li>forwadable
<ul>
<li>
<code>reline</code> needs to add forwardable their <code>runtime_dependency</code> after migration.</li>
</ul>
</li>
<li>weakref
<ul>
<li>I'm not sure how impact after migrating bundled gems.</li>
</ul>
</li>
<li>fcntl
<ul>
<li>Should we integrate these constants into ruby core?</li>
</ul>
</li>
</ul>
<p>I would like to migrate <code>ipaddr</code> and <code>uri</code> too. But these are used by webrick that is mock server for our test suite. We need to rewrite <code>webrick</code> with <code>TCPSocker</code> or extract <code>ipaddr</code> and <code>uri</code> dependency from <code>webrick</code></p>
<p>Other default gems depend on our build process or other libraries deeply. I will update this proposal if I could extract them from default gems.</p> Ruby master - Feature #20187 (Closed): Bundled gems at Ruby 3.4https://bugs.ruby-lang.org/issues/201872024-01-16T08:39:11Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This ticket is for tracking bundled gems status at Ruby 3.4.</p>
<p>I added warnings for bundled gems of Ruby 3.3 at <a href="https://bugs.ruby-lang.org/issues/19351" class="external">https://bugs.ruby-lang.org/issues/19351</a> and <a href="https://bugs.ruby-lang.org/issues/19776" class="external">https://bugs.ruby-lang.org/issues/19776</a>.</p>
<p>I started to extract(promote) target libraries to bundled gems. These are:</p>
<ul>
<li>abbrev</li>
<li>base64</li>
<li>bigdecimal</li>
<li>csv</li>
<li>drb</li>
<li>getoptlong</li>
<li>mutex_m</li>
<li>nkf</li>
<li>observer</li>
<li>resolv-replace</li>
<li>rinda</li>
<li>syslog</li>
</ul> Ruby master - Bug #20060 (Closed): bundled_gems.rb is not working with Bootsnaphttps://bugs.ruby-lang.org/issues/200602023-12-12T00:00:35Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Addressed from <a href="https://github.com/ruby/ruby/pull/9163#issuecomment-1850924893" class="external">https://github.com/ruby/ruby/pull/9163#issuecomment-1850924893</a></p>
<p><code>bundled_gems.rb</code> of 3.3.0-rc1 couldn't handle full paths by Bootsnap.</p>
<pre><code>$ rails new example
(snip)
rails importmap:install
bin/rails aborted!
ArgumentError: comparison of String with nil failed (ArgumentError)
msg = " #{RUBY_VERSION < SINCE[gem] ? "will no longer be" : "is not"} part of the default gems since Ruby #{SINCE[gem]}."
(snip)
</code></pre>
<p>It's working with DISABLE_BOOTSNAP=1. But we should resolve it with under the bootsnap.</p> Ruby master - Misc #20015 (Closed): Privacy policy for ruby-lang.orghttps://bugs.ruby-lang.org/issues/200152023-11-22T05:31:47Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>We got the request to add privacy policy page on ruby-lang.org at <a href="https://github.com/ruby/www.ruby-lang.org/issues/3134" class="external">https://github.com/ruby/www.ruby-lang.org/issues/3134</a></p>
<p>I put a draft page: <a href="https://github.com/ruby/www.ruby-lang.org/pull/3144" class="external">https://github.com/ruby/www.ruby-lang.org/pull/3144</a></p>
<p>We will discuss about this in dev meeting with Matz before deploy that.</p> Ruby master - Feature #19846 (Closed): Extend warnings message of bundled gems for gem authorhttps://bugs.ruby-lang.org/issues/198462023-08-24T08:59:52Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This is my task reminder. The current warnings feature of bundled gems only notice for Gemfile.</p>
<p>Like this:</p>
<pre><code>$ cat Gemfile
# frozen_string_literal: true
source "https://rubygems.org"
gem "activesupport"
</code></pre>
<pre><code>$ bundle exec irb
>> require "active_support/all"
/Users/hsbt/.local/share/gem/gems/activesupport-7.0.7.2/lib/active_support/core_ext/big_decimal/conversions.rb:3: warning: bigdecimal will be not part of the default gems since Ruby 3.4.0. Add it to your Gemfile.
/Users/hsbt/.local/share/gem/gems/activesupport-7.0.7.2/lib/active_support/notifications/fanout.rb:3: warning: mutex_m will be not part of the default gems since Ruby 3.4.0. Add it to your Gemfile.
</code></pre>
<p>But we should also notice above message for maintainer of <code>activesupport</code> like "Add "mutex_m" with <code>add_dependency</code> to <code>activesupport</code> gemspec."</p> Ruby master - Bug #19789 (Closed): YJIT + rustc 1.71.0 is broken with macOShttps://bugs.ruby-lang.org/issues/197892023-07-31T11:03:56Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I got some segmentation fault on macOS.</p>
<pre><code>1) Failure:
TestVMDump#test_darwin_invalid_call [/Users/hsbt/Documents/github.com/ruby/ruby/test/ruby/test_vm_dump.rb:11]:
pid 35071 exit 1
| -e:1: [BUG] Bus Error at 0x0000000000000001
| ruby 3.3.0dev (2023-07-30T06:13:58Z master b5c74d5488) [arm64-darwin23]
|
| -- Crash Report log information --------------------------------------------
| See Crash Report log file in one of the following locations:
| * ~/Library/Logs/DiagnosticReports
| * /Library/Logs/DiagnosticReports
| for more details.
| Don't forget to include the above Crash Report log file in bug reports.
|
| -- Control frame information -----------------------------------------------
| c:0003 p:---- s:0010 e:000009 CFUNC :call
| c:0002 p:0015 s:0006 e:000005 EVAL -e:1 [FINISH]
| c:0001 p:0000 s:0003 E:000a30 DUMMY [FINISH]
|
| -- Ruby level backtrace information ----------------------------------------
| -e:1:in `<main>'
| -e:1:in `call'
|
| -- Threading information ---------------------------------------------------
| Total ractor count: 1
| Ruby thread count for this ractor: 1
|
| -- Machine register context ------------------------------------------------
| x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000
| x3: 0x0000000000000000 x4: 0x0000000000000000 x5: 0x0000000000000000
| x6: 0x0000000000000000 x7: 0x0000000000000000 x18: 0x0000000000000000
| x19: 0x0000000000000000 x20: 0x000000016faadf40 x21: 0x000000016faadf40
| x22: 0x000000016faadec0 x23: 0x0000600001256eb0 x24: 0x000000016faadc70
| x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
| x28: 0x0000000140e04f20 lr: 0x000000019b211050 fp: 0x000000016faadd30
| sp: 0x000000016faadd30
|
| -- C level backtrace information -------------------------------------------
| 1360: Abbrev Number 707 not found
.
</code></pre>
<p>I filed it and other failures to <a href="https://gist.github.com/hsbt/ea3e52d9fb52aed58d25caf839eae5ff" class="external">https://gist.github.com/hsbt/ea3e52d9fb52aed58d25caf839eae5ff</a></p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/51839">@katei (Yuta Saito)</a> found this issue caused by YJIT and rustc 1.71.0. It's not happend with</p>
<pre><code>../ruby/configure -C --disable-install-doc --with-openssl-dir=/opt/homebrew/opt/openssl@1.1 --with-readline-dir=/opt/homebrew/opt/readline --with-libyaml-dir=/opt/homebrew/opt/libyaml RUSTC='rustc +1.70.0'
</code></pre>
<p>But <code>RUSTC='rustc +1.71.0'</code> is failed with same error on macOS Sonoma(beta) and Ventura.</p> Ruby master - Feature #19776 (Closed): Warn bundled gems when it called from `require`https://bugs.ruby-lang.org/issues/197762023-07-19T09:02:32Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>We should warn when users try to load default gems that will be promoted bundled gems at next version. We will warn them only under the bundler environment without Gemfile.</p>
<ul>
<li>Ruby 3.3:
<ul>
<li>Warn for adding bundled gems to be addressed Ruby 3.4 to Gemfile when user load its gem without <code>gem 'foo'</code> in their Gemfile.
<ul>
<li>Target libraries are TBD</li>
</ul>
</li>
<li>Also warn existing bundled gems was loaded without <code>gem 'foo'</code> of Gemfile. Ex. net-smtp, rexml etc.</li>
</ul>
</li>
<li>Ruby 3.4:
<ul>
<li>Promote bundled gems.
<ul>
<li>Raise LoadError same as current behavior with warnings of Ruby 3.3.</li>
</ul>
</li>
<li>Warn same as Ruby 3.3.</li>
</ul>
</li>
</ul>
<p>I implemented PoC for this: <a href="https://github.com/ruby/ruby/pull/8096" class="external">https://github.com/ruby/ruby/pull/8096</a></p> Ruby master - Feature #19702 (Closed): Promote racc as bundled gemshttps://bugs.ruby-lang.org/issues/197022023-05-31T09:04:23Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>In the past, we need to bundle <code>racc</code> runtime for RD parser of RDoc. Now, We have racc compiler and runtime in ruby repository.</p>
<p>I'm not sure we should bundle and maintain <code>racc</code> as stdlib(= default gems) in the future. Can we promote <code>racc</code> to bundled gems?</p> Ruby master - Feature #19351 (Closed): Promote bundled gems at Ruby 3.3https://bugs.ruby-lang.org/issues/193512023-01-18T08:48:45Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>In Ruby 3.2, the default gems and bundled gems are changed only adding <code>syntax_suggest</code>. I and some committers are considering promote default gems to bundled gems again for Ruby 3.3+.</p>
<p>We hope to keep the current developer experience with dependency resolution and ignore the additional work like "Put gem "xxx" into your Gemfile" for developers.</p>
<a name="Proposal-for-Ruby-330-preview2"></a>
<h3 >Proposal for Ruby 3.3.0-preview2<a href="#Proposal-for-Ruby-330-preview2" class="wiki-anchor">¶</a></h3>
<p>I propose the following libraries will promote default gems to bundled gems at Ruby 3.3.0-preview2</p>
<pre><code>abbrev
getoptlong
observable
resolv-replace
rinda
nkf (C-ext)
syslog (C-ext)
base64
drb
mutex_m
csv
</code></pre>
<p>Other default gems depends on <code>make test-all</code> or other standard libraries. It's hard to promote in this time. And I submit a PoC of bypass feature for Bundler and bundled gems: <a href="https://github.com/rubygems/rubygems/pull/6811" class="external">https://github.com/rubygems/rubygems/pull/6811</a></p>
<p>This feature add <code>load_paths</code> defined by <code>Gem.bundled_gems</code> that is pair list of Gem name and version under the Bundler environment. This mean user can <code>require</code> bundled gems like <code>csv</code> without <code>gem "csv"</code> on Gemfile.</p>
<p>And we need to warn like "'csv' is loaded without Gemfile, add "gem 'csv'" in your Gemfile" in <code>require</code> or other place. I have no idea how notice this yet.</p>
<hr>
<a name="Proposal"></a>
<h3 >Proposal<a href="#Proposal" class="wiki-anchor">¶</a></h3>
<p>I propose the following libraries will promote default gems to bundled gems at Ruby 3.3. They are not the dependencies of Rails and RubyGems/Bundler.</p>
<pre><code>abbrev
getoptlong
observable
resolv-replace
rinda
nkf (C-ext)
syslog (C-ext)
</code></pre>
<p>Update: I removed <code>optparse</code> and <code>un</code> from above list. Because they are used by Ruby build process.</p>
<pre><code>optparse
un
</code></pre>
<p>Update 2: I also removed the following libraries. <code>resolv</code> and <code>fcntl</code> are used by test of Ruby internal like <code>test_io.rb</code>. And we don't have built process of C extension at Windows platform. I gave up to extract <code>win32ole</code> in this time.</p>
<pre><code>resolv
fcntl (C-ext)
win32ole (C-ext)
</code></pre>
<a name="Additional-works"></a>
<h3 >Additional works<a href="#Additional-works" class="wiki-anchor">¶</a></h3>
<p>I also propose to promote rails dependencies without rubygems/bundler deps:</p>
<pre><code>base64
drb
mutex_m
</code></pre>
<p>Update: <code>delegate</code> is used by <code>tempfile</code>. We need to keep <code>delegate</code> as default gems for build process. and I added <code>reline</code> into above list.</p>
<p>Update 2: The following libraries used by tests of <code>ruby/ruby</code> and other libraries like psych. I need to remove their dependency from <code>ruby/ruby</code>.</p>
<pre><code>benchmark
forwardable
ipaddr
irb
reline
ostruct
rdoc
singleton
tsort
weakref
bigdecimal (C-ext)
date(datetime) (C-ext)
</code></pre>
<p>And gems maintained by <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/32">@kou (Kouhei Sutou)</a></p>
<pre><code>csv
</code></pre>
<p>Following gems also maintained by <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/32">@kou (Kouhei Sutou)</a>, but they are used on RubyGems/Bundler or MJIT. Maybe, We couldn't promote them because RubyGems/Bundler couldn't bundle C-ext gems.</p>
<pre><code>fiddle (C-ext): used by MJIT
stringio (C-ext) used by RubyGems/Bundler
strscan (C-ext) used by RubyGems/Bundler
</code></pre>
<a name="Follow-up-feature"></a>
<h3 >Follow-up feature<a href="#Follow-up-feature" class="wiki-anchor">¶</a></h3>
<p>But if we promote them to bundled gems, many of users need to add like <code>gem "csv"</code> into their Gemfile. I'm considering avoiding this situation.</p>
<p>Can we introduce the specific feature of bundled gems to RubyGems or Bundler? Example, bundler have allowed list for bundled gems. So, listed gems could be require without Gemfile under the bundle exec.</p> Ruby master - Misc #19162 (Closed): [ANN] Restrict weak ssh public key for git.ruby-lang.orghttps://bugs.ruby-lang.org/issues/191622022-12-01T02:13:37Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>We continuously migrate our ssh public keys on git.ruby-lang.org from svn and cvs.</p>
<p>I found some of pub keys used weak algorithm. So, I will restrict them at 15 Dec 2022.</p>
<p>I'll notify committers who are still use weak key later.</p> Ruby master - Misc #19050 (Closed): [ANN] Schedule maintenance for git.ruby-lang.orghttps://bugs.ruby-lang.org/issues/190502022-10-12T04:28:04Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I have a plan to migrate instance type of git.ruby-lang.org on Oct 16, 2022 (JST).</p>
<p>During maintenance time, git.ruby-lang.org will be unavailable and rebooted.</p> Ruby master - Misc #19030 (Closed): [ANN] Migrate lists.ruby-lang.org to Google Groupshttps://bugs.ruby-lang.org/issues/190302022-09-29T07:30:53Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Our mailing-list server that is <code>lists.ruby-lang.org</code> is too old. And it's difficult to replace new server on AWS because building mail-service on AWS has a lot of limitations. I and <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/12">@shugo (Shugo Maeda)</a> decided to migrate lists.ruby-lang.org to Google Groups.</p>
<ul>
<li>In Nov-Dec 2022, we migrate the current list member to Google Groups of our google workspace.</li>
<li>I hope to migrate to the last list-id, But I'm not sure we can do that.</li>
<li>What will be used as an archive viewer has yet to be TBD status.
<ul>
<li>blade is still down.</li>
<li>I prefer plain text viewer like blade instead of google groups. Should we build it?</li>
</ul>
</li>
</ul>
<p>I will update this plan in this thread.</p> Ruby master - Bug #18992 (Closed): Update versions of the default gems for Ruby 3.1https://bugs.ruby-lang.org/issues/189922022-09-02T04:29:39Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This is a ticket for backport management.</p>
<p><a href="https://github.com/ruby/ruby/pull/6125" class="external">https://github.com/ruby/ruby/pull/6125</a></p>
<p>Note: rbs-2.6.0+ is temporary for test fails with <code>Gem.use_gemdeps</code>. We should replace it with 2.6.1 or 2.7.0 after releasing a stable version.</p> Ruby master - Misc #18987 (Closed): [ANN] Sunsetting svn.ruby-lang.orghttps://bugs.ruby-lang.org/issues/189872022-08-31T01:03:00Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>svn.ruby-lang.org provides subversion write endpoint for stable maintainers and read endpoint for anonymous users. But Ruby 2.6 the last version, used subversion is EOL today.</p>
<p>I will shut down the subversion service of svn.ruby-lang.org on Nov 2022.</p>
<p>After that, svn.ruby-lang.org is only alias of git.ruby-lang.org. We focus to maintain only git server on that.</p> Ruby master - Bug #18985 (Closed): SEGV with YJIT on aarch64-linuxhttps://bugs.ruby-lang.org/issues/189852022-08-30T11:30:49Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>When we use <code>-e</code> option with YJIT, It's always crush on aarch64-linux.</p>
<pre><code>$ ruby --jit -e "puts :foo"
/home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:305: [BUG] Segmentation fault at 0x00000e80f90003e0
ruby 3.2.0dev (2022-08-30T09:46:06Z master b98653f766) +YJIT [aarch64-linux]
-- Control frame information -----------------------------------------------
c:0012 p:0082 s:0059 e:000056 BLOCK /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:305 [FINISH]
c:0011 p:---- s:0049 e:000048 CFUNC :gsub
c:0010 p:0018 s:0044 e:000043 METHOD /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:298
c:0009 p:0013 s:0037 e:000036 BLOCK /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:316 [FINISH]
c:0008 p:---- s:0033 e:000032 CFUNC :each_value
c:0007 p:3778 s:0029 e:000028 CLASS /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:315
c:0006 p:0007 s:0026 e:000025 TOP /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:11 [FINISH]
c:0005 p:---- s:0023 e:000022 CFUNC :require
c:0004 p:0005 s:0018 e:000017 TOP /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/rubygems.rb:8 [FINISH]
c:0003 p:---- s:0012 e:000011 CFUNC :require
c:0002 p:0012 s:0007 e:000006 TOP <internal:gem_prelude>:2 [FINISH]
c:0001 p:0000 s:0003 E:001e70 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
<internal:gem_prelude>:2:in `<internal:gem_prelude>'
<internal:gem_prelude>:2:in `require'
/home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/rubygems.rb:8:in `<top (required)>'
/home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/rubygems.rb:8:in `require'
/home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:11:in `<top (required)>'
/home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:315:in `<module:RbConfig>'
/home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:315:in `each_value'
/home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:316:in `block in <module:RbConfig>'
/home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:298:in `expand'
/home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:298:in `gsub'
/home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/rbconfig.rb:305:in `block in expand'
-- Machine register context ------------------------------------------------
x0: 0x0000ffff8eb14d18 x1: 0xf0000e80f90003e0 x2: 0x0000aaaae6fc1010
x3: 0x0000aaaae6fc1010 x4: 0x0000000000000000 x5: 0x0000aaaae70d5210
x6: 0x0000000000000218 x7: 0x0000000000000007 x18: 0x0000ffffe56ea2f0
x19: 0x0000aaaae71566d0 x20: 0x0000ffff8ec27d10 x21: 0x0000aaaae6fc6560
x22: 0x0000aaaac8c5d310 x23: 0x0000ffff8b5a7bd0 x24: 0x0000aaaae71566c0
x25: 0x0000ffff8eb18580 x26: 0x0000aaaae7154370 x27: 0x000000000000000a
x28: 0x0000ffff8eb18508 x29: 0x0000ffffe56ea8b0 sp: 0x0000ffffe56ea8a0
fau: 0x00000e80f90003e0
-- C level backtrace information -------------------------------------------
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_vm_bugreport+0x664) [0xaaaac8c4305c] vm_dump.c:762
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_bug_for_fatal_signal+0xd4) [0xaaaac8db5334] error.c:817
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(sigsegv+0x5c) [0xaaaac8b99154] signal.c:964
linux-vdso.so.1(__kernel_rt_sigreturn+0x0) [0xffff8f28578c]
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_exec_core+0x1c0) [0xaaaac8c35178] vm.inc:2234
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_vm_exec+0x144) [0xaaaac8c269ac] vm.c:2388
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_yield+0x1fc) [0xaaaac8c2b5c4] vm.c:1416
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(str_gsub+0x4a0) [0xaaaac8bc15b0] string.c:5902
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_call_cfunc_with_frame+0xf8) [0xaaaac8c1a7c8] vm_insnhelper.c:3020
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_sendish+0x134) [0xaaaac8c1ef8c] vm_insnhelper.c:4775
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_exec_core+0x210) [0xaaaac8c351c8] insns.def:778
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_vm_exec+0x144) [0xaaaac8c269ac] vm.c:2388
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_yield+0x1fc) [0xaaaac8c2b5c4] vm.c:1416
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(each_value_i+0x14) [0xaaaac8a795f4] hash.c:3042
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(hash_foreach_iter+0x28) [0xaaaac8a7ab30] hash.c:1378
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_st_foreach_check+0x7c) [0xaaaac8ba5f64] st.c:1479
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(hash_foreach_call+0xf4) [0xaaaac8a7e794] hash.c:1507
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_ensure+0xf8) [0xaaaac8a51ea8] eval.c:994
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_hash_foreach+0x98) [0xaaaac8a7eb70] hash.c:1531
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_hash_each_value+0x40) [0xaaaac8a815f0] hash.c:1521
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_call_cfunc_with_frame+0xf8) [0xaaaac8c1a7c8] vm_insnhelper.c:3020
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_call_method_each_type+0x204) [0xaaaac8c279ec] vm_insnhelper.c:3645
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_call_method+0xc4) [0xaaaac8c27fdc] vm_insnhelper.c:3755
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_sendish+0x134) [0xaaaac8c1ef8c] vm_insnhelper.c:4775
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_exec_core+0x210) [0xaaaac8c351c8] insns.def:778
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_vm_exec+0x144) [0xaaaac8c269ac] vm.c:2388
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(require_internal+0xa8c) [0xaaaac8abbeb4] load.c:693
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_f_require+0x48) [0xaaaac8abc018] load.c:1261
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_call_cfunc_with_frame+0xf8) [0xaaaac8c1a7c8] vm_insnhelper.c:3020
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_exec_core+0x154) [0xaaaac8c3510c] vm_insnhelper.c:4775
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_vm_exec+0x144) [0xaaaac8c269ac] vm.c:2388
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(require_internal+0xa8c) [0xaaaac8abbeb4] load.c:693
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_f_require+0x48) [0xaaaac8abc018] load.c:1261
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_call_cfunc_with_frame+0xf8) [0xaaaac8c1a7c8] vm_insnhelper.c:3020
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_call_method_each_type+0x204) [0xaaaac8c279ec] vm_insnhelper.c:3645
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_call_method+0xc4) [0xaaaac8c27fdc] vm_insnhelper.c:3755
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(vm_exec_core+0x154) [0xaaaac8c3510c] vm_insnhelper.c:4775
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_vm_exec+0x144) [0xaaaac8c269ac] vm.c:2388
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(ruby_opt_init+0x54) [0xaaaac8b95c74] ruby.c:1530
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(ruby_opt_init+0x14) [0xaaaac8b9739c] ruby.c:1549
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(process_options) ruby.c:2044
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(ruby_process_options+0x154) [0xaaaac8b97efc] ruby.c:2673
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(ruby_options+0xd8) [0xaaaac8a50cc0] eval.c:118
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(rb_main+0x14) [0xaaaac8a4b72c] ./main.c:38
/home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby(main) ./main.c:57
[0xffff8ef63e10]
[0xaaaac8a4b7b4]
-- Other runtime information -----------------------------------------------
* Loaded script: ruby
* Loaded features:
0 enumerator.so
1 thread.rb
2 fiber.so
3 rational.so
4 complex.so
5 ruby2_keywords.rb
6 /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/enc/encdb.so
7 /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/enc/trans/transdb.so
* Process memory map:
aaaac89b0000-aaaac8f53000 r-xp 00000000 103:01 574112 /home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby
aaaac8f63000-aaaac8f78000 r--p 005a3000 103:01 574112 /home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby
aaaac8f78000-aaaac8f79000 rw-p 005b8000 103:01 574112 /home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby
aaaac8f79000-aaaac8f8a000 rw-p 00000000 00:00 0
aaaac904b000-aaaac904c000 r-xp 00000000 00:00 0
aaaac904c000-aaaad104b000 ---p 00000000 00:00 0
aaaad104b000-aaaad104c000 r-xp 00000000 00:00 0
aaaad104c000-aaaad904b000 ---p 00000000 00:00 0
aaaae6fc1000-aaaae7179000 rw-p 00000000 00:00 0 [heap]
ffff88aaf000-ffff8b560000 r--s 00000000 103:01 574112 /home/chkbuild/.rbenv/versions/3.2.0-dev/bin/ruby
ffff8b560000-ffff8b5b0000 rw-p 00000000 00:00 0
ffff8b5ba000-ffff8b5bc000 r-xp 00000000 103:01 574145 /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/enc/trans/transdb.so
ffff8b5bc000-ffff8b5cb000 ---p 00002000 103:01 574145 /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/enc/trans/transdb.so
ffff8b5cb000-ffff8b5cc000 r--p 00001000 103:01 574145 /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/enc/trans/transdb.so
ffff8b5cc000-ffff8b5cd000 rw-p 00002000 103:01 574145 /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/enc/trans/transdb.so
ffff8b5cd000-ffff8b5cf000 r-xp 00000000 103:01 574168 /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/enc/encdb.so
ffff8b5cf000-ffff8b5de000 ---p 00002000 103:01 574168 /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/enc/encdb.so
ffff8b5de000-ffff8b5df000 r--p 00001000 103:01 574168 /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/enc/encdb.so
ffff8b5df000-ffff8b5e0000 rw-p 00002000 103:01 574168 /home/chkbuild/.rbenv/versions/3.2.0-dev/lib/ruby/3.2.0+2/aarch64-linux/enc/encdb.so
ffff8b5e0000-ffff8b5e1000 ---p 00000000 00:00 0
ffff8b5e1000-ffff8b682000 rw-p 00000000 00:00 0
ffff8b682000-ffff8b683000 ---p 00000000 00:00 0
ffff8b683000-ffff8b724000 rw-p 00000000 00:00 0
ffff8b724000-ffff8b725000 ---p 00000000 00:00 0
ffff8b725000-ffff8b7c6000 rw-p 00000000 00:00 0
ffff8b7c6000-ffff8b7c7000 ---p 00000000 00:00 0
ffff8b7c7000-ffff8b868000 rw-p 00000000 00:00 0
ffff8b868000-ffff8b869000 ---p 00000000 00:00 0
ffff8b869000-ffff8b90a000 rw-p 00000000 00:00 0
ffff8b90a000-ffff8b90b000 ---p 00000000 00:00 0
ffff8b90b000-ffff8b9ac000 rw-p 00000000 00:00 0
ffff8b9ac000-ffff8b9ad000 ---p 00000000 00:00 0
ffff8b9ad000-ffff8ba4e000 rw-p 00000000 00:00 0
ffff8ba4e000-ffff8ba4f000 ---p 00000000 00:00 0
ffff8ba4f000-ffff8baf0000 rw-p 00000000 00:00 0
ffff8baf0000-ffff8baf1000 ---p 00000000 00:00 0
ffff8baf1000-ffff8bb92000 rw-p 00000000 00:00 0
ffff8bb92000-ffff8bb93000 ---p 00000000 00:00 0
ffff8bb93000-ffff8bc34000 rw-p 00000000 00:00 0
ffff8bc34000-ffff8bc35000 ---p 00000000 00:00 0
ffff8bc35000-ffff8bcd6000 rw-p 00000000 00:00 0
ffff8bcd6000-ffff8bcd7000 ---p 00000000 00:00 0
ffff8bcd7000-ffff8bd78000 rw-p 00000000 00:00 0
ffff8bd78000-ffff8bd79000 ---p 00000000 00:00 0
ffff8bd79000-ffff8be1a000 rw-p 00000000 00:00 0
ffff8be1a000-ffff8be1b000 ---p 00000000 00:00 0
ffff8be1b000-ffff8bebc000 rw-p 00000000 00:00 0
ffff8bebc000-ffff8bebd000 ---p 00000000 00:00 0
ffff8bebd000-ffff8bf5e000 rw-p 00000000 00:00 0
ffff8bf5e000-ffff8bf5f000 ---p 00000000 00:00 0
ffff8bf5f000-ffff8c000000 rw-p 00000000 00:00 0
ffff8c000000-ffff8c001000 ---p 00000000 00:00 0
ffff8c001000-ffff8c0a2000 rw-p 00000000 00:00 0
ffff8c0a2000-ffff8c0a3000 ---p 00000000 00:00 0
ffff8c0a3000-ffff8c144000 rw-p 00000000 00:00 0
ffff8c144000-ffff8c145000 ---p 00000000 00:00 0
ffff8c145000-ffff8c1e6000 rw-p 00000000 00:00 0
ffff8c1e6000-ffff8c1e7000 ---p 00000000 00:00 0
ffff8c1e7000-ffff8c288000 rw-p 00000000 00:00 0
ffff8c288000-ffff8c289000 ---p 00000000 00:00 0
ffff8c289000-ffff8c32a000 rw-p 00000000 00:00 0
ffff8c32a000-ffff8c32b000 ---p 00000000 00:00 0
ffff8c32b000-ffff8c3cc000 rw-p 00000000 00:00 0
ffff8c3cc000-ffff8c3cd000 ---p 00000000 00:00 0
ffff8c3cd000-ffff8c46e000 rw-p 00000000 00:00 0
ffff8c46e000-ffff8c46f000 ---p 00000000 00:00 0
ffff8c46f000-ffff8c510000 rw-p 00000000 00:00 0
ffff8c510000-ffff8c511000 ---p 00000000 00:00 0
ffff8c511000-ffff8c5b2000 rw-p 00000000 00:00 0
ffff8c5b2000-ffff8c5b3000 ---p 00000000 00:00 0
ffff8c5b3000-ffff8c654000 rw-p 00000000 00:00 0
ffff8c654000-ffff8c655000 ---p 00000000 00:00 0
ffff8c655000-ffff8c6f6000 rw-p 00000000 00:00 0
ffff8c6f6000-ffff8c6f7000 ---p 00000000 00:00 0
ffff8c6f7000-ffff8c798000 rw-p 00000000 00:00 0
ffff8c798000-ffff8c799000 ---p 00000000 00:00 0
ffff8c799000-ffff8c83a000 rw-p 00000000 00:00 0
ffff8c83a000-ffff8c83b000 ---p 00000000 00:00 0
ffff8c83b000-ffff8c8dc000 rw-p 00000000 00:00 0
ffff8c8dc000-ffff8c8dd000 ---p 00000000 00:00 0
ffff8c8dd000-ffff8c97e000 rw-p 00000000 00:00 0
ffff8c97e000-ffff8c97f000 ---p 00000000 00:00 0
ffff8c97f000-ffff8ca50000 rw-p 00000000 00:00 0
ffff8ca56000-ffff8eb20000 rw-p 00000000 00:00 0
ffff8eb28000-ffff8ec29000 rw-p 00000000 00:00 0
ffff8ec29000-ffff8ec5b000 r--p 00000000 103:01 3487 /usr/lib/locale/C.UTF-8/LC_CTYPE
ffff8ec5b000-ffff8ef41000 r--p 00000000 103:01 11127 /usr/lib/locale/locale-archive
ffff8ef41000-ffff8ef43000 rw-p 00000000 00:00 0
ffff8ef43000-ffff8f09e000 r-xp 00000000 103:01 13668 /usr/lib/aarch64-linux-gnu/libc-2.31.so
ffff8f09e000-ffff8f0ad000 ---p 0015b000 103:01 13668 /usr/lib/aarch64-linux-gnu/libc-2.31.so
ffff8f0ad000-ffff8f0b1000 r--p 0015a000 103:01 13668 /usr/lib/aarch64-linux-gnu/libc-2.31.so
ffff8f0b1000-ffff8f0b3000 rw-p 0015e000 103:01 13668 /usr/lib/aarch64-linux-gnu/libc-2.31.so
ffff8f0b3000-ffff8f0b6000 rw-p 00000000 00:00 0
ffff8f0b6000-ffff8f0c9000 r-xp 00000000 103:01 3886 /usr/lib/aarch64-linux-gnu/libgcc_s.so.1
ffff8f0c9000-ffff8f0d8000 ---p 00013000 103:01 3886 /usr/lib/aarch64-linux-gnu/libgcc_s.so.1
ffff8f0d8000-ffff8f0d9000 r--p 00012000 103:01 3886 /usr/lib/aarch64-linux-gnu/libgcc_s.so.1
ffff8f0d9000-ffff8f0da000 rw-p 00013000 103:01 3886 /usr/lib/aarch64-linux-gnu/libgcc_s.so.1
ffff8f0da000-ffff8f0f6000 r-xp 00000000 103:01 13680 /usr/lib/aarch64-linux-gnu/libpthread-2.31.so
ffff8f0f6000-ffff8f105000 ---p 0001c000 103:01 13680 /usr/lib/aarch64-linux-gnu/libpthread-2.31.so
ffff8f105000-ffff8f106000 r--p 0001b000 103:01 13680 /usr/lib/aarch64-linux-gnu/libpthread-2.31.so
ffff8f106000-ffff8f107000 rw-p 0001c000 103:01 13680 /usr/lib/aarch64-linux-gnu/libpthread-2.31.so
ffff8f107000-ffff8f10b000 rw-p 00000000 00:00 0
ffff8f10b000-ffff8f1a4000 r-xp 00000000 103:01 13670 /usr/lib/aarch64-linux-gnu/libm-2.31.so
ffff8f1a4000-ffff8f1b4000 ---p 00099000 103:01 13670 /usr/lib/aarch64-linux-gnu/libm-2.31.so
ffff8f1b4000-ffff8f1b5000 r--p 00099000 103:01 13670 /usr/lib/aarch64-linux-gnu/libm-2.31.so
ffff8f1b5000-ffff8f1b6000 rw-p 0009a000 103:01 13670 /usr/lib/aarch64-linux-gnu/libm-2.31.so
ffff8f1b6000-ffff8f1e5000 r-xp 00000000 103:01 3378 /usr/lib/aarch64-linux-gnu/libcrypt.so.1.1.0
ffff8f1e5000-ffff8f1f5000 ---p 0002f000 103:01 3378 /usr/lib/aarch64-linux-gnu/libcrypt.so.1.1.0
ffff8f1f5000-ffff8f1f6000 r--p 0002f000 103:01 3378 /usr/lib/aarch64-linux-gnu/libcrypt.so.1.1.0
ffff8f1f6000-ffff8f1f7000 rw-p 00030000 103:01 3378 /usr/lib/aarch64-linux-gnu/libcrypt.so.1.1.0
ffff8f1f7000-ffff8f1ff000 rw-p 00000000 00:00 0
ffff8f1ff000-ffff8f202000 r-xp 00000000 103:01 13669 /usr/lib/aarch64-linux-gnu/libdl-2.31.so
ffff8f202000-ffff8f211000 ---p 00003000 103:01 13669 /usr/lib/aarch64-linux-gnu/libdl-2.31.so
ffff8f211000-ffff8f212000 r--p 00002000 103:01 13669 /usr/lib/aarch64-linux-gnu/libdl-2.31.so
ffff8f212000-ffff8f213000 rw-p 00003000 103:01 13669 /usr/lib/aarch64-linux-gnu/libdl-2.31.so
ffff8f213000-ffff8f21a000 r-xp 00000000 103:01 13682 /usr/lib/aarch64-linux-gnu/librt-2.31.so
ffff8f21a000-ffff8f229000 ---p 00007000 103:01 13682 /usr/lib/aarch64-linux-gnu/librt-2.31.so
ffff8f229000-ffff8f22a000 r--p 00006000 103:01 13682 /usr/lib/aarch64-linux-gnu/librt-2.31.so
ffff8f22a000-ffff8f22b000 rw-p 00007000 103:01 13682 /usr/lib/aarch64-linux-gnu/librt-2.31.so
ffff8f22b000-ffff8f244000 r-xp 00000000 103:01 9812 /usr/lib/aarch64-linux-gnu/libz.so.1.2.11
ffff8f244000-ffff8f253000 ---p 00019000 103:01 9812 /usr/lib/aarch64-linux-gnu/libz.so.1.2.11
ffff8f253000-ffff8f254000 r--p 00018000 103:01 9812 /usr/lib/aarch64-linux-gnu/libz.so.1.2.11
ffff8f254000-ffff8f255000 rw-p 00019000 103:01 9812 /usr/lib/aarch64-linux-gnu/libz.so.1.2.11
ffff8f255000-ffff8f276000 r-xp 00000000 103:01 13664 /usr/lib/aarch64-linux-gnu/ld-2.31.so
ffff8f277000-ffff8f27b000 rw-p 00000000 00:00 0
ffff8f27c000-ffff8f283000 r--s 00000000 103:01 19337 /usr/lib/aarch64-linux-gnu/gconv/gconv-modules.cache
ffff8f283000-ffff8f285000 r--p 00000000 00:00 0 [vvar]
ffff8f285000-ffff8f286000 r-xp 00000000 00:00 0 [vdso]
ffff8f286000-ffff8f287000 r--p 00021000 103:01 13664 /usr/lib/aarch64-linux-gnu/ld-2.31.so
ffff8f287000-ffff8f289000 rw-p 00022000 103:01 13664 /usr/lib/aarch64-linux-gnu/ld-2.31.so
ffffe4ef0000-ffffe56ef000 rw-p 00000000 00:00 0 [stack]
Aborted (core dumped)
</code></pre> Ruby master - Bug #18981 (Closed): Backport bundle loader option to stable versionshttps://bugs.ruby-lang.org/issues/189812022-08-29T09:22:11Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><a href="https://github.com/ruby/ruby/pull/6193" class="external">https://github.com/ruby/ruby/pull/6193</a> is needed by macOS 13.0(Ventura).</p>
<p>I created the following patches.</p>
<ul>
<li>for Ruby 2.7: <a href="https://github.com/ruby/ruby/pull/6297" class="external">https://github.com/ruby/ruby/pull/6297</a>
</li>
<li>for Ruby 3.0: <a href="https://github.com/ruby/ruby/pull/6298" class="external">https://github.com/ruby/ruby/pull/6298</a>
</li>
<li>for Ruby 3.1: <a href="https://github.com/ruby/ruby/pull/6296" class="external">https://github.com/ruby/ruby/pull/6296</a>
</li>
</ul>
<p>I'm not sure <code>mjit_worker.c</code> changes are correct.</p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/51839">@katei (Yuta Saito)</a> or <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/10073">@k0kubun (Takashi Kokubun)</a> Can you review them?</p> Ruby master - Misc #18976 (Closed): [ANN] blade.nagaokaut.ac.jp is downhttps://bugs.ruby-lang.org/issues/189762022-08-25T02:28:05Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>The mail archive server named <code>blade.nagaokaut.ac.jp</code> is down now.</p>
<p>blade had some hardware issues. Prof. Hara tries to salvage mail data and rebuild blade. But It's difficult status.</p>
<p>I have a plan to migrate Ruby mail server includes mailing-list to Google workspace. I also rebuild mail archives using Google groups or others.</p>
<p>Sorry for the inconvenient experience.</p>
<p>FYI: original announce in Japanese <a href="https://github.com/ruby-no-kai/official/issues/306#issuecomment-1207819210" class="external">https://github.com/ruby-no-kai/official/issues/306#issuecomment-1207819210</a></p> Ruby master - Bug #18912 (Closed): Build failure with Xcode 14 and macOS 13 (Ventura) Betahttps://bugs.ruby-lang.org/issues/189122022-07-14T05:40:17Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>TL;DR: We fixed this issue at Ruby 2.7-3.1 and master branch. But the stable versions are not released yet.</p>
<ul>
<li>Option 1: We strongly recommend to not upgrade Xcode 14 and its toolchains for macOS 12(Monterey) users. If you already update Xcode 14, you remove them with <code>sudo rm -rf /Library/Developer/CommandLineTools</code> and install Xcode 13.x or toolchains from <a href="https://developer.apple.com/download/all" class="external">https://developer.apple.com/download/all</a>
</li>
<li>Option 2: macOS 13 (Ventura) couldn't install Xcode13. We should add <code>--without=+,bigdecimal --enable-shared</code> to the <code>configure</code> option.</li>
</ul>
<hr>
<p>Today, I tried to build ruby master with macOS 13 (Ventura) Beta. It breaks the build status caused by Xcode 14 beta changes.</p>
<ol>
<li>Build failed without <code>--enable-shared</code>.</li>
</ol>
<p>I build ruby master without <code>--enable-shared</code> option. I got the following error.</p>
<pre><code>(snip)
linking shared-object -test-/arith_seq/extract.bundle
Undefined symbols for architecture arm64:
"_rb_arithmetic_sequence_extract", referenced from:
_arith_seq_s_extract in extract.o
"_rb_ary_new_capa", referenced from:
_arith_seq_s_extract in extract.o
"_rb_ary_store", referenced from:
_arith_seq_s_extract in extract.o
"_rb_define_singleton_method", referenced from:
_Init_extract in extract.o
"_rb_path2class", referenced from:
_Init_extract in extract.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</code></pre>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/51839">@katei (Yuta Saito)</a> says this error affects with <code>-undefined dynamic_lookup</code> flags.</p>
<ol start="2">
<li>Build error with bigdecimal</li>
</ol>
<p>With <code>--enabled-shared</code> resolved the first error. But I got the another build failure.</p>
<pre><code>compiling bigdecimal.c
In file included from bigdecimal.c:13:
In file included from ./bigdecimal.h:14:
./missing.h:127:1: error: static declaration of 'rb_rational_num' follows non-static declaration
rb_rational_num(VALUE rat)
^
../.././include/ruby/internal/intern/rational.h:128:7: note: previous declaration is here
VALUE rb_rational_num(VALUE rat);
^
In file included from bigdecimal.c:13:
In file included from ./bigdecimal.h:14:
(snip)
</code></pre>
<p>It's affected with <code>static inline</code> declaration in missing.h of bigdecimal.</p>
<ol start="3">
<li>test failure with mjit</li>
</ol>
<p>I could build with <code>--with-out-ext=+,bigdecimal --enable-share</code> option. But I also got the test failure with mjit.</p>
<pre><code>[215/402] TestMJIT#test_lambda_longjmp = 0.19 s
192) Failure:
TestMJIT#test_lambda_longjmp [/Users/hsbt/Documents/github.com/ruby/ruby/test/ruby/test_mjit.rb:1045]:
Expected 1 times of JIT success, but succeeded 0 times.
script:
"""
fib = lambda do |x|
return x if x == 0 || x == 1
fib.call(x-1) + fib.call(x-2)
end
print fib.call(5)
"""
stderr:
"""
Undefined symbols for architecture arm64:
"_mjit_call_p", referenced from:
__mjit0 in _ruby_mjit_p39885u0-643ab5.o
_vm_sendish in _ruby_mjit_p39885u0-643ab5.o
</code></pre>
<p>I already shared this to <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/10073">@k0kubun (Takashi Kokubun)</a> .</p>
<p>macOS 13 beta is still development status. I will track this until the official release date.</p> Ruby master - Misc #18687 (Closed): [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0https://bugs.ruby-lang.org/issues/186872022-04-09T06:06:05Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Today, I migrated this tracker Redmine 4.2 to 5.0.</p>
<p>It has the following major changes.</p>
<ul>
<li>Based on Rails 6.1.</li>
<li>Allowed username mention like <code>@hsbt</code> with autocomplete.</li>
<li>Support CommonMaker for Markdown formatting.</li>
</ul>
<p>Release note is here: <a href="https://www.redmine.org/news/135" class="external">https://www.redmine.org/news/135</a></p>
<p>And I change the Ruby runtime version to 3.1 with <code>--jit</code> option on Heroku.</p>
<p>If you have any issues with this change. Please comment this ticket or file to <a href="https://github.com/ruby/b.r-l.o/issues" class="external">https://github.com/ruby/b.r-l.o/issues</a>.</p>
<p>Thanks all.</p> Ruby master - Feature #18571 (Closed): Removed the bundled sources from release package after Rub...https://bugs.ruby-lang.org/issues/185712022-02-04T11:45:12Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>We shipped release package with the 3rd party source for mswin environment especially.</p>
<p>The current status is here:</p>
<ul>
<li>libyaml: psych gem, ruby repo and package always bundled it.</li>
<li>libffi: only ruby package bundled it. fiddle gem and repo are not bundled.</li>
<li>zlib: gem, ruby repo and package don't bundled.</li>
</ul>
<p>I propose we stop bundling the third-party source for security and maintenance reasons. Because we have <a href="https://github.com/microsoft/vcpkg" class="external">vcpkg</a> for mswin environment today. So, vcpkg provides the runtime for psych, fiddle and zlib.</p> Ruby master - Feature #18513 (Closed): Hide patchlevel from `ruby -v`https://bugs.ruby-lang.org/issues/185132022-01-25T12:39:29Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>We still show patch-level like <code>3.1.0p0</code> with <code>ruby -v</code>. But it has no benefit for users.</p>
<p>In fact, I heard "What does "p0" mean?" from Ruby programmer in this week.</p>
<p>I think we should show only <code>3.2.0</code> after Ruby 3.2.0 for especially new users.</p> Ruby master - Bug #18142 (Closed): Segmentation fault with Ruby 3.0.2https://bugs.ruby-lang.org/issues/181422021-09-02T00:07:05Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This may be similar with <a href="https://bugs.ruby-lang.org/issues/17584" class="external">https://bugs.ruby-lang.org/issues/17584</a></p>
<p>I got the following error with Ruby 3.0.2+jit and fcgid gem, tDiary-5.1.6.</p>
<pre><code>[BUG] Segmentation fault at 0x0000000000000027
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
-- Machine register context ------------------------------------------------
RIP: 0x00007f2f63217468 RBP: 0x0000561b53017178 RSP: 0x00007f2f5f444d40
RAX: 0x0000000000000027 RBX: 0x0000000000000000 RCX: 0x0000000000000000
RDX: 0x0000561b53083b20 RDI: 0x0003aaa100140005 RSI: 0x0000561b519c2fa8
R8: 0x0000000000000001 R9: 0x000000000000007c R10: 0x00007f2f580008d0
R11: 0x00007f2f58000080 R12: 0x00007f2f63393e00 R13: 0x0000000000000001
R14: 0x0000000000000028 R15: 0x000000000000009a EFL: 0x0000000000010246
-- C level backtrace information -------------------------------------------
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(rb_print_backtrace+0x11) [0x7f2f63375d73] vm_dump.c:758
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(rb_vm_bugreport) vm_dump.c:998
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(rb_bug_for_fatal_signal+0xf4) [0x7f2f63180e04] error.c:786
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(sigsegv+0x4d) [0x7f2f632ccc4d] signal.c:960
/lib/x86_64-linux-gnu/libc.so.6(0x7f2f62efe210) [0x7f2f62efe210]
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(rb_mjit_inlinable_iseq+0x38) [0x7f2f63217468] mjit_compile.c:451
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(set_compiling_iseqs+0x64) [0x7f2f631effae] mjit_worker.c:758
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(set_compiling_iseqs) mjit_worker.c:739
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(convert_unit_to_func+0x6c5) [0x7f2f631f2b35] mjit_worker.c:1199
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(CRITICAL_SECTION_START+0x0) [0x7f2f631f3469] mjit_worker.c:1488
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(mjit_worker) mjit_worker.c:1491
/home/hsbt/.rbenv/versions/3.0.2/lib/libruby.so.3.0(mjit_worker+0x1e) [0x7f2f6330d78e] thread_pthread.c:1942
/lib/x86_64-linux-gnu/libpthread.so.0(start_thread+0xd9) [0x7f2f62e82609]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f2f62fda293]
</code></pre>
<p>Full of log is here: <a href="https://gist.github.com/hsbt/5a3ce854820f8ab726a7d017dda2e7dd" class="external">https://gist.github.com/hsbt/5a3ce854820f8ab726a7d017dda2e7dd</a></p> Ruby master - Bug #18034 (Closed): Segmentation fault fiddle with `--enable-bundled-libffi` and m...https://bugs.ruby-lang.org/issues/180342021-07-09T06:16:34Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I always got a segmentation fault with <code>make test-all TESTS="fiddle"</code> and <code>--enable-bundled-libffi</code> on macOS.</p>
<p><a href="https://gist.github.com/hsbt/9f7dc9f62e9197b92c5a99384972dad3" class="external">https://gist.github.com/hsbt/9f7dc9f62e9197b92c5a99384972dad3</a></p> Ruby master - Feature #17873 (Closed): Update of default gems in Ruby 3.1https://bugs.ruby-lang.org/issues/178732021-05-20T10:45:25Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I promoted many standard libraries to the default gems. You can see them at <a href="https://stdgems.org/#default-gems-ruby-301" class="external">https://stdgems.org/#default-gems-ruby-301</a></p>
<p>I propose the following libraries to promote the bundled gems from the default gems.</p>
<pre><code>matrix
prime
net/ftp
net/smtp
net/pop
net/imap
</code></pre>
<p>They have primary maintainer in the canonical repository in github. So, they can release the new version with their convenience.</p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/12">@shugo (Shugo Maeda)</a> <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/182">@marcandre (Marc-Andre Lafortune)</a> Any thought?</p>
<p>And I also propose to extract the following libraries from the default gems.</p>
<pre><code>tracer
dbm
gdbm
</code></pre>
<p>They are no longer actively maintained and not widely used today.</p> Ruby master - Feature #17684 (Assigned): Remove `--disable-gems` from release version of Rubyhttps://bugs.ruby-lang.org/issues/176842021-03-10T12:51:46Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>In my understand, <code>--disable-gems</code> is only debugging feature for ruby-core team.</p>
<p>But some users enabled its option in test environment for performance or etc. So, <code>--disable-gems</code> option is wrong usage for some users.</p>
<ul>
<li><a href="https://github.com/rubygems/bundler/issues/7487#issuecomment-569901549" class="external">https://github.com/rubygems/bundler/issues/7487#issuecomment-569901549</a></li>
<li><a href="https://github.com/rubygems/rubygems/pull/4440#issue-587031184" class="external">https://github.com/rubygems/rubygems/pull/4440#issue-587031184</a></li>
</ul>
<p>We should remove it from package version of ruby.</p> Ruby master - Bug #17584 (Closed): Segmentation fault with Ruby 3.0https://bugs.ruby-lang.org/issues/175842021-01-26T12:10:19Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>In last week, I update Ruby 3.0 from Ruby 2.6.6 for my application. After that, I got the segmentation fault with following error.</p>
<pre><code>[BUG] Segmentation fault at 0x0000000000000046
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
-- Machine register context ------------------------------------------------
RIP: 0x00007fddf4e032f7 RBP: 0x00007fddf10314e0 RSP: 0x00007fddf10313b0
RAX: 0x0000000000000036 RBX: 0x0000000000000032 RCX: 0x0000000000000000
RDX: 0x0000000000000001 RDI: 0x00007fddf1031cc0 RSI: 0x00007fddf4f47250
R8: 0x0000000000000001 R9: 0x0000556a5d1fe6f0 R10: 0x0000556a5b9daf38
R11: 0x0000556a5cba899a R12: 0x0000556a5d1fe6f0 R13: 0x0000000000000028
R14: 0x0000000000000028 R15: 0x00007fddf4f846d4 EFL: 0x0000000000010246
-- C level backtrace information -------------------------------------------
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(rb_print_backtrace+0x11) [0x7fddf4f61773] vm_dump.c:758
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(rb_vm_bugreport) vm_dump.c:998
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(rb_bug_for_fatal_signal+0x162) [0x7fddf4d6dc72] error.c:786
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(sigsegv+0x4d) [0x7fddf4eb893d] signal.c:960
/lib/x86_64-linux-gnu/libc.so.6(0x7fddf4aeb210) [0x7fddf4aeb210]
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(precompile_inlinable_iseqs+0x127) [0x7fddf4e032f7] mjit_compile.c:525
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(mjit_compile+0x36e) [0x7fddf4e03dae] mjit_compile.c:581
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(CRITICAL_SECTION_START+0x0) [0x7fddf4dde6a2] mjit_worker.c:1163
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(convert_unit_to_func) mjit_worker.c:1166
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(CRITICAL_SECTION_START+0x0) [0x7fddf4ddf0f9] mjit_worker.c:1426
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(mjit_worker) mjit_worker.c:1429
/home/hsbt/.rbenv/versions/3.0.0/lib/libruby.so.3.0(mjit_worker+0x1e) [0x7fddf4ef944e] thread_pthread.c:1941
/lib/x86_64-linux-gnu/libpthread.so.0(start_thread+0xd9) [0x7fddf4a6f609]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7fddf4bc7293]
</code></pre>
<p>Full of log is here: <a href="https://gist.github.com/hsbt/05690e5c6915efdee47c623a3b829c5a" class="external">https://gist.github.com/hsbt/05690e5c6915efdee47c623a3b829c5a</a></p> Ruby master - Feature #17473 (Open): Make Pathname to embedded class of Rubyhttps://bugs.ruby-lang.org/issues/174732020-12-26T12:00:42Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>pathname is one of most useful utility class of Ruby. I'm happy to use Pathname without require it.</p>
<p>Any thought?</p> Ruby master - Feature #17303 (Closed): Remove webrick from stdlibhttps://bugs.ruby-lang.org/issues/173032020-11-02T11:13:08Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I propose to move webrick to bundled gems or remove it from stdlib of ruby.</p>
<p>We have several vulnerability issues in webrick gem.</p>
<p><a href="https://www.ruby-lang.org/en/news/2020/09/29/http-request-smuggling-cve-2020-25613/" class="external">https://www.ruby-lang.org/en/news/2020/09/29/http-request-smuggling-cve-2020-25613/</a></p>
<p>The ruby core team don't have enough time to handle them. We should remove webrick from default gems at least.</p>
<p>Patch for this feature: <a href="https://github.com/ruby/ruby/pull/3729" class="external">https://github.com/ruby/ruby/pull/3729</a></p> Ruby master - Feature #17267 (Closed): Remove Win32API at Ruby 3.0https://bugs.ruby-lang.org/issues/172672020-10-19T23:58:55Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><a href="https://github.com/ruby/ruby/blob/master/ext/win32/lib/Win32API.rb#L5" class="external">https://github.com/ruby/ruby/blob/master/ext/win32/lib/Win32API.rb#L5</a> says "Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead".</p>
<p>We have enough time to deprecate for this module.</p>
<p>Can we remove it from our repo?</p> Ruby master - Feature #16963 (Closed): Remove English.rb from Ruby 2.8/3.0https://bugs.ruby-lang.org/issues/169632020-06-16T12:40:33Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>English.rb is no longer maintained by ruby core team.</p>
<p>Can we remove it from our repository? The users can install if from rubygems.org now.</p> Ruby master - Bug #16892 (Closed): Reconsider the test directory name for schedulerhttps://bugs.ruby-lang.org/issues/168922020-05-15T00:14:32Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><code>test/scheduler</code> is broke the convention of test directory. We use only <code>class</code> or <code>module</code> name excepts <code>ruby</code> and <code>-ext-</code> for test/foo directory.</p>
<p>Should we use <code>test/fiber</code> or other?</p> Ruby master - Bug #16674 (Closed): Build issue of FreeBSD 12https://bugs.ruby-lang.org/issues/166742020-03-05T06:45:18Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>The current master branch and 2.7, 2.6 and 2.5 couldn't build with FreeBSD 12</p>
<p>see <a href="https://github.com/rbenv/ruby-build/issues/1272#issuecomment-455836665" class="external">https://github.com/rbenv/ruby-build/issues/1272#issuecomment-455836665</a></p>
<p>We can build with <code>--disable-dtrace</code> flag on FreeBSD 12.</p> Ruby master - Feature #16485 (Closed): Make rexml, rss to the bundled gemshttps://bugs.ruby-lang.org/issues/164852020-01-06T07:23:36Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I discussed about promote(demote?) rexml and rss to the bundled gems with <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/32">@kou (Kouhei Sutou)</a></p>
<p>Pros: <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/32">@kou (Kouhei Sutou)</a> can handle to maintain and release them conveniently.<br>
Cons: The users need to add <code>rexml</code> to their <code>Gemfile</code> after Ruby 2.8(3.0)</p> Ruby master - Feature #16484 (Closed): Remove xmlrpc and net-telnet from bundled gemshttps://bugs.ruby-lang.org/issues/164842020-01-06T07:06:21Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I added net-telnet(2015) and xmlrpc(2016) to bundled gems. They are the old protocol in 2020.</p>
<p>Should we remove them at Ruby 3.0?</p>
<p>The users can install them from rubygems manually.</p> Ruby master - Feature #16170 (Closed): Remove the unmaintained libraries from Ruby 2.7https://bugs.ruby-lang.org/issues/161702019-09-18T11:12:52Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I'm working to extract standard libraries to rubygems in recent years. So, the standard libraries will be promoted the default gems or bundled gems.</p>
<p>But I suggest removing some of the unmaintained libraries without default/bundled gems.</p>
<p>These are here:</p>
<ul>
<li>cmath</li>
<li>mutex_m</li>
<li>scanf</li>
<li>shell</li>
<li>sync</li>
<li>thwait</li>
<li>tracer</li>
</ul>
<p>We should reduce the maintenance cost for them.</p> Ruby master - Feature #15657 (Closed): Make webrick to bundled gemshttps://bugs.ruby-lang.org/issues/156572019-03-11T12:12:12Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>The maintenance of webrick is hard for the ruby core team because we should handle a lot of security issues in the future.</p>
<p>webrick was promoted the default gems in Ruby 2.5. It's a good time to promote the bundled gems from default gems before Ruby 3.0 release.</p> Ruby master - Feature #15581 (Rejected): Split tool/* files to tool and script directorieshttps://bugs.ruby-lang.org/issues/155812019-02-01T07:32:26Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>We use the tool directory for additional scripts like a utility, generator and etc.</p>
<p>But some files are required by <code>make</code> and <code>make install</code>. I think they are not the additional scripts, so It's the core toolchain.</p>
<p>I found the minimum requirements for <code>autoconf</code>, <code>configure</code>, <code>make</code>, <code>make install</code>, <code>make dist</code>.</p>
<pre><code>autoconf
tool/m4/ruby_mingw32.m4
tool/m4/ac_msg_result.m4
tool/m4/ruby_func_attribute.m4
tool/m4/_colorize_result_prepare.m4
tool/m4/ruby_rm_recursive.m4
tool/m4/ruby_setjmp_type.m4
tool/m4/ruby_replace_type.m4
tool/m4/ruby_prepend_option.m4
tool/m4/ruby_default_arch.m4
tool/m4/ruby_check_builtin_func.m4
tool/m4/ruby_cppoutfile.m4
tool/m4/ruby_dtrace_postprocess.m4
tool/m4/ruby_append_option.m4
tool/m4/ruby_try_cflags.m4
tool/m4/ruby_check_builtin_setjmp.m4
tool/m4/ruby_check_signedness.m4
tool/m4/ruby_defint.m4
tool/m4/ruby_universal_arch.m4
tool/m4/ruby_prog_gnu_ld.m4
tool/m4/ruby_check_printf_prefix.m4
tool/m4/ruby_werror_flag.m4
tool/m4/ruby_check_sysconf.m4
tool/m4/ruby_try_ldflags.m4
tool/m4/ruby_stack_grow_direction.m4
tool/m4/ruby_dtrace_available.m4
tool/m4/ruby_decl_attribute.m4
tool/m4/ruby_check_sizeof.m4
tool/m4/ruby_type_attribute.m4
tool/m4/colorize_result.m4
tool/m4/ruby_define_if.m4
tool/m4/ruby_append_options.m4
tool/m4/ruby_check_setjmp.m4
configure
tool/install-sh
tool/config.guess
tool/ifchange
tool/config.sub
tool/downloader.rb
make
tool/transcode-tblgen.rb
tool/gen_dummy_probes.rb
tool/id2token.rb
tool/mk_call_iseq_optimized.rb
tool/colorize.rb
tool/vcs.rb
tool/ruby_vm/models/instructions_unifications.rb
tool/ruby_vm/models/typemap.rb
tool/ruby_vm/models/trace_instructions.rb
tool/ruby_vm/models/bare_instructions.rb
tool/ruby_vm/models/c_expr.rb
tool/ruby_vm/models/operands_unifications.rb
tool/ruby_vm/models/instructions.rb
tool/ruby_vm/models/attribute.rb
tool/ruby_vm/scripts/insns2vm.rb
tool/ruby_vm/controllers/application_controller.rb
tool/ruby_vm/views/_insn_entry.erb
tool/ruby_vm/views/_insn_name_info.erb
tool/ruby_vm/views/vm.inc.erb
tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb
tool/ruby_vm/views/opt_sc.inc.erb
tool/ruby_vm/views/_insn_operand_info.erb
tool/ruby_vm/views/vmtc.inc.erb
tool/ruby_vm/views/_sp_inc_helpers.erb
tool/ruby_vm/views/_mjit_compile_insn.erb
tool/ruby_vm/views/mjit_compile.inc.erb
tool/ruby_vm/views/insns.inc.erb
tool/ruby_vm/views/_insn_stack_increase.erb
tool/ruby_vm/views/_c_expr.erb
tool/ruby_vm/views/_notice.erb
tool/ruby_vm/views/insns_info.inc.erb
tool/ruby_vm/views/_attributes.erb
tool/ruby_vm/views/_copyright.erb
tool/ruby_vm/views/_mjit_compile_ivar.erb
tool/ruby_vm/views/_leaf_helpers.erb
tool/ruby_vm/views/optunifs.inc.erb
tool/ruby_vm/views/_trace_instruction.erb
tool/ruby_vm/views/_mjit_compile_send.erb
tool/ruby_vm/views/_insn_len_info.erb
tool/ruby_vm/views/_mjit_compile_insn_body.erb
tool/ruby_vm/views/_insn_type_chars.erb
tool/ruby_vm/views/optinsn.inc.erb
tool/ruby_vm/loaders/vm_opts_h.rb
tool/ruby_vm/loaders/insns_def.rb
tool/ruby_vm/loaders/opt_insn_unif_def.rb
tool/ruby_vm/loaders/opt_operand_def.rb
tool/ruby_vm/helpers/c_escape.rb
tool/ruby_vm/helpers/dumper.rb
tool/ruby_vm/helpers/scanner.rb
tool/vpath.rb
tool/file2lastrev.rb
tool/config.sub
tool/ytab.sed
tool/insns2vm.rb
tool/mjit_archflag.sh
tool/node_name.rb
tool/generic_erb.rb
tool/transform_mjit_header.rb
tool/mkconfig.rb
tool/runruby.rb
make install
tool/rbinstall.rb
tool/fake.rb
make dist
tool/make-snapshot
tool/prereq.status
</code></pre>
<p>How about split tool/* to script/* without the above files?</p> Ruby master - Bug #15531 (Closed): Ignore gemspec files for rdoc.https://bugs.ruby-lang.org/issues/155312019-01-13T12:07:05Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Followed up <a href="https://bugs.ruby-lang.org/issues/14163#note-5" class="external">https://bugs.ruby-lang.org/issues/14163#note-5</a>.</p>
<p>The current documentation generated by rdoc shows gemspec files like:</p>
<p><a href="https://docs.ruby-lang.org/en/2.6.0/lib/csv/csv_gemspec.html" class="external">https://docs.ruby-lang.org/en/2.6.0/lib/csv/csv_gemspec.html</a></p>
<p>It should be ignored.</p> Ruby master - Misc #15530 (Closed): [ANN] Upgrading bugs.ruby-lang.org to Redmine 4.0https://bugs.ruby-lang.org/issues/155302019-01-13T01:36:48Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Now, I did upgrade bugs.ruby-lang.org to Redmine 4.0 from 3.2.</p>
<p>See, notable changes via official announcement.</p>
<p><a href="https://www.redmine.org/news/119" class="external">https://www.redmine.org/news/119</a></p>
<p>I migrated our custom plugins for Redmine 4.0 and Rails 5.2. When you encountered the unexpected behavior of the current bugs.ruby-lang.org, Please comment on this ticket or <a href="https://github.com/ruby/b.r-l.o/issues" class="external">https://github.com/ruby/b.r-l.o/issues</a>.</p> Ruby master - Bug #15015 (Closed): Build failure from `git clone`https://bugs.ruby-lang.org/issues/150152018-08-21T01:06:16Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I got build failure related mjit header.</p>
<pre><code>chkbuild002% make
BASERUBY = /usr/local/bin/ruby --disable=gems
CC = cc
LD = ld
LDSHARED = cc -shared
CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Werror=implicit-int -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -Werror=division-by-zero -Werror=deprecated-declarations -Wno-overlength-strings -Wmissing-noreturn -Werror=extra-tokens -std=gnu99
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -DRUBY_DEVEL=1 -fvisibility=hidden -DRUBY_EXPORT -fPIE -DCANONICALIZATION_FOR_MATHN
CPPFLAGS = -I. -I.ext/include/x86_64-freebsd11.2 -I./include -I. -I./enc/unicode/10.0.0
DLDFLAGS = -Wl,-soname,showflags -fstack-protector -pie
SOLIBS = -lelf -lexecinfo -lprocstat -lthr -lrt -lrt -ldl -lcrypt -lm
LANG = en_US.UTF-8
LC_ALL =
LC_CTYPE =
FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0)
Target: x86_64-unknown-freebsd11.2
Thread model: posix
InstalledDir: /usr/bin
translating probes probes.d
generating id.h
id.h updated
generating insns.inc
generating insns_info.inc
/usr/local/bin/ruby --disable=gems ./tool/gen_dummy_probes.rb ./probes.d > probes.dmyh
generating vm.inc
generating vm_call_iseq_optimized.inc
generating vmtc.inc
compiling vm.c
building rb_mjit_header.h
rb_mjit_header.h updated
./tool/ifchange: cannot create .ext/.timestamp/rb_mjit_header.time: No such file or directory
*** Error code 2
</code></pre>
<p>I manually create <code>mkdir -p .ext/.timestamp</code>. After that, it works.</p> Ruby master - Misc #14956 (Closed): Remove staled branches in svn repositoryhttps://bugs.ruby-lang.org/issues/149562018-08-01T03:48:11Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>the ruby svn repository has a lot of staled branches.</p>
<p>I will remove the following branches for migrating git.</p>
<pre><code>half-baked-1.9
KEIJU
KOSAKO
matzruby
mvm
new_gc
rexml_adds_tests
ricsin
RUBY
ruby_m17n
SER
SHIGEO
SPCOLTRIN
testunit
unlabeled-1.1.1
unlabeled-1.39.2
v1_0r
v1_1dev
v1_1r
win32-unicode-test
</code></pre>
<p>If you have any objection, Please comment this issue.</p> Ruby master - Bug #14842 (Closed): [ANN] ftp service is sunset in Jun 2018.https://bugs.ruby-lang.org/issues/148422018-06-12T04:08:59Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Unfortunately, We decided to shut down FTP service of ftp.ruby-lang.org. Because operating system of ftp.ruby-lang.org is EOL status soon. We need to migrate it with following steps.</p>
<ol>
<li>We will change ftp.ruby-lang.org to CDN provided by fastly. It's the end of FTP service. But we can use ftp.ruby-lang.org with http/https.</li>
<li>We will change the origin of ftp.ruby-lang.org and cache.ruby-lang.org to S3 buckets from the current dedicated server.</li>
</ol>
<p>I start 1. at this or next week. After that, I will announce it on this issue.</p> Ruby master - Misc #14769 (Closed): DevelopersMeeting20180621Japanhttps://bugs.ruby-lang.org/issues/147692018-05-17T12:10:21Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Date: 2018/06/21 (Thu)<br>
Time: 14:00-18:00 (JST)<br>
Place: Cookpad Inc. (Tokyo, Japan)<br>
Sign-up: <a href="https://ruby.connpass.com/event/88715/" class="external">https://ruby.connpass.com/event/88715/</a></p>
<p>Please comment your favorite ticket numbers you want to ask to discuss with your <em>SHORT</em> comment or summary.<br>
(your summary/comment will help us because we don't need to read all of ticket comments)</p>
<p><em>DO NOT</em> discuss then on this ticket, please.</p>
<p>From this time, we use a ticket to make dev-meeting agenda page instead of a wiki page <a href="https://bugs.ruby-lang.org/projects/ruby/wiki#Developer-Meetings" class="external">https://bugs.ruby-lang.org/projects/ruby/wiki#Developer-Meetings</a>.</p>
<a name="NOTE"></a>
<h1 >NOTE<a href="#NOTE" class="wiki-anchor">¶</a></h1>
<p>Dev meeting <em>IS NOT</em> a decision making place. All decisions should be done at the bug tracker.<br>
Dev meeting is a place we can ask Matz, nobu, nurse and other developers directly.<br>
Matz is a very busy person. Take this opportunity to ask him. If you can not attend, other attendees can ask instead of you (if attendees can understand your issue).<br>
We will write a log about discussion to a file or to each ticket in English.<br>
All activities are best-effort (keep in mind that most of us are volunteer developers).<br>
The date, time and place is scheduled according to when/where we can reserve Matz's time.</p>
<a name="Agenda"></a>
<h1 >Agenda<a href="#Agenda" class="wiki-anchor">¶</a></h1>
<a name="Next-dev-meeting"></a>
<h2 >Next dev-meeting<a href="#Next-dev-meeting" class="wiki-anchor">¶</a></h2>
<a name="About-26-timeframe"></a>
<h2 >About 2.6 timeframe<a href="#About-26-timeframe" class="wiki-anchor">¶</a></h2>
<a name="From-Attendees"></a>
<h2 >From Attendees<a href="#From-Attendees" class="wiki-anchor">¶</a></h2>
<p>(will be edited later)<br>
(if you have a write access permission, please list directly)</p>
<ul>
<li>[Feature <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Use getcontext/setcontext on OS X (Open)" href="https://bugs.ruby-lang.org/issues/13881">#13881</a>] Use getcontext/setcontext on OS X</li>
<li>[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: `clone` can generate strange objects (Closed)" href="https://bugs.ruby-lang.org/issues/14847">#14847</a>] <code>clone</code> can generate strange objects
<ul>
<li>we found several strange behavior so let's clear the specification</li>
</ul>
</li>
<li>[Feature <a class="issue tracker-2 status-6 priority-4 priority-default closed" title="Feature: BigDecimal short form / shorthand (Rejected)" href="https://bugs.ruby-lang.org/issues/13625">#13625</a>] BigDecimal short form / shorthand
<ul>
<li>mrkn: BigDecimal is not a core class, so we cannot add such a syntax sugar.</li>
</ul>
</li>
<li>[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Introduce 2nd GC heap named Transient heap (Closed)" href="https://bugs.ruby-lang.org/issues/14858">#14858</a>] Introduce 2nd GC heap named Transient heap (ko1)
<ul>
<li>introduce new memory management technique.</li>
</ul>
</li>
<li>[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Subtle behaviors with endless range (Closed)" href="https://bugs.ruby-lang.org/issues/14699">#14699</a>] Subtle behaviors with endless range (mame)
<ul>
<li>Need to be discussed with mrkn</li>
</ul>
</li>
<li>[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Endless Range with nil (Closed)" href="https://bugs.ruby-lang.org/issues/14845">#14845</a>] Endless Range with nil (mame)
<ul>
<li>Should explicit nil for endless range (like (1..nil)) be prohibited or not?</li>
</ul>
</li>
<li>[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Endless Range Support in irb (Closed)" href="https://bugs.ruby-lang.org/issues/14824">#14824</a>] Endless Range Support in irb (aycabta)</li>
<li>[Feature <a class="issue tracker-2 status-6 priority-4 priority-default closed" title="Feature: Last token of endless range should have EXPR_END (Rejected)" href="https://bugs.ruby-lang.org/issues/14808">#14808</a>] Last token of endless range should have EXPR_END (aycabta)</li>
</ul>
<a name="From-non-attendees"></a>
<h2 >From non-attendees<a href="#From-non-attendees" class="wiki-anchor">¶</a></h2>
<p>(will be edited later)<br>
(if you have a write access, please list directly)</p>
<ul>
<li>[Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Enumerator.generate (Closed)" href="https://bugs.ruby-lang.org/issues/14781">#14781</a>] Enumerator#generate (zverok)
<ul>
<li>more reasonable version of Object#enumerate proposed for the previous meeting.</li>
</ul>
</li>
<li>[Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: RubyVM::MJIT.pause / RubyVM::MJIT.resume (Closed)" href="https://bugs.ruby-lang.org/issues/14830">#14830</a>] RubyVM::MJIT.pause / RubyVM::MJIT.resume (k0kubun)
<ul>
<li>Is it okay to add such methods? If so, is there any comment for the behavior described in the ticket?</li>
</ul>
</li>
<li>[Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Proper pattern matching (Closed)" href="https://bugs.ruby-lang.org/issues/14709">#14709</a>] Proper pattern matching (zverok)</li>
<li>[Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Startless range (Closed)" href="https://bugs.ruby-lang.org/issues/14799">#14799</a>] Startless range (zverok)</li>
<li>[Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Comparable#clamp with a range (Closed)" href="https://bugs.ruby-lang.org/issues/14784">#14784</a>] One-sided Comparable#clamp (with endless/startless ranges) (zverok)</li>
<li>[Feature <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: [PATCH] implement Timeout in VM (Open)" href="https://bugs.ruby-lang.org/issues/14859">#14859</a>] Timeout in VM (normalperson)
<ul>
<li>Still needs some work, mainly wondering if the idea of moving this part of stdlib into core VM is acceptable or not. No semantic changes except speed improvement.</li>
</ul>
</li>
</ul> Ruby master - Misc #14632 (Closed): [ANN] git.ruby-lang.orghttps://bugs.ruby-lang.org/issues/146322018-03-26T11:47:37Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I prepared git.ruby-lang.org. It's official ruby repository of Git.</p>
<p><a href="https://git.ruby-lang.org/ruby.git/" class="external">https://git.ruby-lang.org/ruby.git/</a></p>
<p>This repository is read-only yet. I start to migrate svn to git step by step.</p>
<ol>
<li>Migrate toolchain like <code>tool/make-snapshot</code> to git.ruby-lang.org from svn.ruby-lang.org.</li>
<li>Improve cgit and access configuration.</li>
<li>To support git repository for bug.ruby-lang.org. PS. redmine could not support remote git repository.</li>
<li>Make write-access mode to git.ruby-lang.org. and make the read-only mode to svn.ruby-lang.org.</li>
</ol> Ruby master - Bug #14481 (Closed): Backport request for RubyGems 2.7.6https://bugs.ruby-lang.org/issues/144812018-02-16T11:01:11Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>RubyGems 2.7.6 has been released. It contained the several vulnerability fixes.</p>
<p><a href="http://blog.rubygems.org/2018/02/15/2.7.6-released.html" class="external">http://blog.rubygems.org/2018/02/15/2.7.6-released.html</a></p>
<p>I created patches for all of the active branches of Ruby.</p>
<a name="rubygems-276-for-ruby25patch"></a>
<h3 >rubygems-276-for-ruby25.patch<a href="#rubygems-276-for-ruby25patch" class="wiki-anchor">¶</a></h3>
<p>This patch for upgrading RubyGems 2.7.3 to 2.7.6 and tiny changes for test-case. So, It includes following fixes:</p>
<ul>
<li><a href="https://github.com/rubygems/rubygems/pull/2189" class="external">https://github.com/rubygems/rubygems/pull/2189</a></li>
<li><a href="https://github.com/rubygems/rubygems/pull/2194" class="external">https://github.com/rubygems/rubygems/pull/2194</a></li>
</ul>
<a name="rubygems-276-for-ruby24patch-and-rubygems-276-for-ruby23patch"></a>
<h3 >rubygems-276-for-ruby24.patch and rubygems-276-for-ruby23.patch<a href="#rubygems-276-for-ruby24patch-and-rubygems-276-for-ruby23patch" class="wiki-anchor">¶</a></h3>
<p>These patches contained RubyGems 2.7.6 security fixes and <a href="https://github.com/rubygems/rubygems/pull/2194" class="external">tempfile leak fixes</a>.</p>
<a name="rubygems-276-for-ruby22patch"></a>
<h3 >rubygems-276-for-ruby22.patch<a href="#rubygems-276-for-ruby22patch" class="wiki-anchor">¶</a></h3>
<p>This patch fixed security vulnerabilities for RubyGems 2.7.6. But I removed patch for "Prevent path traversal when writing to a symlinked basedir outside of the root. Discovered by nmalkin, fixed by Jonathan Claudius and Samuel Giddins." (It was not assigned CVE number)</p>
<p>Because to support packaging with symlink was provided after RubyGems 2.5.</p>
<p><a href="https://github.com/rubygems/rubygems/pull/1209" class="external">https://github.com/rubygems/rubygems/pull/1209</a></p>
<p>So, Ruby 2.2 contained RubyGems 2.4. It's affected by its vulnerability.</p>
<p>To nalsh, nagachika, usa</p>
<p>Please backport them.</p> Ruby master - Feature #14385 (Rejected): Deprecate back-tick for Ruby 3.https://bugs.ruby-lang.org/issues/143852018-01-23T11:03:51Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>From <a href="https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20171212Japan#From-attendees" class="external">https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20171212Japan#From-attendees</a></p>
<p>Matz hopes to deprecate backtick syntax(``) for Ruby 3. We should warn about it at Ruby 2.6 (or 2.7?)</p>
<p>We need to consider them.</p>
<ul>
<li>warning message</li>
<li>warning level</li>
<li>?</li>
</ul> Ruby master - Bug #14219 (Rejected): package size of Ruby 2.5 is larger than 2.4https://bugs.ruby-lang.org/issues/142192017-12-22T03:19:56Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>A package of Ruby 2.5 was increased file size (about 15MB) from Ruby 2.4.</p>
<ul>
<li>ruby-2.4.3.tar.xz: 9.6M</li>
<li>ruby-2.5.0-rc1.tar.xz: 25M</li>
</ul>
<p>It was caused by <code>spec</code> directory.</p>
<pre><code>~/D/ruby-2.4.3 > du -md 1 | sort -rn | head
79 .
26 ./enc
14 ./ext
12 ./test
7 ./lib
7 ./doc
3 ./gems
2 ./sample
1 ./win32
1 ./tool
~/D/ruby-2.5.0-rc1 > du -md 1 | sort -rn | head
121 .
40 ./spec
26 ./enc
14 ./ext
12 ./test
9 ./lib
7 ./doc
3 ./gems
2 ./sample
1 ./win32
</code></pre>
<p>After releasing 2.5, I (and eregon?) try to reduce it size or remove them from tar package.</p> Ruby master - Feature #14041 (Closed): Remove NaCl supporthttps://bugs.ruby-lang.org/issues/140412017-10-22T09:41:42Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>NaCl and PNaCl is already sunset status.</p>
<p>see <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=239656#c160" class="external">https://bugs.chromium.org/p/chromium/issues/detail?id=239656#c160</a></p>
<p>We should remove its code.</p>
<p>I created a patch for this request.</p>
<p><a href="https://patch-diff.githubusercontent.com/raw/ruby/ruby/pull/1726.patch" class="external">https://patch-diff.githubusercontent.com/raw/ruby/ruby/pull/1726.patch</a></p>
<p>But I'm not familiar with configure.ac. Anyone remove nacl support on configure.ac?</p> Ruby master - Bug #13853 (Closed): Backport request r58323https://bugs.ruby-lang.org/issues/138532017-08-31T03:05:53Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I picked commit from json-2.0.4 fixes.</p>
<p>Please backport attachment patch to ruby 2.2 and 2.3.</p> Ruby master - Feature #13847 (Assigned): Gem activated problem for default gemshttps://bugs.ruby-lang.org/issues/138472017-08-29T08:53:45Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>If you try to use some default gems with a fixed version using Bundler, there are cases where the current RubyGems/Bundler/Ruby specification can not be used with the version specified by the user.</p>
<p>For example</p>
<pre><code>$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin17]
$ gem list | grep openssl
openssl (2.0.5, 2.0.4, default: 2.0.3)
</code></pre>
<p>In the environment such as <code>require 'openssl'</code>, the version that is activated when openssl is searched with openssl is the version found first, ie 2.0.5.</p>
<pre><code>$ ruby -ropenssl -e 'p OpenSSL::VERSION'
"2.0.5"
</code></pre>
<p>At this time, for example, suppose the user really wants to use openssl 2.0.4 and wrote the following Gemfile.</p>
<pre><code>> cat Gemfile
# frozen_string_literal: true
source "https://rubygems.org"
gem 'openssl', '2.0.4'
</code></pre>
<p>Unfortunately, since rubygems has required openssl before the bundler runs it will result in an activated error like this:</p>
<pre><code>> bundle exec ruby -ropenssl -e 'p OpenSSL::VERSION'
/path/to/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/runtime.rb:317:in `check_for_activated_spec!': You have already activated openssl 2.0.5, but your Gemfile requires openssl 2.0.4. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
</code></pre>
<p>This problem can be avoided by bundling it as a vendoring library under bundler's repository if it is a default gem implemented with pure ruby.</p>
<p><a href="Https://github.com/bundler/bundler/blob/master/lib/bundler/vendor/fileutils/lib/fileutils.rb" class="external">Https://github.com/bundler/bundler/blob/master/lib/bundler/vendor/fileutils/lib/fileutils.rb</a></p>
<p>In the case of bundler, by separating the namespace as <code>Bundler::FileUtils</code>, even the version specified by the user is made available without conflict at the time of activate. However, this method can not be used with C extension library.</p>
<p>Since we want to use json/psych from the bundler team with rubygems/bundler to serialize data, we need about whether we can implement a way to avoid some kind of C extension on Ruby itself.</p>
<p>I discussed with <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/7068">@indirect (André Arko)</a> who is maintainer of RubyGems/Bundler. We can resolve this problem like following feature of ruby.</p>
<pre><code>require_for_bundler 'json', '2.0.2'
</code></pre>
<p>When we declared above <code>require_for_bundler</code>, We put a json-2.0.2 to placed in a namespace like <code>Bundler::JSON</code>. There were similar issues in the past as well.</p>
<p><a href="https://bugs.ruby-lang.org/issues/10320" class="external">https://bugs.ruby-lang.org/issues/10320</a></p>
<p>I think that the way of writing <code>require 'json', version: '2.0.2', into: :Bundler</code> which extended the method like this issue seems like that. Also, in this use case, it seems to be enough to use <code>require 'json', version: :default, into: :Bundler</code> which forces the use of default gem.</p>
<p>Matz, How do you think about this feature?</p> Ruby master - Bug #13842 (Closed): Backport request: Rubygems-2.6.13https://bugs.ruby-lang.org/issues/138422017-08-28T08:07:54Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Rubygems-2.6.13 has been released now.<br>
Its version was required to backport all stable versions of Ruby.</p>
<p>I created patches about rubygems 2.6.13.</p>
<p>For Ruby 2.2 and 2.3: These patches contain only security fixes of rubygems-2.6.13<br>
For Ruby 2.4: This patches are rubygems-2.6.12 and 2.6.13.</p> Ruby master - Misc #13792 (Closed): Rename spec/rubyspec to spec/rubyhttps://bugs.ruby-lang.org/issues/137922017-08-09T02:15:54Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This is consistency issue for ruby/spec.</p>
<p>Other ruby implementations use <code>spec/ruby</code> directory name.</p>
<ul>
<li><a href="https://github.com/jruby/jruby/tree/master/spec/ruby" class="external">https://github.com/jruby/jruby/tree/master/spec/ruby</a></li>
<li><a href="https://github.com/graalvm/truffleruby/tree/master/spec/ruby" class="external">https://github.com/graalvm/truffleruby/tree/master/spec/ruby</a></li>
</ul>
<p>I think It is better if you change earlier, the commit log will not get moving commits.</p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/772">@Eregon (Benoit Daloze)</a> How do you think about this?</p> Ruby master - Feature #13653 (Closed): Bundled zlib helperhttps://bugs.ruby-lang.org/issues/136532017-06-13T12:01:47Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I created experimentally implementation for zlib-binding helper of bundled build.</p>
<ul>
<li><a href="https://github.com/ruby/ruby/pull/1638" class="external">https://github.com/ruby/ruby/pull/1638</a></li>
<li><a href="https://patch-diff.githubusercontent.com/raw/ruby/ruby/pull/1638.patch" class="external">https://patch-diff.githubusercontent.com/raw/ruby/ruby/pull/1638.patch</a></li>
</ul>
<p>I also maintain ruby-build that is multi-platform build wrapper for ruby. I often got build failure<br>
report caused to missing zlib headers. examples are here.</p>
<ul>
<li><a href="https://github.com/rbenv/ruby-build/issues/832" class="external">https://github.com/rbenv/ruby-build/issues/832</a></li>
<li><a href="https://github.com/rbenv/ruby-build/issues/780" class="external">https://github.com/rbenv/ruby-build/issues/780</a></li>
</ul>
<p>I hope to resolve this situation for ruby users.</p>
<p>my patch make to build zlib-binding with bundled zlib sources. It only enabled when It was given<br>
<code>--enable-bundled-zlib</code> option with <code>configure</code> phase.</p> Ruby master - Feature #13534 (Closed): Checking installation results of default gemshttps://bugs.ruby-lang.org/issues/135342017-05-02T02:44:33Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>It's a reminder.</p>
<p>I merged rubygems-2.6.12 at r58530. But it backports was removed <code>test_realworld_default_gem</code> from original release.<br>
Because <code>test_realworld_default_gem</code> verifies installation results of default gems. So ruby test suite is not supported after <code>make install</code> environment.</p>
<p>Therefore, We should add test suite of <code>tool/rbinstall.rb</code>for default gems/bundled gems/rdoc etc.</p> Ruby master - Feature #13508 (Assigned): How remove/refactor code related mathn library.https://bugs.ruby-lang.org/issues/135082017-04-25T07:23:26Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I removed mathn library at r58413 and r58432.</p>
<p>I have some concerns related mathn library. This issue is reminder for this concern.</p>
<ol>
<li>Still remains conditions for mathn loaded. ex. <a href="https://github.com/ruby/ruby/blob/trunk/array.c#L5755" class="external">https://github.com/ruby/ruby/blob/trunk/array.c#L5755</a>
</li>
<li>{complex,rational}.c have {nucomp,nurat}_canonicalization methods for mathn.</li>
<li>lib/cmath.rb have workaround code for mathn see. <a href="https://github.com/ruby/ruby/blob/trunk/lib/cmath.rb#L27" class="external">https://github.com/ruby/ruby/blob/trunk/lib/cmath.rb#L27</a>
</li>
</ol>
<p>I continue to discuss concerns to <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/482">@mrkn (Kenta Murata)</a></p> Ruby master - Feature #13403 (Closed): Gemify fiddlehttps://bugs.ruby-lang.org/issues/134032017-04-05T10:35:05Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of Fiddle module.</p> Ruby master - Feature #13335 (Closed): Gemify mathnhttps://bugs.ruby-lang.org/issues/133352017-03-20T07:05:59Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>mathn is deprecated [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: It might be better to make Mathn class deprecated (Closed)" href="https://bugs.ruby-lang.org/issues/10169">#10169</a>] from 2 years ago.</p>
<p>We should extract from stdlib at Ruby 2.5.0.</p> Ruby master - Feature #13334 (Closed): Removed deprecated mathn extentions.https://bugs.ruby-lang.org/issues/133342017-03-20T06:57:25Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><code>mathn/complex</code> and <code>mathn/rational</code> is deprecated from 2008. We should remove it before Ruby 3.0 release.</p>
<p><a href="https://github.com/ruby/ruby/pull/1542/files" class="external">https://github.com/ruby/ruby/pull/1542/files</a></p> Ruby master - Feature #13261 (Closed): Gemify sdbmhttps://bugs.ruby-lang.org/issues/132612017-02-28T07:43:04Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of SDBM module.</p> Ruby master - Feature #13256 (Closed): Gemify etchttps://bugs.ruby-lang.org/issues/132562017-02-27T08:54:34Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of Etc module.</p> Ruby master - Feature #13248 (Closed): Gemify gdbmhttps://bugs.ruby-lang.org/issues/132482017-02-24T06:40:40Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of GDBM module.</p> Ruby master - Feature #13213 (Closed): Gemify scanfhttps://bugs.ruby-lang.org/issues/132132017-02-14T11:02:35Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of Scanf module.</p> Ruby master - Feature #13206 (Closed): Gemify fcntlhttps://bugs.ruby-lang.org/issues/132062017-02-10T09:39:26Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of Fcntl module.</p> Ruby master - Feature #13201 (Closed): Gemify dbmhttps://bugs.ruby-lang.org/issues/132012017-02-08T09:56:42Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of DBM module.</p> Ruby master - Feature #13199 (Closed): Gemify strscanhttps://bugs.ruby-lang.org/issues/131992017-02-07T07:09:05Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of StringScanner class.</p> Ruby master - Feature #13197 (Closed): Gemify fileutilshttps://bugs.ruby-lang.org/issues/131972017-02-06T09:43:54Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of FileUtils module.</p> Ruby master - Feature #13186 (Closed): Gemify zlibhttps://bugs.ruby-lang.org/issues/131862017-02-03T12:38:12Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of zlib module.</p> Ruby master - Feature #13183 (Closed): Gemify datehttps://bugs.ruby-lang.org/issues/131832017-02-02T08:36:23Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of date module.</p> Ruby master - Feature #13182 (Closed): Gemify cmathhttps://bugs.ruby-lang.org/issues/131822017-02-02T07:28:24Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of cmath module.</p> Ruby master - Feature #13177 (Closed): Gemify csvhttps://bugs.ruby-lang.org/issues/131772017-02-01T09:10:15Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is tracking for gem release of csv module.</p> Ruby master - Bug #12799 (Closed): IPAddr#== throws an exception with objects that can't be conve...https://bugs.ruby-lang.org/issues/127992016-09-28T17:52:49Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I accidentally deleted issue #12779. It was created by <a href="https://bugs.ruby-lang.org/users/11301" class="external">https://bugs.ruby-lang.org/users/11301</a></p>
<hr>
<p>Description</p>
<p>IPAddr#== uses IPAddr#coerce_other to attempt to convert the 'other' object into an IPAddr for comparison.<br>
If this conversion fails, an exception is thrown, either 'IPAddr::InvalidAddressError' or a 'NoMethodError' referring to the lack of a 'to_i' function.</p>
<p>I would expect a call to == should only return a true or a false in any circumstances. If the tested object is not an IPAddr then clearly it should be false.</p>
<pre><code>IPAddr.new("1.1.1.1")=="sometext"
raises IPAddr::InvalidAddressError: invalid address
"sometext"==IPAddr.new("1.1.1.1")
</code></pre>
<p>returns false.</p>
<p>This also causes other core functions to fail..</p>
<pre><code>ip = IPAddr.new("1.1.1.1")
iprange = IPAddr.new("2.2.2.2") .. IPAddr.new("2.2.2.20")
arr = [ip, iprange]
arr.delete(iprange)
</code></pre>
<p>Results in NoMethodError: undefined method `to_i' for #Range:0x00000001901748</p>
<p>I have patched this at github <a href="https://github.com/ruby/ruby/pull/1435" class="external">https://github.com/ruby/ruby/pull/1435</a></p>
<p>and produced a diff file from the above pull request, apologies if I have done so incorrectly</p>
<hr>
<p>#1<a href="/issues">[ruby-core:77365]</a> Updated by Akinori MUSHA 5 days ago</p>
<p>Good point. Would you mind adding a regression test to test/test_ipaddr.rb?</p>
<hr>
<p>#2<a href="/issues">[ruby-core:77387]</a> Updated by David Sexton 4 days ago</p>
<p>Akinori MUSHA wrote:</p>
<blockquote>
<p>Good point. Would you mind adding a regression test to test/test_ipaddr.rb?</p>
</blockquote>
<p>No problem.</p>
<p>I have also noticed the same issue with <=> so have added a patch (and test) for that to return nil</p>
<p>Updates diff is at <a href="https://github.com/ruby/ruby/pull/1435.diff" class="external">https://github.com/ruby/ruby/pull/1435.diff</a></p> Ruby master - Feature #12733 (Closed): Bundle bundler to ruby corehttps://bugs.ruby-lang.org/issues/127332016-09-07T06:05:43Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>rubygems team has plan to migrate bundler into rubygems at rubygems 3.0.</p>
<p>ref. <a href="https://github.com/rubygems/rubygems/issues/1681" class="external">https://github.com/rubygems/rubygems/issues/1681</a></p>
<p>In current status, rubygems only use <code>Bundler</code> module on test suites.<br>
But we should track rubygems upstream step by step. I propose to bundle bundler<br>
for stdlib as default gem on ruby core repository.</p>
<p>but we have some consideration. such as</p>
<ul>
<li>bundler uses rspec for test suites. How to use rspec on ruby core repository?</li>
<li>Who are maintain bundler on ruby core repository?</li>
</ul>
<p>This issue is epic topic. Please comment your concerns or idea.</p> Ruby master - Bug #12248 (Rejected): Backport rubygems fix from upstream repo for Ruby 2.2.xhttps://bugs.ruby-lang.org/issues/122482016-04-05T03:55:19Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Rubygems fixed bug that was introduced by Rubygems 2.4.5 on Ruby 2.2.0.</p>
<p>This bug is backported 2.4.x branch on rubygems upstream repository.</p>
<ul>
<li><a href="https://github.com/rubygems/rubygems/issues/1256" class="external">https://github.com/rubygems/rubygems/issues/1256</a></li>
<li><a href="https://github.com/rubygems/rubygems/commit/65ab980dbc13d1b8e95b7d1f7266406720718c24" class="external">https://github.com/rubygems/rubygems/commit/65ab980dbc13d1b8e95b7d1f7266406720718c24</a></li>
</ul>
<p>Please backport attached patch into ruby_2_2 branch.</p> Ruby master - Feature #11982 (Closed): Rename test-samplehttps://bugs.ruby-lang.org/issues/119822016-01-12T13:41:40Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Ruby test suites named <code>make check</code> are following instructions.</p>
<ul>
<li>test</li>
<li>test-sample</li>
<li>btest-ruby</li>
<li>test-knownbug</li>
<li>test-testframework</li>
<li>test-almost</li>
</ul>
<p><code>test-sample</code> invokes <code>sample/test.rb</code>. It name is sample, but it's not sample code.<br>
It contains basically syntax tests, assigning tests, etc.</p>
<p>It should be move before test-testframework and after btest-ruby.<br>
I propose to rename test-sample and change dependency order.</p>
<p>What name that we use instead of <code>test-sample</code> ? Example for</p>
<ul>
<li>test-init</li>
<li>test-traditional</li>
<li>test-zero</li>
</ul> Ruby master - Misc #11876 (Closed): Scheduled maintenance 2016/01/01https://bugs.ruby-lang.org/issues/118762015-12-26T12:45:16Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>In 2016/01/01, I will be upgrading our subversion server named svn.ruby-lang.org.</p>
<p>It uses debian squeeze-lts now. squeeze-lts will end until Feb 2016. ref <a href="https://wiki.debian.org/LTS" class="external">https://wiki.debian.org/LTS</a><br>
I will upgrade it to debian jessie.</p>
<p>We will make repository readonly and migrate data, switch dns at Jan.1 afternoon.</p>
<p>Software upgrade details related svn.ruby-lang.org:</p>
<ul>
<li>subversion: 1.6.12 to 1.8.10</li>
<li>openssl: 0.9.8o to 1.0.1k</li>
<li>apache: 2.2.16 to 2.4.10</li>
</ul>
<p>For commiters:</p>
<p>I plan to migrate same keys from old server to new server. but some keys is invalid in jessie probably.<br>
If you can't commit new server. Please notice hsbt at ruby-lang.org.</p> Ruby master - Bug #11807 (Third Party's Issue): Build failure of Ruby 2.3.0 preview1 and 2https://bugs.ruby-lang.org/issues/118072015-12-11T22:36:21Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I got build failure reports for Ruby 2.3.0 preview 1 and 2.</p>
<ul>
<li><a href="https://github.com/rbenv/ruby-build/issues/833" class="external">https://github.com/rbenv/ruby-build/issues/833</a></li>
<li><a href="https://github.com/rbenv/ruby-build/issues/848" class="external">https://github.com/rbenv/ruby-build/issues/848</a></li>
<li><a href="https://gist.github.com/kurotaky/726a442fc8812fb2e142" class="external">https://gist.github.com/kurotaky/726a442fc8812fb2e142</a></li>
</ul> Ruby master - Bug #11585 (Closed): Broken ruby-core mailing list integration.https://bugs.ruby-lang.org/issues/115852015-10-12T11:23:10Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This is investigation issue of ruby-core:71053</p> Ruby master - Bug #11571 (Closed): シングルトンメソッドの中で def を使用した時の可視性が変わっているhttps://bugs.ruby-lang.org/issues/115712015-10-07T06:11:39Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>以下のコードの可視性が 2.3 と 2.2 で異なっているようです</p>
<p><a href="https://github.com/radar/paranoia/blob/rails4/lib/paranoia.rb#L189" class="external">https://github.com/radar/paranoia/blob/rails4/lib/paranoia.rb#L189</a></p>
<p>ruby 2.3.0dev (2015-10-05 trunk 52041) では private,<br>
ruby 2.2.4p179 (2015-10-05 revision 52032) では public になります。</p>
<p>意図しない非互換な変更と思いますので修正をお願いします。</p> Ruby master - Feature #11537 (Closed): Introduce "Safe navigation operator"https://bugs.ruby-lang.org/issues/115372015-09-18T09:29:09Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I sometimes write following code with rails application:</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="n">u</span> <span class="o">=</span> <span class="no">User</span><span class="p">.</span><span class="nf">find</span><span class="p">(</span><span class="nb">id</span><span class="p">)</span>
<span class="k">if</span> <span class="n">u</span> <span class="o">&&</span> <span class="n">u</span><span class="p">.</span><span class="nf">profile</span> <span class="o">&&</span> <span class="n">u</span><span class="p">.</span><span class="nf">profile</span><span class="p">.</span><span class="nf">thumbnails</span> <span class="o">&&</span> <span class="n">u</span><span class="p">.</span><span class="nf">profiles</span><span class="p">.</span><span class="nf">thumbnails</span><span class="p">.</span><span class="nf">large</span>
<span class="o">...</span>
</code></pre>
<p>or</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="c1"># Use ActiveSupport</span>
<span class="k">if</span> <span class="n">u</span><span class="p">.</span><span class="nf">try!</span><span class="p">(</span><span class="ss">:profile</span><span class="p">).</span><span class="nf">try!</span><span class="p">(</span><span class="ss">:thumbnails</span><span class="p">).</span><span class="nf">try!</span><span class="p">(</span><span class="ss">:large</span><span class="p">)</span>
<span class="o">...</span>
</code></pre>
<p>I hope to write shortly above code. Groovy has above operator named "Safe navigation operator" with "<code>?.</code>" syntax.<br>
Ruby can't use "<code>?.</code>" operator.</p>
<p>Can we use "<code>.?</code>" syntax. like this:</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="n">u</span> <span class="o">=</span> <span class="no">User</span><span class="p">.</span><span class="nf">find</span><span class="p">(</span><span class="nb">id</span><span class="p">)</span>
<span class="n">u</span><span class="o">.</span><span class="p">?</span><span class="n">profile</span><span class="o">.</span><span class="p">?</span><span class="n">thumbnails</span><span class="o">.</span><span class="p">?</span><span class="n">large</span>
</code></pre>
<p>Matz. How do you think about this?</p> Ruby master - Feature #11252 (Closed): Integrated "did_you_mean" gem to ruby-corehttps://bugs.ruby-lang.org/issues/112522015-06-12T08:01:50Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Matz hope to integrate "did_you_mean" gem to Ruby 2.3</p>
<p>We need to solve to following issues.</p>
<ul>
<li>integrate <a href="https://github.com/ConradIrwin/interception/" class="external">interception</a> gem</li>
<li>naming(better name for did_you_mean)</li>
<li>bundled policy(standard library? bundled gem?)</li>
</ul> Ruby master - Feature #11084 (Rejected): Use rb-readline instead of ext/readlinehttps://bugs.ruby-lang.org/issues/110842015-04-21T12:43:37Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Users who want to build ruby needs to prepare readline library.<br>
Example for <a href="https://github.com/sstephenson/ruby-build/wiki#suggested-build-environment" class="external">https://github.com/sstephenson/ruby-build/wiki#suggested-build-environment</a></p>
<p>Preparation of building environment is hard for many users.</p>
<p>I propose to use rb-readline that it's pure ruby implementation of readline instead of ext/readline.</p> Ruby master - Feature #11083 (Closed): Gemify net-telnethttps://bugs.ruby-lang.org/issues/110832015-04-21T12:07:09Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>net-telnet has no maintainer. but some issue is available.<br>
ref. <a class="issue tracker-1 status-6 priority-4 priority-default closed" title="Bug: net/telnet: strange implementation (Rejected)" href="https://bugs.ruby-lang.org/issues/8837">#8837</a> <a class="issue tracker-1 status-6 priority-4 priority-default closed" title="Bug: Net::Telnet waitfor('Waittime'=>0) may wait forever (Rejected)" href="https://bugs.ruby-lang.org/issues/8668">#8668</a> <a class="issue tracker-2 status-6 priority-4 priority-default closed" title="Feature: Net::Telnet.new のオプション (Rejected)" href="https://bugs.ruby-lang.org/issues/8324">#8324</a></p>
<p>I propose to gemify net-telnet and extract to github for development with community base.</p>
<p>see. <a href="https://github.com/ruby/net-telnet" class="external">https://github.com/ruby/net-telnet</a></p> Ruby master - Feature #11082 (Closed): Remove condition of RUBY_VERSION <= 1.9https://bugs.ruby-lang.org/issues/110822015-04-21T11:59:12Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I found needless condition at pathname.rb<br>
Ruby trunk should support only latest version of ruby :)</p> Backport21 - Backport #10521 (Closed): Tiny fix to entry of ChangeLoghttps://bugs.ruby-lang.org/issues/105212014-11-17T07:31:41Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>see. <a href="https://github.com/ruby/ruby/pull/760" class="external">https://github.com/ruby/ruby/pull/760</a></p>
<p>I create patch from github.</p> Ruby master - Feature #10199 (Closed): Drop to support Symbian https://bugs.ruby-lang.org/issues/101992014-09-03T05:44:25Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Symbian OS is ended in 2012.</p>
<p>see. <a href="http://symbian.nokia.com/" class="external">http://symbian.nokia.com/</a></p>
<p>We should removed symbian from support platforms.</p>
<p><a href="https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/SupportedPlatforms" class="external">https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/SupportedPlatforms</a></p> Ruby master - Feature #9852 (Closed): How to bundle test-unit2 and minitest5https://bugs.ruby-lang.org/issues/98522014-05-19T13:26:56Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I removed test-unit and minitest at <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Remove test-unit and minitest from stdlib. (Closed)" href="https://bugs.ruby-lang.org/issues/9711">#9711</a><br>
But we need to bundle testing framework with Ruby 2.2.0 continuously.</p>
<p>I hope to bundle test-unit2 and minitest5 with Ruby 2.2.0.</p>
<blockquote>
<p>kou<br>
Could you bundle and maintain test-unit2 on CRuby?</p>
</blockquote>
<blockquote>
<p>ryan<br>
Do you have any idea of gem installation mechanism with packaging?</p>
</blockquote> Ruby master - Feature #9851 (Closed): How to bundle test-unit2 and minitest5https://bugs.ruby-lang.org/issues/98512014-05-19T12:28:39Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I removed test-unit and minitest at <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Remove test-unit and minitest from stdlib. (Closed)" href="https://bugs.ruby-lang.org/issues/9711">#9711</a><br>
But we need to bundle testing framework with Ruby 2.2.0 continuously.</p>
<p>I hope to bundle test-unit2 and minitest5 with Ruby 2.2.0.</p>
<blockquote>
<p>kou<br>
Could you bundle and maintain test-unit2 on CRuby?</p>
</blockquote>
<blockquote>
<p>ryan<br>
Do you have any idea of gem installation mechanism with packaging?</p>
</blockquote> Ruby master - Bug #9250 (Closed): Bundler with trunk is not works.https://bugs.ruby-lang.org/issues/92502013-12-15T08:56:37Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I found that r44213 broke bundler includes 1.3.5 and 1.5.0.rc.1 with ruby-trunk.<br>
it is cause of SystemStackError.</p> Ruby master - Bug #8137 (Closed): r39819 以降 Process.kill(0, $$) が終了しないhttps://bugs.ruby-lang.org/issues/81372013-03-21T22:14:21Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>r39819 以降、以下のコードが終了せずにデッドロックとなります。</p>
<p>$ ruby -e 'Process.kill(0, $$)'</p>
<p>1.9.3, 2.0.0 では正常に終了します。この影響により例えば以下のようなコードが動かなくなるので、デッドロックは回避するようにして頂けないでしょうか。</p>
<p><a href="https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/pidlock.rb#L46" class="external">https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/pidlock.rb#L46</a></p> Ruby master - Bug #7924 (Closed): r39232 以降 net/http で正しく reponse を取得出来ないケースがあるhttps://bugs.ruby-lang.org/issues/79242013-02-24T07:15:03Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>r39232 以降、tDiary の以下のようなコードが動かなくなりました。</p>
<p><a href="https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185" class="external">https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185</a></p>
<p>単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた<br>
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。</p>
<p>response を inflate するケースの考慮漏れのような気がします。</p> Ruby master - Bug #7743 (Rejected): protected なメソッドを respond_to? で評価した時の結果が 1.9 と異なるhttps://bugs.ruby-lang.org/issues/77432013-01-27T21:24:26Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>以下のようなコードを 1.9.3 と 2.0.0 で実行した時の結果が異なるようです。</p>
<p>% cat respond_to.rb<br>
class A<br>
def initialize<br>
p respond_to?(:foo)<br>
p respond_to?(:foo, true)<br>
end</p>
<p>protected</p>
<p>def foo<br>
end<br>
end</p>
<p>A.new</p>
<p>実行結果は以下の通りです。</p>
<p>% ruby -v respond_to.rb<br>
ruby 1.9.3p375 (2013-01-18 revision 38876) [x86_64-darwin12.2.1]<br>
true<br>
true<br>
% ruby -v respond_to.rb<br>
ruby 2.0.0dev (2013-01-27 trunk 38955) [x86_64-darwin12.2.1]<br>
false<br>
true</p>
<p>この挙動の違いは不具合と思うのですが確認していただけないでしょうか。<br>
もし意図した挙動である場合、影響範囲が大きいので 1.9 の挙動に戻した方がよいと思います。</p> Ruby master - Bug #7481 (Closed): gem cleanup が正常に完了しないhttps://bugs.ruby-lang.org/issues/74812012-11-30T21:46:09Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>gem cleanup を実行すると先頭の gem のみ cleanup に成功し、以降の gem の cleanup に失敗してしまいます。</p>
<p>% yes | gem cleanup<br>
WARN: Unresolved specs during Gem::Specification.reset:<br>
rake (>= 0.8.1)<br>
WARN: Clearing out unresolved specs.<br>
Please report a bug if this causes problems.<br>
Cleaning up installed gems...<br>
Attempting to uninstall psych-1.3.4<br>
Successfully uninstalled psych-1.3.4<br>
Attempting to uninstall mongo-1.7.1<br>
Unable to uninstall mongo-1.7.1:<br>
Gem::InstallError: mongo is not installed in GEM_HOME, try:<br>
gem uninstall -i /Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0 mongo</p> Ruby master - Bug #7344 (Closed): gem pristine bigdecimal が失敗してしまうhttps://bugs.ruby-lang.org/issues/73442012-11-13T20:11:32Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。</p>
<p>% gem pristine bigdecimal<br>
Restoring gems to pristine condition...<br>
Building native extensions. This could take a while...<br>
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)<br>
ERROR: Failed to build gem native extension.</p>
<p>/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb<br>
checking for labs() in stdlib.h... yes<br>
checking for llabs() in stdlib.h... yes<br>
creating Makefile</p>
<p>make<br>
compiling bigdecimal.c<br>
linking shared-object bigdecimal.bundle</p>
<p>make install<br>
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 bigdecimal.bundle /Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.<br>
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: ‘bigdecimal.bundle’ and ‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ are the same file<br>
make: *** [install-so] Error 1</p>
<p>単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b で必ず止まってしまうので困っています。</p> Ruby master - Bug #7300 (Closed): Hash#[] の挙動が 1.9.3 と異なっているhttps://bugs.ruby-lang.org/issues/73002012-11-07T17:05:10Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><code>Hash[[nil]]</code> を実行すると 1.9.3 では <code>{}</code> となるものが 2.0.0 では <code>ArgumentError</code> となります。</p>
<p>なかださんに相談してみたら、2.0.0 の動きが不正なものをチェックしてて正しい挙動と<br>
いうことを教えてもらいましたが、2.0.0 では duplicate の警告だけにして、<br>
次のリリースで消すという方が良さそうに思います。</p> Ruby master - Bug #6781 (Closed): open-uri で NameError が発生するhttps://bugs.ruby-lang.org/issues/67812012-07-23T21:10:54Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>本日、trunk をビルドして tDiary を動かしたところ、open-uri.rb を使っている箇所で以下のエラーが<br>
発生するようになりました。</p>
<p>uninitialized constant OpenURI::Tempfile (NameError)</p>
<p>tDiary で open-uri と同時に tempfile も require することで NameError は消えました。</p>
<p>なお、以下のコミットが原因と思いますが、akr さん見て頂けないでしょうか。</p>
<p><a href="https://github.com/ruby/ruby/commit/cb0d480532c416ca6db0ca4d0ec8c0461b58f84c" class="external">https://github.com/ruby/ruby/commit/cb0d480532c416ca6db0ca4d0ec8c0461b58f84c</a></p> Ruby master - Bug #6141 (Rejected): rails-3.2.2+1.9.3p125 の環境で SEGV が発生https://bugs.ruby-lang.org/issues/61412012-03-14T18:05:59Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>表題の環境で selenium のテストを実行している最中に net/http の先の何処かで SEGV が発生しました。<br>
スタックトレースを添付します。</p> Ruby master - Bug #5971 (Closed): bigdecimal-1.1.0 が rubygems.org 上に無いhttps://bugs.ruby-lang.org/issues/59712012-02-05T20:25:58Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>標準 gem となっている bigdecimal-1.1.0 が rubygems.org 上にありません。</p>
<p>そのため gem pristine --all コマンドが bigdecimal をリストアできずに失敗してしまいます。</p> Ruby master - Bug #5939 (Rejected): ActiveSupport::Callbacks で SEGVhttps://bugs.ruby-lang.org/issues/59392012-01-27T21:21:50Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>1.9.2p290, Rails-3.2.1 の環境で SEGV が発生しました。</p>
<p>/Users/hsbt/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:352: [BUG] Segmentation fault</p>
<p><a href="https://gist.github.com/1688507" class="external">https://gist.github.com/1688507</a></p> Ruby master - Bug #5932 (Rejected): gc_mark_children で SEGV が発生https://bugs.ruby-lang.org/issues/59322012-01-26T22:25:02Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>1.9.2p290, Rails-3.2.0 の環境で RSpec を実行している途中に GC 周りで SEGV したので報告します。</p>
<p><a href="https://gist.github.com/1682615" class="external">https://gist.github.com/1682615</a></p>
<p>同じ箇所を再度実行しても再現しなかったため、最小のテストケースまでは絞り込めていません。</p>