Ruby Issue Tracking System: Issueshttps://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112024-03-21T07:07:07ZRuby Issue Tracking System
Redmine Ruby master - Bug #20386 (Closed): Backport CVE-2024-27281https://bugs.ruby-lang.org/issues/203862024-03-21T07:07:07Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I disclosed <a href="https://www.ruby-lang.org/en/news/2024/03/21/rce-rdoc-cve-2024-27281/" class="external">https://www.ruby-lang.org/en/news/2024/03/21/rce-rdoc-cve-2024-27281/</a> today.</p>
<p>We should backport fixed RDoc to all stable version.</p>
<ul>
<li>For 3.0: <a href="https://github.com/ruby/ruby/pull/10319" class="external">https://github.com/ruby/ruby/pull/10319</a>
</li>
<li>For 3.1: <a href="https://github.com/ruby/ruby/pull/10318" class="external">https://github.com/ruby/ruby/pull/10318</a>
</li>
<li>For 3.2: <a href="https://github.com/ruby/ruby/pull/10317" class="external">https://github.com/ruby/ruby/pull/10317</a>
</li>
<li>For 3.3: <a href="https://github.com/ruby/ruby/pull/10316" class="external">https://github.com/ruby/ruby/pull/10316</a>
</li>
</ul> Ruby master - Bug #20385 (Closed): Backport CVE-2024-27280https://bugs.ruby-lang.org/issues/203852024-03-21T07:03:44Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I disclosed <a href="https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/" class="external">https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/</a> today.</p>
<p>This StringIO versions should be backported in the next release.</p>
<ul>
<li>For Ruby 3.0: <a href="https://github.com/ruby/ruby/pull/10320" class="external">https://github.com/ruby/ruby/pull/10320</a>
</li>
<li>For Ruby 3.1: <a href="https://github.com/ruby/ruby/pull/10321" class="external">https://github.com/ruby/ruby/pull/10321</a>
</li>
</ul> 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 #20166 (Closed): Backport 149373c to Ruby 3.3https://bugs.ruby-lang.org/issues/201662024-01-09T08:17:37Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><a href="https://github.com/ruby/ruby/pull/9457" class="external">https://github.com/ruby/ruby/pull/9457</a></p> Ruby master - Bug #20151 (Open): Can't build Ruby 3.1 on FreeBSD 14.0https://bugs.ruby-lang.org/issues/201512024-01-05T03:14:58Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I couldn't install Ruby 3.1.3 on FreeBSD 14.0.</p>
<pre><code>compiling util.c
util.c:255:1: error: expected identifier or '('
ruby_qsort(void* base, const size_t nel, const size_t size, cmpfunc_t *cmp, void *d)
^
./include/ruby/util.h:124:21: note: expanded from macro 'ruby_qsort'
# define ruby_qsort qsort_r
^
/usr/include/stdlib.h:356:5: note: expanded from macro 'qsort_r'
__generic(arg5, int (*)(void *, const void *, const void *), \
^
/usr/include/sys/cdefs.h:322:2: note: expanded from macro '__generic'
_Generic(expr, t: yes, default: no)
^
1 error generated.
*** Error code 1
Stop.
</code></pre>
<p>Compiler version is here:</p>
<pre><code>FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)
</code></pre>
<p>I could install Ruby 3.2.2.</p> Ruby master - Bug #20076 (Open): M:N scheduler is stuck on macOS with RUBY_MN_THREADS=1https://bugs.ruby-lang.org/issues/200762023-12-21T03:17:50Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This is known issue. I already shared this to ko1.</p>
<p>The version of <a href="https://github.com/ruby/ruby/commit/28e3886689c71b22487dd5d0cb62f3b5ed0a77cc" class="external">https://github.com/ruby/ruby/commit/28e3886689c71b22487dd5d0cb62f3b5ed0a77cc</a> is crashed with <code>make exam</code>.</p>
<p>This is happend with webrick test on <code>make test-tool</code>.</p>
<p>My environment is macOS Sonoma 14.3 beta1 and</p>
<pre><code>$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 15.1.0.0.1.1700200546
volume: /
location: /
install-time: 1702331495
</code></pre> 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 - Bug #20004 (Closed): Release CI is broken with Ruby masterhttps://bugs.ruby-lang.org/issues/200042023-11-14T03:58:24Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>From 3 week ago, Release action of master is broken.</p>
<p><a href="https://github.com/ruby/actions/actions/runs/6599016994/job/17927644579#step:16:44" class="external">https://github.com/ruby/actions/actions/runs/6599016994/job/17927644579#step:16:44</a></p>
<pre><code>Invoking `/Users/runner/work/actions/actions/snapshot-master/ruby -rrubygems /Users/runner/work/actions/actions/snapshot-master/bin/gem --backtrace build lib/bundler/bundler.gemspec` failed with output:
----------------------------------------------------------------------
dyld[42417]: Library not loaded: '/usr/local/lib/libruby.3.3.dylib'
Referenced from: '/Users/runner/work/actions/actions/snapshot-master/ruby'
Reason: tried: '/usr/local/lib/libruby.3.3.dylib' (no such file), '/usr/lib/libruby.3.3.dylib' (no such file)
----------------------------------------------------------------------
</code></pre>
<p>It is related with <a class="issue tracker-2 status-2 priority-4 priority-default" title="Feature: Make `--enabled-shared` mandatory on macOS (Assigned)" href="https://bugs.ruby-lang.org/issues/19422">#19422</a></p> Ruby master - Bug #19969 (Closed): Regression of memory usage with Ruby 3.1https://bugs.ruby-lang.org/issues/199692023-10-24T09:47:12Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Our company that is ANDPAD, Inc. encountered to increase memory usage after upgrading Ruby 3.2 from 3.0 on our Rails application. This increase size is about 20%.</p>
<p>My colleague found this <a href="https://bugs.ruby-lang.org/issues/16996" class="external">root cause</a> and reproduction code:</p>
<pre><code>$ ruby -v -rset -e 's1 = Set.new(10000.times); s2 = Set.new(9999.times); Array.new(10000) { s1 - s2 - [0] }; puts `ps -o rss= -p #{$$}`.to_i'
ruby 3.0.6p216 (2023-06-29 revision bdfe1958a8) +JIT [arm64-darwin22]
248096
$ ruby -v -rset -e 's1 = Set.new(10000.times); s2 = Set.new(9999.times); Array.new(10000) { s1 - s2 - [0] }; puts `ps -o rss= -p #{$$}`.to_i'
ruby 3.2.2 (2023-07-05 revision 2f603bc4d7) +YJIT [arm64-darwin22]
2949280
</code></pre>
<p>Should we revert <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Hash should avoid doing unnecessary rehash (Closed)" href="https://bugs.ruby-lang.org/issues/16996">#16996</a> for Ruby 3.1 or later? I'm not sure this increased memory usage is reasonable with performance improvement.</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 - Feature #19843 (Closed): Promote bigdecimal as bundled gems at Ruby 3.4https://bugs.ruby-lang.org/issues/198432023-08-22T03:10:36Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I triaged target list for bundled gems at <a href="https://bugs.ruby-lang.org/issues/19351" class="external">https://bugs.ruby-lang.org/issues/19351</a>.</p>
<p>After that, I resolved bigdecimal dependency from our test suite at <a href="https://github.com/ruby/ruby/commit/3ef6364a988ab24ca7fdbb7d1b6840b2a40f1466" class="external">https://github.com/ruby/ruby/commit/3ef6364a988ab24ca7fdbb7d1b6840b2a40f1466</a></p>
<p>I propose to promote <code>bigdecimal</code> as bundled gems at Ruby 3.4.</p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/482">@mrkn (Kenta Murata)</a> Is it okay? I will add <code>bigdecimal</code> to <code>Gem::BUNDLED_GEMS::SINCE</code> for Ruby 3.3.0-preview2.</p> Ruby master - Bug #19831 (Open): warning message of linker with macOS Sonoma betahttps://bugs.ruby-lang.org/issues/198312023-08-04T09:21:01Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Xcode 15 beta and macOS Sonoma beta show the following warnings with <code>make</code></p>
<pre><code>(snip)
linking miniruby
ld: warning: ignoring duplicate library '-lpthread'
miniruby: replacing existing signature
exe/ruby: replacing existing signature
builtin_binary.inc updated
compiling builtin.c
linking static-library libruby.3.3-static.a
linking ruby
ld: warning: ignoring duplicate library '-lgmp'
ld: warning: ignoring duplicate library '-ldl'
ld: warning: ignoring duplicate library '-lobjc'
ld: warning: ignoring duplicate library '-lpthread'
ld: warning: ignoring duplicate library '-lpthread'
(snip)
</code></pre>
<p>I'm not investigate that yet. It may be caused by <code>ld-prime</code> that is new linker of macOS platform.</p>
<pre><code>$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 15.0.0.0.1.1690355577
volume: /
location: /
install-time: 1690967267
</code></pre> 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 - Bug #19727 (Closed): Backport CI fixes for test-bundled-gemshttps://bugs.ruby-lang.org/issues/197272023-06-13T05:00:28Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>After <a href="https://bugs.ruby-lang.org/issues/19702" class="external">https://bugs.ruby-lang.org/issues/19702</a>, CI of Ruby 3.0-3.2 is broken.</p>
<p>I fixed them with:</p>
<ul>
<li><a href="https://github.com/ruby/ruby/pull/7934" class="external">for Ruby 3.2</a></li>
<li><a href="https://github.com/ruby/ruby/pull/7935" class="external">for Ruby 3.1</a></li>
<li><a href="https://github.com/ruby/ruby/pull/7936" class="external">for Ruby 3.0</a></li>
</ul>
<p>I added additional patches to fix CI failure related <code>openssl</code> and <code>power_assert</code> for Ruby 3.2 and 3.0.</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 #19616 (Closed): Remove ext/readline from Ruby 3.3https://bugs.ruby-lang.org/issues/196162023-04-25T08:01:43Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>We still bundled ext/readline that is GNU Readline wrapper. But we already have reline written by pure Ruby. It's time to remove it from Ruby releases.</p>
<p>Motivation:</p>
<ul>
<li>We can skip to install readline or libedit for testing ruby language.</li>
<li>I hope to reduce external dependencies from the perspective of ruby-build maintainer.</li>
</ul>
<p>If users hope to use ext/readline, they can install it with <code>gem install readline-ext</code>.</p> Ruby master - Bug #19556 (Closed): Backport latest versions of URIhttps://bugs.ruby-lang.org/issues/195562023-03-29T05:36:21Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><a href="https://www.ruby-lang.org/en/news/2023/03/28/redos-in-uri-cve-2023-28755/" class="external">https://www.ruby-lang.org/en/news/2023/03/28/redos-in-uri-cve-2023-28755/</a> has been published. We should upgrade URI version each stable branch.</p>
<ul>
<li><a href="https://github.com/ruby/ruby/pull/7607" class="external">for Ruby 3.0</a></li>
<li><a href="https://github.com/ruby/ruby/pull/7605" class="external">for Ruby 3.1</a></li>
</ul> Ruby master - Bug #19551 (Closed): Backport commits for CI failureshttps://bugs.ruby-lang.org/issues/195512023-03-28T09:38:13Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I created PRs to fix CI failure for stable or old stable branches.</p>
<ul>
<li><a href="https://github.com/ruby/ruby/pull/7259" class="external">Fix CI for ruby_2_7</a></li>
<li><a href="https://github.com/ruby/ruby/pull/7258" class="external">Fix CI for ruby_3_0</a></li>
<li><a href="https://github.com/ruby/ruby/pull/7604" class="external">Fix CI for ruby_3_2</a></li>
</ul>
<p>Please merge them before release time.</p>
<hr>
<p>Can I merge PR like "Fix CI failure" for stable branches myself from April 2023?</p>
<p>I can maintain to keep CI status with my full-time job. It helps to release work for all of branch maintainers.</p> Ruby master - Bug #19519 (Closed): Merge RubyGems-3.4.10 and Bundler-2.4.10 into Ruby 3.2https://bugs.ruby-lang.org/issues/195192023-03-09T04:23:16Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><a href="https://github.com/ruby/ruby/pull/7479" class="external">https://github.com/ruby/ruby/pull/7479</a></p> Ruby master - Bug #19445 (Closed): Segmentation fault with Numeric#stephttps://bugs.ruby-lang.org/issues/194452023-02-16T23:39:36Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>The following commands will cause a segmentation fault.</p>
<pre><code>curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/all.json' -o ruby_versions.json
ruby -rjson -e "min = JSON.parse(File.read('ruby_versions.json')).sort.first; p 2.2.step(by: 0.1, to: min).map{|v| v.round(1).to_s }"
</code></pre>
<p>Note: above code is working with <code>min.to_f</code> instead of <code>min</code> in <code>Numeric#step</code>.</p> Ruby master - Bug #19396 (Closed): Backport RubyGems 3.4.6 and Bundler 2.4.6 to ruby_3_2https://bugs.ruby-lang.org/issues/193962023-02-01T02:47:37Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>RubyGems 3.4.6 fixed <code>Gem::Ext::CargoBuilder</code>.</p>
<p><a href="https://github.com/ruby/ruby/pull/7214" class="external">https://github.com/ruby/ruby/pull/7214</a></p> Ruby master - Bug #19386 (Closed): `test_hmac.rb` of openssl is timeout on RHEL9https://bugs.ruby-lang.org/issues/193862023-01-27T05:11:32Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I prepared new test instance of RHEL9 for <a href="https://rubyci.org/" class="external">https://rubyci.org/</a>. But it stuck with openssl tests.</p>
<p>see <a href="http://rubyci.s3.amazonaws.com/rhel9/ruby-master/log/20230127T003004Z.fail.html.gz" class="external">http://rubyci.s3.amazonaws.com/rhel9/ruby-master/log/20230127T003004Z.fail.html.gz</a></p>
<p>I did bisect this issue. This issue caused by <a href="https://github.com/ruby/ruby/blob/master/test/openssl/test_hmac.rb#L23" class="external">https://github.com/ruby/ruby/blob/master/test/openssl/test_hmac.rb#L23</a></p>
<pre><code> def test_dup
h1 = OpenSSL::HMAC.new("KEY", "MD5")
h1.update("DATA")
h = h1.dup
assert_equal(h1.digest, h.digest, "dup digest")
end
</code></pre>
<p>Stuck is happened after running this test.</p>
<p>/cc <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/703">@vo.x (Vit Ondruch)</a> <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/11018">@jaruga (Jun Aruga)</a> <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/9231">@rhenium (Kazuki Yamaguchi)</a></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 - Bug #19350 (Closed): Backport the latest stable version of RubyGems/Bundlerhttps://bugs.ruby-lang.org/issues/193502023-01-18T08:33:55Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>RubyGems 3.4.4 and Bundler 2.4.4 have been released. We should backport them into <code>ruby_3_2</code> branch.</p>
<p><a href="https://github.com/ruby/ruby/pull/7061" class="external">https://github.com/ruby/ruby/pull/7061</a></p>
<p>I also added patch for [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: `lib/mjit/instruction.rb` was reintroduced by merge mistake (Closed)" href="https://bugs.ruby-lang.org/issues/19298">#19298</a>] to above pull-request.</p> Ruby master - Bug #19260 (Closed): ruby/spec is failed with Ruby 3.3https://bugs.ruby-lang.org/issues/192602022-12-26T02:59:05Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>After bumping version, we got the some fails with ruby/spec.</p>
<p><a href="https://github.com/ruby/ruby/actions/runs/3778576412/jobs/6423166914" class="external">https://github.com/ruby/ruby/actions/runs/3778576412/jobs/6423166914</a></p>
<pre><code> 1)
Literal Regexps handles a lookbehind with ss characters ERROR
RegexpError: invalid pattern in look-behind: /(?<!dss)/i
/home/runner/work/ruby/ruby/src/spec/ruby/language/regexp_spec.rb:120:in `block (3 levels) in <top (required)>'
/home/runner/work/ruby/ruby/src/spec/ruby/language/regexp_spec.rb:4:in `<top (required)>'
2)
Float#round does not lose precision during the rounding process FAILED
Expected 767573.18758 to have same value and type as 767573.18759
/home/runner/work/ruby/ruby/src/spec/ruby/core/float/round_spec.rb:148:in `block (3 levels) in <top (required)>'
/home/runner/work/ruby/ruby/src/spec/ruby/core/float/round_spec.rb:3:in `<top (required)>'
3)
Encoding#replicate has been removed FAILED
Expected #<Encoding:US-ASCII>.respond_to? :replicate, true
to be falsy but was true
/home/runner/work/ruby/ruby/src/spec/ruby/core/encoding/replicate_spec.rb:72:in `block (3 levels) in <top (required)>'
/home/runner/work/ruby/ruby/src/spec/ruby/core/encoding/replicate_spec.rb:4:in `<top (required)>'
</code></pre> 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 - Bug #19152 (Closed): Integration test for ruby-corehttps://bugs.ruby-lang.org/issues/191522022-11-25T21:55:11Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This is test posting for new issue.</p> Ruby master - Bug #19151 (Closed): Integration test for ruby-devhttps://bugs.ruby-lang.org/issues/191512022-11-25T21:36:09Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>This issue is posting test for ruby-dev.</p> Ruby master - Feature #19072 (Closed): Reminder: Remove ABI version suffix like "3.2.0+2" from re...https://bugs.ruby-lang.org/issues/190722022-10-20T10:09:12Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>The development version of Ruby 3.2.0 added ABI version suffix like <code>+2</code>. It will remove at the final release of Ruby 3.2.0.</p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/4">@nobu (Nobuyoshi Nakada)</a> said it's already implemented on our package script(?). But We should check it before the final release.</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 #19016 (Closed): syntax_suggest is not working with Ruby 3.2.0-preview2https://bugs.ruby-lang.org/issues/190162022-09-22T09:47:27Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><code>syntax_suggest</code> is merged as default gems in Ruby 3.2.0-preview2. But it's not working yet.</p>
<pre><code>$ cat bar.rb
def foo
def bar
end
$ ruby -v bar.rb
ruby 3.2.0dev (2022-09-22T05:37:56Z master f07e651a90) +YJIT [arm64-darwin22]
bar.rb:3: warning: mismatched indentations at 'end' with 'def' at 2
bar.rb:3: syntax error, unexpected end-of-input, expecting `end'
</code></pre>
<p>and gem version is also not working now.</p>
<pre><code>$ cat foo.rb
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "syntax_suggest"
end
require_relative "bar"
</code></pre>
<pre><code>$ ruby -v foo.rb
ruby 3.2.0dev (2022-09-22T05:37:56Z master f07e651a90) +YJIT [arm64-darwin22]
/path/to/bar.rb:3: warning: mismatched indentations at 'end' with 'def' at 2
foo.rb:8:in `require_relative': /path/to/bar.rb:3: syntax error, unexpected end-of-input, expecting `end' (SyntaxError)
from foo.rb:8:in `<main>'
</code></pre>
<p>But Ruby 3.1 is works.</p>
<pre><code>$ ruby -v foo.rb
ruby 3.1.3p51 (2022-09-10 revision 9581248c4a) [arm64-darwin22]
/path/to/bar.rb:3: warning: mismatched indentations at 'end' with 'def' at 2
--> /path/to/bar.rb
Unmatched keyword, missing `end' ?
1 def foo
❯ 2 def bar
3 end
/Users/hsbt/.local/share/gem/gems/syntax_suggest-0.0.1/lib/syntax_suggest/core_ext.rb:93:in `require': /path/to/bar.rb:3: syntax error, unexpected end-of-input, expecting `end' (SyntaxError)
from /Users/hsbt/.local/share/gem/gems/syntax_suggest-0.0.1/lib/syntax_suggest/core_ext.rb:93:in `require_relative'
from foo.rb:8:in `<main>'
</code></pre> 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 - Bug #18674 (Closed): Build failure `make up` with WSL2https://bugs.ruby-lang.org/issues/186742022-04-01T08:51:30Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>When I invoked <code>make up</code> on WSL2 environment. It failed when generating <code>ripper.c</code></p>
<p>The error message is here.</p>
<pre><code>generating ../repos/ruby/ruby/ext/ripper/ripper.c
make[2]: Entering directory '/mnt/c/Users/hsbt/source/repos/ruby/ruby/ext/ripper'
make[2]: *** No rule to make target 'id.h', needed by 'ripper.y'. Stop.
make[2]: Leaving directory '/mnt/c/Users/hsbt/source/repos/ruby/ruby/ext/ripper'
make[1]: *** [uncommon.mk:1200: ../repos/ruby/ruby/ext/ripper/ripper.c] Error 2
</code></pre> 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 - Bug #17866 (Closed): Incompatible changes with Psych 4.0.0https://bugs.ruby-lang.org/issues/178662021-05-17T10:05:53Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Psych-4.0.0 changes <code>Psych.safe_load</code> by the default.</p>
<p><a href="https://github.com/ruby/psych/pull/487" class="external">https://github.com/ruby/psych/pull/487</a></p>
<p>It breaks the several code like:</p>
<ul>
<li><a href="https://github.com/ruby/ruby/commit/da5b28396397ace84d914cb188055cbeb46b8725" class="external">https://github.com/ruby/ruby/commit/da5b28396397ace84d914cb188055cbeb46b8725</a></li>
<li><a href="https://github.com/ruby/ruby/commit/8e91b969df08b7a2eb27a5d6d38733eea42dc7ad" class="external">https://github.com/ruby/ruby/commit/8e91b969df08b7a2eb27a5d6d38733eea42dc7ad</a></li>
<li><a href="https://github.com/ruby/ruby/commit/d8fd92f62024d85271a3f1125bc6928409f912e1" class="external">https://github.com/ruby/ruby/commit/d8fd92f62024d85271a3f1125bc6928409f912e1</a></li>
<li><a href="https://github.com/ruby/ruby/commit/dfecc650c3f9bbd8b4fb0eefc1e3da65f151d3a8" class="external">https://github.com/ruby/ruby/commit/dfecc650c3f9bbd8b4fb0eefc1e3da65f151d3a8</a></li>
<li>etc...</li>
</ul>
<p>I and <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/18">@mame (Yusuke Endoh)</a> investigate them. We found 2 issues.</p>
<ol>
<li>
<code>Symbol</code> is still ignored <code>Pysch.load</code>. It break many of code like configuration store. <a href="https://github.com/ruby/psych/blob/master/lib/psych.rb#L368" class="external">https://github.com/ruby/psych/blob/master/lib/psych.rb#L368</a> passes <code>Symbol</code> used by <code>permitted_classes</code>. But It's not working now. see <a href="https://github.com/ruby/psych/issues/490" class="external">https://github.com/ruby/psych/issues/490</a>
</li>
<li>
<code>Pysch.load</code> restrict <code>Gem::Specification</code> or <code>RDoc::Options</code> by the default. Should we add them with<code>permitted_classes</code> to <code>Psych.load</code> or <code>Psych.load_file</code>? I'm not sure the right way about them.</li>
</ol>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/73">@tenderlovemaking (Aaron Patterson)</a> Do you have any ideas about the above concerns?</p> Ruby master - Bug #17747 (Closed): `make up` is broken with clean repo.https://bugs.ruby-lang.org/issues/177472021-03-25T06:44:09Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><code>make up</code> is broken when after cloning git repo like <a href="https://github.com/ruby/ruby" class="external">https://github.com/ruby/ruby</a>.</p>
<p>expected instructions</p>
<pre><code>./autogen.sh
./configure # with some options
make ruby -j
make up
</code></pre>
<p>it's failed with checking unicode file existence.</p>
<pre><code>$ make up
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (3/3), 1.03 KiB | 29.00 KiB/s, done.
From git.ruby-lang.org:ruby
b25361f731..12812c2bdf master -> origin/master
Updating b25361f731..12812c2bdf
Fast-forward
common.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Latest commit hash = 12812c2bdf
tool/config.guess already exists
tool/config.sub already exists
Downloading bundled gem minitest-5.14.4...
Downloading bundled gem power_assert-2.0.0...
Downloading bundled gem rake-13.0.3...
Downloading bundled gem test-unit-3.4.0...
Downloading bundled gem rexml-3.2.4...
Downloading bundled gem rss-0.2.9...
Downloading bundled gem typeprof-0.13.0...
Downloading bundled gem rbs-1.1.1...
downloading for ext/fiddle/extlibs
downloading libffi-3.2.1.tar.gz ... done
checking md5 of .downloaded-cache/libffi-3.2.1.tar.gz ... OK
checking sha512 of .downloaded-cache/libffi-3.2.1.tar.gz ... OK
downloading for ext/zlib/extlibs
downloading zlib-1.2.11.tar.gz ... done
checking md5 of .downloaded-cache/zlib-1.2.11.tar.gz ... OK
checking sha512 of .downloaded-cache/zlib-1.2.11.tar.gz ... OK
make[1]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby'
sed 's/{\$([^(){}]*)[^{}]*}//g' common.mk > uncommon.mk
./revision.h unchanged
making gem_prelude.rbinc
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby'
/Users/hsbt/Documents/github.com/ruby/ruby/tool/lib/vpath.rb:18:in `initialize': No such file or directory @ rb_sysopen - enc/unicode/data/12.1.0/ucd/CompositionExclusions.txt (Errno::ENOENT)
from /Users/hsbt/Documents/github.com/ruby/ruby/tool/lib/vpath.rb:18:in `open'
from /Users/hsbt/Documents/github.com/ruby/ruby/tool/lib/vpath.rb:18:in `call'
from /Users/hsbt/Documents/github.com/ruby/ruby/tool/lib/vpath.rb:18:in `search'
from /Users/hsbt/Documents/github.com/ruby/ruby/tool/lib/vpath.rb:35:in `open'
from ./template/unicode_norm_gen.tmpl:69:in `block (2 levels) in <main>'
from /Users/hsbt/.local/share/rbenv/versions/3.0.0-dev/lib/ruby/3.0.0/erb.rb:905:in `eval'
from /Users/hsbt/.local/share/rbenv/versions/3.0.0-dev/lib/ruby/3.0.0/erb.rb:905:in `result'
from ./tool/generic_erb.rb:41:in `block (2 levels) in <main>'
from ./tool/generic_erb.rb:41:in `block in <main>'
from ./tool/generic_erb.rb:34:in `map'
from ./tool/generic_erb.rb:34:in `<main>'
make[1]: *** [uncommon.mk:1491: enc/unicode/data/12.1.0/ucd/.unicode-tables.time] Error 1
make[1]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make: [uncommon.mk:1283: up] Error 2 (ignored)
</code></pre>
<p>The current implementation works fine to run <code>make update-unicode</code> before <code>make up</code></p>
<p>I think it's not intentional behavior.</p> Ruby master - Bug #17723 (Closed): autoconf 2.70+ is not working with master branchhttps://bugs.ruby-lang.org/issues/177232021-03-14T23:45:38Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>MacPorts upgraded the version of autoconf to 2.71 recently. On macOS environment with MacPorts is broken now.</p>
<p><a href="http://rubyci.s3.amazonaws.com/osx1100arm/ruby-master/log/20210314T214503Z.fail.html.gz" class="external">http://rubyci.s3.amazonaws.com/osx1100arm/ruby-master/log/20210314T214503Z.fail.html.gz</a></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 - Bug #17582 (Closed): Build failure with bison-3.7.5https://bugs.ruby-lang.org/issues/175822021-01-26T00:22:46Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I got the following error with bison 3.7.5 provided by homebrew on macOS Catalina.</p>
<pre><code>parse.y:13337:5: error: implicit declaration of function 'YYUSE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
YYUSE(p);
^
1 error generated.
make: *** [parse.o] Error 1
make: *** Waiting for unfinished jobs....
</code></pre>
<p>I could build with bison-2.3 provided by system toolchain by macOS.</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 - Bug #17381 (Closed): Backport request for the old certs in RubyGemshttps://bugs.ruby-lang.org/issues/173812020-12-09T07:17:10Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I created the replacement of the old certs in RubyGems for Ruby 2.5-2.7.</p>
<p>See details:</p>
<ul>
<li><a href="https://github.com/rubygems/rubygems/pull/4100" class="external">https://github.com/rubygems/rubygems/pull/4100</a></li>
<li><a href="https://github.com/rubygems/rubygems/pull/4105" class="external">https://github.com/rubygems/rubygems/pull/4105</a></li>
</ul>
<p>I attached the patch for them.</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 - Bug #17202 (Closed): Backport for Apple Siliconhttps://bugs.ruby-lang.org/issues/172022020-09-29T12:23:06Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I confirmed to build with the following patch on ruby_2_7 branch for macOS Big Sur and ARM mac mini.</p>
<p><a href="https://github.com/ruby/ruby/commit/23655e6de5ee989feb8c65c7061fe9a71579dc54" class="external">https://github.com/ruby/ruby/commit/23655e6de5ee989feb8c65c7061fe9a71579dc54</a><br>
<a href="https://github.com/ruby/ruby/commit/87f6154bb4c67ca77ee353bb1fe25a922036c0e5" class="external">https://github.com/ruby/ruby/commit/87f6154bb4c67ca77ee353bb1fe25a922036c0e5</a></p> Ruby master - Bug #17201 (Closed): Backport webrick patch for CVE-2020-25613https://bugs.ruby-lang.org/issues/172012020-09-29T09:08:07Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I created the patch sets for Ruby 2.5, 2.6 and 2.7 for CVE-2020-25613</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 #16681 (Closed): Backport commit related libffi urlhttps://bugs.ruby-lang.org/issues/166812020-03-07T23:06:37Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Please backport the following commits for fixing download error of libffi.</p>
<p><a href="https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-2.7/log/20200307T214956Z.fail.html.gz" class="external">https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-2.7/log/20200307T214956Z.fail.html.gz</a></p>
<ul>
<li>47a1872cd8 : Use osuosl instead of GitHub releases</li>
<li>8602216746 : Switch to download libffi source package to github releases from sourceware.org</li>
</ul>
<p>It should be squash and make an one commit.</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 - Misc #15860 (Rejected): Please ignore this ticket; a test for redmine(2nd)https://bugs.ruby-lang.org/issues/158602019-05-18T07:04:34Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Second try with <a href="https://bugs.ruby-lang.org/issues/15858" class="external">https://bugs.ruby-lang.org/issues/15858</a></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 - Bug #15643 (Closed): Partly Backport RubyGems 3.0.3 to Ruby 2.5(with RubyGems 2.7.6)https://bugs.ruby-lang.org/issues/156432019-03-06T07:49:01Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>The rubygems team changed the behavior of <code>BundlerVersionFinder</code>.<br>
It makes detecting only the major version of Bundler from strict version matching.</p>
<p>This patch can be applied after <a href="https://bugs.ruby-lang.org/issues/15637" class="external">https://bugs.ruby-lang.org/issues/15637</a></p> Ruby master - Bug #15637 (Closed): Backport RubyGems 3.0.3/2.7.9https://bugs.ruby-lang.org/issues/156372019-03-04T23:57:19Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I released RubyGems 3.0.3 and 2.7.9 today. They contain multiple vulnerability fixes.</p>
<ul>
<li><a href="https://blog.rubygems.org/2019/03/05/3.0.3-released.html" class="external">https://blog.rubygems.org/2019/03/05/3.0.3-released.html</a></li>
<li><a href="https://blog.rubygems.org/2019/03/05/2.7.9-released.html" class="external">https://blog.rubygems.org/2019/03/05/2.7.9-released.html</a></li>
</ul>
<p>I attached the patches for Ruby 2.4, 2.5 and 2.6.</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 #15512 (Closed): Backport r66745https://bugs.ruby-lang.org/issues/155122019-01-07T06:07:46Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Please backport r66745 for bumping version of Date.</p> Ruby master - Bug #15430 (Closed): test_fork_while_parent_locked is failing status on Ruby CIhttps://bugs.ruby-lang.org/issues/154302018-12-18T01:11:54Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>After r66230, TestThread#test_fork_while_parent_locked is failing status on Ruby CI.</p>
<p>See</p>
<ul>
<li>CentOS 7 <a href="https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos7/ruby-trunk/log/20181217T230002Z.fail.html.gz" class="external">https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos7/ruby-trunk/log/20181217T230002Z.fail.html.gz</a>
</li>
<li>Amazon Lunux 2 <a href="https://rubyci.org/logs/rubyci.s3.amazonaws.com/amazon2/ruby-trunk/log/20181218T003003Z.fail.html.gz" class="external">https://rubyci.org/logs/rubyci.s3.amazonaws.com/amazon2/ruby-trunk/log/20181218T003003Z.fail.html.gz</a>
</li>
<li>Arch Linux <a href="https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-trunk/log/20181218T000002Z.fail.html.gz" class="external">https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-trunk/log/20181218T000002Z.fail.html.gz</a>
</li>
</ul> Ruby master - Bug #15284 (Closed): Unintentional warnings with node.hhttps://bugs.ruby-lang.org/issues/152842018-11-06T09:54:40Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Recently, I got the following warnings with build time.</p>
<pre><code>parse.c:4720:14: warning: incompatible pointer types passing 'FILE *' (aka 'struct __sFILE *') to parameter of type 'struct parser_params *' [-Wincompatible-pointer-types]
YYFPRINTF (yyo, "%s %s (",
^~~
../node.h:437:57: note: passing argument to parameter 'parser' here
PRINTF_ARGS(void rb_parser_printf(struct parser_params *parser, const char *fmt, ...), 2, 3);
^
parse.c:4724:14: warning: incompatible pointer types passing 'FILE *' (aka 'struct __sFILE *') to parameter of type 'struct parser_params *' [-Wincompatible-pointer-types]
YYFPRINTF (yyo, ": ");
^~~
../node.h:437:57: note: passing argument to parameter 'parser' here
PRINTF_ARGS(void rb_parser_printf(struct parser_params *parser, const char *fmt, ...), 2, 3);
^
parse.c:4726:14: warning: incompatible pointer types passing 'FILE *' (aka 'struct __sFILE *') to parameter of type 'struct parser_params *' [-Wincompatible-pointer-types]
YYFPRINTF (yyo, ")");
^~~
../node.h:437:57: note: passing argument to parameter 'parser' here
PRINTF_ARGS(void rb_parser_printf(struct parser_params *parser, const char *fmt, ...), 2, 3);
</code></pre>
<p>Maybe, It caused by bison version.</p>
<pre><code>> bison --version
bison (GNU Bison) 3.2
</code></pre> 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 - Bug #14721 (Closed): Backport request patch for rubygems 2.6https://bugs.ruby-lang.org/issues/147212018-04-28T05:45:00Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>rubygems 2.6.14.1 has a problem with Windows platform.</p>
<p>Please see details: <a href="https://github.com/rubygems/rubygems/pull/2211" class="external">https://github.com/rubygems/rubygems/pull/2211</a></p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/9">@usa (Usaku NAKAMURA)</a> Can you apply attachment patch with next release and bump version to 2.6.14.2?</p> 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 #14543 (Closed): `make commit` show error of `common-srcs`https://bugs.ruby-lang.org/issues/145432018-02-23T05:12:20Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>When I use <code>make commit</code>, it shows following error.</p>
<pre><code>~/D/g/r/ruby (trunk) > mk commit
make: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.x86_64-darwin'
Committing to svn+ssh://svn@ci.ruby-lang.org/ruby/trunk ...
M gems/bundled_gems
Committed r62546
M gems/bundled_gems
r62546 = 2e1b00647ce1b4d3a6801484d7e76283fac6d202 (refs/remotes/svn/trunk)
No changes between 99295842365c9b356a6e8dfec264249cd8e24aad and refs/remotes/svn/trunk
Resetting to the latest refs/remotes/svn/trunk
dcommitted on a detached HEAD because you gave a revision argument.
The rewritten commit is: 2e1b00647ce1b4d3a6801484d7e76283fac6d202
Already on 'trunk'
Your branch is ahead of 'origin/trunk' by 1 commit.
(use "git push" to publish your local commits)
First, rewinding head to replay your work on top of it...
Applying: Update minitest-5.11.3 on bundled gems.
From github.com:ruby/ruby
26741c97f4..2e1b00647c trunk -> origin/trunk
First, rewinding head to replay your work on top of it...
make[1]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.x86_64-darwin'
make[1]: *** No rule to make target '../lex.c', needed by 'common-srcs'. Stop.
make[1]: *** Waiting for unfinished jobs....
generating ../parse.c
M gems/bundled_gems
r62546 = 2e1b00647ce1b4d3a6801484d7e76283fac6d202 (refs/remotes/svn/trunk)
Current branch trunk is up to date.
make[1]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/.x86_64-darwin'
make: *** [../defs/gmake.mk:142: commit] Error 2
make: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/.x86_64-darwin'
</code></pre>
<p><code>mk</code> is an alias of <code>make -j</code>. <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/4">@nobu (Nobuyoshi Nakada)</a> Can you investigate it?</p> 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 #14356 (Closed): Backport 61605https://bugs.ruby-lang.org/issues/143562018-01-15T03:48:15Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>It fixed secure token of the slack channel.</p> Ruby master - Bug #14333 (Closed): Backport r61645https://bugs.ruby-lang.org/issues/143332018-01-07T23:40:18Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>Please backport r61645 to ruby_2_5 branch.</p>
<p><a href="https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/61645" class="external">https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/61645</a></p>
<p>It fixed <code>test-bundled-gems</code> task.</p> 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 - Bug #14182 (Closed): Backport r55265https://bugs.ruby-lang.org/issues/141822017-12-14T05:15:24Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p><a href="https://github.com/ruby/ruby/pull/1640" class="external">https://github.com/ruby/ruby/pull/1640</a></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 #13911 (Closed): Breaking 2.5.0 Installation with in-place build.https://bugs.ruby-lang.org/issues/139112017-09-17T02:39:16Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>9/17 時点の trunk HEAD である r59936 を用いて、ソースコードと同じディレクトリで <code>make</code> して <code>make install</code> すると旧 ruby-runner がインストールされるようです。</p>
<p><a href="https://gist.github.com/hsbt/aa69c38fe05947cce6487a6f6e42d4ed" class="external">https://gist.github.com/hsbt/aa69c38fe05947cce6487a6f6e42d4ed</a></p>
<p>r59927 で入れた <code>bin/ruby</code> へのリネームによって、旧 ruby-runner が <code>bin/ruby</code> としてインストールされてしまうようです。</p>
<p>ソースコードのディレクトリとは別の working ディレクトリでビルド、インストールした場合は発生しません。</p> Ruby master - Bug #13895 (Closed): TestVMDump test fails on High Sierrahttps://bugs.ruby-lang.org/issues/138952017-09-14T05:45:57Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>TestVMDump#test_darwin_invalid_call fails with <code>Timeout::Error</code></p>
<p>I can reproduce with <code>ruby -rfiddle -e "Fiddle::Function.new(Fiddle::Pointer.new(1), [], Fiddle::TYPE_VOID).call"</code>.<br>
After that backtrace was stopped "C level backtrace information" section. like this</p>
<pre><code>~ > ruby -rfiddle -e "Fiddle::Function.new(Fiddle::Pointer.new(1), [], Fiddle::TYPE_VOID).call"
-e:1: [BUG] Segmentation fault at 0x0000000000000001
ruby 2.5.0dev (2017-09-14 trunk 59870) [x86_64-darwin17]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/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:0041 s:0006 e:000005 EVAL -e:1 [FINISH]
c:0001 p:0000 s:0003 E:002150 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
-e:1:in `<main>'
-e:1:in `call'
-- Machine register context ------------------------------------------------
rax: 0x0000000000000000 rbx: 0x00007ffee4ff8d88 rcx: 0x0000000000000000
rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000000000000
rbp: 0x00007ffee4ff8c00 rsp: 0x00007ffee4ff8bf8 r8: 0x0000000000000000
r9: 0x0000000000000000 r10: 0x00007ffee4ff8b50 r11: 0x0000000000000001
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x000000010b1566e0
r15: 0x00007ffee4ff8d70 rip: 0x0000000000000001 rfl: 0x0000000000010246
-- C level backtrace information -------------------------------------------
(stopped this line)
</code></pre> 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 - Bug #13816 (Closed): APFS Issue with High Sierrahttps://bugs.ruby-lang.org/issues/138162017-08-15T01:32:21Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I found fail results of <code>make test-all</code> with High Sierra Beta 6 and APFS.</p>
<pre><code>~/D/r/trunk > mk test-all
Run options: "--ruby=./miniruby -I../../github.com/ruby/ruby/lib -I. -I.ext/common ../../github.com/ruby/ruby/tool/runruby.rb --extout=.ext -- --disable-gems" --excludes-dir=../../github.com/ruby/ruby/test/excludes --name=!/memory_leak/
# Running tests:
[ 4553/17206] TestDir_M17N#test_filename_extutf8_invalid = 0.06 s
1) Error:
TestDir_M17N#test_filename_extutf8_invalid:
Errno::EILSEQ: Illegal byte sequence @ rb_sysopen - ?
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:65:in `initialize'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:65:in `open'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:65:in `<main>'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:63:in `block in test_filename_extutf8_invalid'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:9:in `block (2 levels) in with_tmpdir'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:8:in `chdir'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:8:in `block in with_tmpdir'
/path/to/github.com/ruby/ruby/lib/tmpdir.rb:89:in `mktmpdir'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:7:in `with_tmpdir'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:62:in `test_filename_extutf8_invalid'
[ 4558/17206] TestDir_M17N#test_glob_encoding = 0.00 s
2) Error:
TestDir_M17N#test_glob_encoding:
Errno::EILSEQ: Illegal byte sequence @ dir_s_mkdir - 目
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:379:in `mkdir'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:379:in `block in test_glob_encoding'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:9:in `block (2 levels) in with_tmpdir'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:8:in `chdir'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:8:in `block in with_tmpdir'
/path/to/github.com/ruby/ruby/lib/tmpdir.rb:89:in `mktmpdir'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:7:in `with_tmpdir'
/path/to/github.com/ruby/ruby/test/ruby/test_dir_m17n.rb:372:in `test_glob_encoding'
[ 5116/17206] TestFileExhaustive#test_atime = 0.05 s
3) Failure:
TestFileExhaustive#test_atime [/path/to/github.com/ruby/ruby/test/ruby/test_file_exhaustive.rb:575]:
<2017-08-15 10:21:18 +0900> (795278193[ns]) expected but was
<2017-08-15 10:21:18 +0900> (801104909[ns]).
[ 5130/17206] TestFileExhaustive#test_expand_path = 0.04 s
4) Failure:
TestFileExhaustive#test_expand_path [/path/to/github.com/ruby/ruby/test/ruby/test_file_exhaustive.rb:752]:
"file.test".
<"/var/folders/jl/zgy9fk353nd6zn0xznlsdzvc6gxzs5/T/rubytest-file20170815-21818-13n19rm/file.test"> expected but was
<"/var/folders/jl/zgy9fk353nd6zn0xznlsdzvc6gxzs5/T/rubytest-file20170815-21818-13n19rm/file.test">.
</code></pre> Ruby master - Bug #13793 (Closed): Compatible issue with keyword args behaviorhttps://bugs.ruby-lang.org/issues/137932017-08-09T06:09:36Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<p>I found breaking changes for keyword args with Ruby 2.5.1</p>
<p>Reproduction instructions:</p>
<ul>
<li>git clone <a href="mailto:git@github.com" class="email">git@github.com</a>:bundler/bundler.git</li>
<li>gem i rspec</li>
<li>cd bundler && rspec spec/commands/viz_spec.rb:13</li>
</ul>
<p>Ruby 2.4.1:</p>
<pre><code>~/D/g/b/bundler (master) > rspec spec/commands/viz_spec.rb:13
Run options:
include {:locations=>{"./spec/commands/viz_spec.rb"=>[13]}}
exclude {:bundler=>"=< 1.15", :rubygems_master=>true, :git=>"=< 2.14.0", :rubygems=>"=< 2.6.11", :ruby=>"=< 2.4.1", :realworld=>true, :sudo=>true}
bundle viz
graphs gems from the Gemfile
Retried examples: 0
Finished in 3.35 seconds (files took 1.37 seconds to load)
1 example, 0 failures
</code></pre>
<p>Ruby 2.5.0(ruby 2.5.0dev (2017-08-08 trunk 59529) [x86_64-darwin16])</p>
<pre><code>~/D/g/b/bundler (master) > rspec spec/commands/viz_spec.rb:13
Run options:
include {:locations=>{"./spec/commands/viz_spec.rb"=>[13]}}
exclude {:bundler=>"=< 1.15", :rubygems_master=>true, :git=>"=< 2.14.0", :rubygems=>"=< 2.6.12", :ruby=>"=< 2.5.0", :realworld=>true, :sudo=>true}
bundle viz
(snip)
ArgumentError: unknown keyword: png
/path/to/bundler/bundler/tmp/gems/system/gems/ruby-graphviz-1.2.3/lib/graphviz.rb:441:in `output'
/path/to/bundler/bundler/lib/bundler/graph.rb:142:in `run'
(snip)
</code></pre>
<p>I also reported bundler's tracker: <a href="https://github.com/bundler/bundler/issues/5939" class="external">https://github.com/bundler/bundler/issues/5939</a></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>