Ruby Issue Tracking System: Issues
https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2022-07-11T02:37:51Z
Ruby Issue Tracking System
Redmine
Ruby master - Bug #18906 (Closed): coverage failed on GItHub Actions
https://bugs.ruby-lang.org/issues/18906
2022-07-11T02:37:51Z
znz (Kazuhiro NISHIYAMA)
<p>coverage failed on GItHub Actions since <a href="https://github.com/ruby/actions/actions/runs/2486933939" class="external">https://github.com/ruby/actions/actions/runs/2486933939</a><br>
(previous <a href="https://github.com/ruby/actions/actions/runs/2486176425" class="external">https://github.com/ruby/actions/actions/runs/2486176425</a> is passed)</p>
<p>A reproduce test is attached.</p>
<pre><code> 1) Failure:
TestCoverage#test_coverage_ensure_if_return [/home/user/ruby/test/coverage/test_coverage.rb:193]:
pid 45865 exit 1
| /tmp/d20220710-45855-exgg7s/test.rb:5:in `flush': no implicit conversion of false into Integer (TypeError)
| from /tmp/d20220710-45855-exgg7s/test.rb:8:in `<top (required)>'
| from -:3:in `require'
| from -:3:in `<main>'
</code></pre>
Ruby master - Bug #18643 (Closed): test-bundler failed on ruby_3_1 CI
https://bugs.ruby-lang.org/issues/18643
2022-03-18T04:25:49Z
znz (Kazuhiro NISHIYAMA)
<p>I think that this spec has failed since newer bundler released.</p>
<p><a href="https://github.com/ruby/actions/runs/5590419280?check_suite_focus=true#step:18:199" class="external">https://github.com/ruby/actions/runs/5590419280?check_suite_focus=true#step:18:199</a></p>
<pre><code>
expected "Running `bundle update --bundler \"> 0.a\"` with bundler 2.3.7\nHTTP GET https://index.rubygems.org/...ctions/actions/snapshot-ruby_3_1/tmp/4/gems/system/specifications/rack-1.2.gemspec\nBundle updated!" to include "Using bundler 2.3.7\n"
Diff:
@@ -1,19 +1,37 @@
-Using bundler 2.3.7\n
+Running `bundle update --bundler "> 0.a"` with bundler 2.3.7
+HTTP GET https://index.rubygems.org/versions
+HTTP 200 OK https://index.rubygems.org/versions
+Fetching gem metadata from https://rubygems.org/
+Looking up gems ["bundler"]
+HTTP GET https://index.rubygems.org/info/bundler
+HTTP 200 OK https://index.rubygems.org/info/bundler
+Updating bundler to 2.3.9.
+Fetching bundler 2.3.9
+Installing bundler 2.3.9
+Running `bundle update --bundler "> 0.a"` with bundler 2.3.9
+Found no changes, using resolution from the lockfile
+Using bundler 2.3.9
+0: bundler (2.3.9) from /home/runner/work/actions/actions/snapshot-ruby_3_1/tmp/4/gems/system/specifications/bundler-2.3.9.gemspec
+Using prints_loaded_gems 1.0
+0: prints_loaded_gems (1.0) from /home/runner/work/actions/actions/snapshot-ruby_3_1/tmp/4/gems/system/specifications/prints_loaded_gems-1.0.gemspec
+Using rack 1.2
+0: rack (1.2) from /home/runner/work/actions/actions/snapshot-ruby_3_1/tmp/4/gems/system/specifications/rack-1.2.gemspec
+Bundle updated!
# ./spec/bundler/commands/binstubs_spec.rb:229:in `block (5 levels) in <top (required)>'
# ./spec/bundler/spec_helper.rb:101:in `block (4 levels) in <top (required)>'
# ./spec/bundler/spec_helper.rb:101:in `block (3 levels) in <top (required)>'
# ./spec/bundler/support/helpers.rb:350:in `block in with_gem_path_as'
# ./spec/bundler/support/helpers.rb:364:in `without_env_side_effects'
# ./spec/bundler/support/helpers.rb:345:in `with_gem_path_as'
# ./spec/bundler/spec_helper.rb:100:in `block (2 levels) in <top (required)>'
</code></pre>
<p>It can reproduce with a small example.</p>
<p>Spec expects 3.0's behavior:</p>
<pre><code>$ rbenv local 3.0.3
$ bundle init
Writing new Gemfile to /tmp/x/Gemfile
$ bundle i
The Gemfile specifies no dependencies
Resolving dependencies...
Bundle complete! 0 Gemfile dependencies, 1 gem now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
$ bundle update --bundler "> 0.a"
The Gemfile specifies no dependencies
Bundle updated!
$
</code></pre>
<p>Actual 3.1's behavior:</p>
<pre><code>$ rbenv local 3.1.1
$ bundle init
Writing new Gemfile to /tmp/x/Gemfile
$ bundle i
The Gemfile specifies no dependencies
Resolving dependencies...
Bundle complete! 0 Gemfile dependencies, 1 gem now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
$ bundle update --bundler "> 0.a"
Fetching gem metadata from https://rubygems.org/.
The Gemfile specifies no dependencies
Bundle updated!
$
</code></pre>
<p>I'm not sure which is expected behavior: spec's or changed implementation.</p>
Ruby master - Feature #17361 (Closed): lambda(&block) does not warn with lazy proc allocation
https://bugs.ruby-lang.org/issues/17361
2020-12-03T02:45:23Z
znz (Kazuhiro NISHIYAMA)
<p>In NEWS,</p>
<pre><code> * Kernel#lambda now warns if called without a literal block.
[[Feature #15973]]
</code></pre>
<p>But the following code from <a href="https://docs.ruby-lang.org/ja/latest/method/Kernel/m/lambda.html" class="external">https://docs.ruby-lang.org/ja/latest/method/Kernel/m/lambda.html</a> (<a href="https://github.com/rurema/doctree/blob/495868c466c97c9bcca28d64d6ce0d68350de3e2/refm/api/src/_builtin/functions#L2436-L2441" class="external">https://github.com/rurema/doctree/blob/495868c466c97c9bcca28d64d6ce0d68350de3e2/refm/api/src/_builtin/functions#L2436-L2441</a>) does not warn.</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="k">def</span> <span class="nf">foo</span> <span class="o">&</span><span class="n">block</span>
<span class="nb">lambda</span><span class="p">(</span><span class="o">&</span><span class="n">block</span><span class="p">)</span>
<span class="k">end</span>
<span class="n">it</span> <span class="o">=</span> <span class="n">foo</span><span class="p">{</span><span class="nb">p</span> <span class="mi">12</span><span class="p">}</span>
<span class="n">it</span><span class="p">.</span><span class="nf">call</span> <span class="c1">#=> 12</span>
</code></pre>
<p>Once block assign to a local variable, it warns.</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="k">def</span> <span class="nf">foo</span> <span class="o">&</span><span class="n">block</span>
<span class="n">b</span> <span class="o">=</span> <span class="n">block</span>
<span class="nb">lambda</span><span class="p">(</span><span class="o">&</span><span class="n">b</span><span class="p">)</span>
<span class="k">end</span>
<span class="n">it</span> <span class="o">=</span> <span class="n">foo</span><span class="p">{</span><span class="nb">p</span> <span class="mi">12</span><span class="p">}</span>
<span class="n">it</span><span class="p">.</span><span class="nf">call</span> <span class="c1">#=> 12</span>
</code></pre>
Ruby master - Feature #17173 (Open): open-uri で ciphers を設定したい
https://bugs.ruby-lang.org/issues/17173
2020-09-16T04:55:19Z
znz (Kazuhiro NISHIYAMA)
<p>Debian GNU/Linux 10 (buster) の OpenSSL 1.1.1d の環境だと <a href="https://www.famitsu.com" class="external">https://www.famitsu.com</a> で <code>dh key too small</code> になってつながらないのですが、 <code>ciphers</code> に <code>DEFAULT:!DH</code> を設定するとつながるので、 <code>open-uri</code> 経由でも <code>ciphers</code> を設定したいです。</p>
<p>curl での確認:</p>
<pre><code>% curl --head https://www.famitsu.com/
curl: (35) error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small
zsh: exit 35 curl --head https://www.famitsu.com/
% curl --ciphers 'DEFAULT:!DH' --head https://www.famitsu.com/
HTTP/1.1 200 OK
Server: nginx/1.12.2
Date: Wed, 16 Sep 2020 04:48:25 GMT
Content-Type: text/html
Connection: keep-alive
Vary: Accept-Encoding
Accept-Ranges: bytes
Vary: Accept-Encoding
Strict-Transport-Security: max-age=60
</code></pre>
<p>ruby での確認:</p>
<pre><code>% ruby -r open-uri -e 'open("https://www.famitsu.com/")'
Traceback (most recent call last):
13: from -e:1:in `<main>'
12: from /usr/lib/ruby/2.5.0/open-uri.rb:35:in `open'
11: from /usr/lib/ruby/2.5.0/open-uri.rb:735:in `open'
10: from /usr/lib/ruby/2.5.0/open-uri.rb:165:in `open_uri'
9: from /usr/lib/ruby/2.5.0/open-uri.rb:224:in `open_loop'
8: from /usr/lib/ruby/2.5.0/open-uri.rb:224:in `catch'
7: from /usr/lib/ruby/2.5.0/open-uri.rb:226:in `block in open_loop'
6: from /usr/lib/ruby/2.5.0/open-uri.rb:755:in `buffer_open'
5: from /usr/lib/ruby/2.5.0/open-uri.rb:337:in `open_http'
4: from /usr/lib/ruby/2.5.0/net/http.rb:909:in `start'
3: from /usr/lib/ruby/2.5.0/net/http.rb:920:in `do_start'
2: from /usr/lib/ruby/2.5.0/net/http.rb:985:in `connect'
1: from /usr/lib/ruby/2.5.0/net/protocol.rb:44:in `ssl_socket_connect'
/usr/lib/ruby/2.5.0/net/protocol.rb:44:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: dh key too small (OpenSSL::SSL::SSLError)
zsh: exit 1 ruby -r open-uri -e 'open("https://www.famitsu.com/")'
% ruby -r net/http -e 'http=Net::HTTP.new("www.famitsu.com", 443); http.use_ssl=true; http.ciphers="DEFAULT:!DH"; p http.get("/")'
#<Net::HTTPOK 200 OK readbody=true>
</code></pre>
<p><a href="https://www.ssllabs.com/ssltest/analyze.html?d=www.famitsu.com" class="external">https://www.ssllabs.com/ssltest/analyze.html?d=www.famitsu.com</a> によると Cipher Suites は</p>
<pre><code># TLS 1.2 (suites in server-preferred order)
TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 (0x9f) DH 1024 bits FS WEAK 256
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (0x9e) DH 1024 bits FS WEAK 128
TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 (0x6b) DH 1024 bits FS WEAK 256
TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 (0x67) DH 1024 bits FS WEAK 128
TLS_RSA_WITH_AES_256_GCM_SHA384 (0x9d) WEAK 256
TLS_RSA_WITH_AES_128_GCM_SHA256 (0x9c) WEAK 128
TLS_RSA_WITH_AES_256_CBC_SHA256 (0x3d) WEAK 256
TLS_RSA_WITH_AES_128_CBC_SHA256 (0x3c) WEAK 128
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (0xc030) ECDH secp384r1 (eq. 7680 bits RSA) FS 256
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (0xc02f) ECDH secp384r1 (eq. 7680 bits RSA) FS 128
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (0xc028) ECDH secp384r1 (eq. 7680 bits RSA) FS WEAK 256
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (0xc027) ECDH secp384r1 (eq. 7680 bits RSA) FS WEAK 128
</code></pre>
<p>となっていて、 Handshake Simulation では</p>
<pre><code>Chrome 80 / Win 10 R RSA 2048 (SHA256) TLS 1.2 TLS_RSA_WITH_AES_256_GCM_SHA384 No FS
Firefox 73 / Win 10 R RSA 2048 (SHA256) TLS 1.2 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ECDH secp256r1 FS
OpenSSL 1.1.1c R RSA 2048 (SHA256) TLS 1.2 TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 DH 1024 FS
</code></pre>
<p>のようになっていて、 <code>TLS_DHE_RSA_WITH_AES_256_GCM_SHA384</code> が選ばれて DH 1024 bit を拒否するクライアントからは繋らない設定になっているサーバーがあるようです。(<code>dh key too small</code> で web 検索すると同様の設定のサーバーは他にもあるようです。)</p>
Ruby master - Misc #16630 (Assigned): Deprecate pub/ruby/*snapshot* and use pub/ruby/snapshot/* i...
https://bugs.ruby-lang.org/issues/16630
2020-02-13T08:51:43Z
znz (Kazuhiro NISHIYAMA)
<p>In <a href="https://www.ruby-lang.org/en/downloads/" class="external">https://www.ruby-lang.org/en/downloads/</a>, snapshots links to <code>pub/ruby/snapshot.*</code> and <code>pub/ruby/stable-snapshot.*</code> as official snapshot tarballs now.</p>
<p>I want to change links to snapshot tarballs in <a href="https://cache.ruby-lang.org/pub/ruby/snapshot/" class="external">https://cache.ruby-lang.org/pub/ruby/snapshot/</a>.</p>
<p>They created by <a href="https://github.com/ruby/actions/" class="external">https://github.com/ruby/actions/</a> now.</p>
<p>Tarballs under <code>pub/ruby/snapshot/</code> have branch name (e.g. <code>ruby_2_7</code>) in filenames.<br>
And they are tested. (but they remain even if tests failed.)</p>
<p><code>pub/ruby/*snapshot.*</code> are not tested.<br>
And there are fewer files under <code>pub/ruby/</code> without sub-directory recently. (e.g. <code>ruby- 2.7.*</code> are in <code>pub/ruby/2.7/</code> only.)<br>
So I want to remove them.</p>
<p>Because of the plan, <code>stable-snapshot.*</code> are still snapshot of <code>ruby_2_6</code> instead of <code>ruby_2_7</code>.</p>
Ruby master - Feature #16513 (Closed): TracePoint#inspect to return "... file:line" instead of "....
https://bugs.ruby-lang.org/issues/16513
2020-01-16T08:46:10Z
znz (Kazuhiro NISHIYAMA)
<p><a href="https://bugs.ruby-lang.org/issues/16101" class="external"><code>Proc#to_s</code></a> and <a href="https://bugs.ruby-lang.org/issues/16412" class="external"><code>Thread#to_s</code></a> have changed, but <code>TracePoint#inspect</code> includes <code>@</code>.</p>
<p>I think changing <code>TracePoint#inspect</code> too is better for consistency.</p>
<pre><code>% ruby -ve 'TracePoint.new{p _1}.enable;p'
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin18]
#<TracePoint:c_call `p'@-e:1>
#<TracePoint:c_return `p'@-e:1>
</code></pre>
Ruby master - Bug #16424 (Closed): abort without arguments does not print error info
https://bugs.ruby-lang.org/issues/16424
2019-12-15T06:17:06Z
znz (Kazuhiro NISHIYAMA)
<p><a href="https://docs.ruby-lang.org/ja/2.0.0/method/Kernel/m/abort.html" class="external">https://docs.ruby-lang.org/ja/2.0.0/method/Kernel/m/abort.html</a><br>
には「引数を省略した呼び出し時に $! が nil でなければその例外の メッセージを標準エラー出力 $stderr に出力」されるとありますが、 1.9 から出力されなくなっているようです。</p>
<pre><code>% docker run -it --rm rubylang/all-ruby env ALL_RUBY_SINCE=ruby-1.6 ./all-ruby -e 'begin;raise "foo";rescue;abort;end'
ruby-1.6.0 -e:1: foo (RuntimeError)
exit 1
...
ruby-1.8.7-p374 -e:1: foo (RuntimeError)
exit 1
ruby-1.9.0-0 exit 1
...
ruby-2.7.0-preview3 exit 1
</code></pre>
<p>笹田さんに直接確認してみたところ、バグということだったので、チケットとして登録しておきます。</p>
Ruby master - Feature #16419 (Closed): FrozenError.new ignores receiver:
https://bugs.ruby-lang.org/issues/16419
2019-12-14T07:29:44Z
znz (Kazuhiro NISHIYAMA)
<p>Other exception classes with receiver accept recevier as keyword argument of new.<br>
But FrozenError.new accept as positional argument.<br>
I think keyword argument is better consistency.</p>
<pre><code>% git grep 'receiver[:=]' ../error.c
../error.c: * FrozenError.new(msg=nil, receiver=nil) -> name_error
../error.c: * NameError.new(msg=nil, name=nil, receiver: nil) -> name_error
../error.c: * [1, 2, 3].method(:rject) # NameError with name "rject" and receiver: Array
../error.c: * [1, 2, 3].singleton_method(:rject) # NameError with name "rject" and receiver: [1, 2, 3]
../error.c: * NoMethodError.new(msg=nil, name=nil, args=nil, private=false, receiver: nil) -> no_method_error
../error.c: * KeyError.new(message=nil, receiver: nil, key: nil) -> key_error
</code></pre>
Ruby master - Feature #16412 (Closed): Thread#to_s to return "... file:line" instead of "...@file...
https://bugs.ruby-lang.org/issues/16412
2019-12-10T00:58:56Z
znz (Kazuhiro NISHIYAMA)
<p><a href="https://bugs.ruby-lang.org/issues/16101" class="external">Proc#to_s returns "... file:line" instead of "...@file:line"</a>, but <code>Thread#to_s</code> includes <code>@</code>.</p>
<p>I think changing <code>Thread#to_s</code> too is better for consistency.</p>
Ruby master - Feature #16356 (Open): Method#inspect of argument forwarding
https://bugs.ruby-lang.org/issues/16356
2019-11-20T10:58:11Z
znz (Kazuhiro NISHIYAMA)
<p>Current behavior includes <code>(**, &&)</code>.<br>
Is this intentional?</p>
<pre><code>% ruby -e 'def mf(...);end;p method(:mf)'
#<Method: main.mf(**, &&) -e:1>
</code></pre>
<p>I added tests of current behavior at <a href="https://github.com/ruby/ruby/commit/777973084e599cf9efa490173709b187fb507f90" class="external">https://github.com/ruby/ruby/commit/777973084e599cf9efa490173709b187fb507f90</a></p>
Ruby master - Feature #15999 (Open): KeyError#inspect does not contain receiver and key
https://bugs.ruby-lang.org/issues/15999
2019-07-14T07:31:12Z
znz (Kazuhiro NISHIYAMA)
<p>Some exception classes accept <code>receiver:</code>, but <code>#inspect</code> does not show such information.<br>
How about adding receiver (and key) to <code>#inspect</code>?</p>
<pre><code>KeyError.new("message", receiver: :receiver, key: :key).inspect #=> "#<KeyError: message>"
NameError.new("message", receiver: :receiver).inspect #=> "#<NameError: message>"
NoMethodError.new("message", receiver: :receiver).inspect #=> "#<NoMethodError: message>"
</code></pre>
Ruby master - Feature #15609 (Open): Kernel#sleep returns Float instead of Integer
https://bugs.ruby-lang.org/issues/15609
2019-02-18T07:02:42Z
znz (Kazuhiro NISHIYAMA)
<p><code>rb_f_sleep</code> uses <code>time()</code> internally, so it always returns Integer even if it called with Float.</p>
<p><a href="https://github.com/ruby/ruby/blob/124957566f041e5c6e8f678dfaf62cae381826dc/process.c#L4840-L4857" class="external">https://github.com/ruby/ruby/blob/124957566f041e5c6e8f678dfaf62cae381826dc/process.c#L4840-L4857</a></p>
<p>I think returning Float is more useful than Integer.<br>
(But I have no real use cases now.)</p>
Ruby master - Bug #15311 (Closed): `make check` causes `warning: No mjit_build_directory`
https://bugs.ruby-lang.org/issues/15311
2018-11-16T07:37:31Z
znz (Kazuhiro NISHIYAMA)
<p><code>make help</code> says:</p>
<pre><code> check: equals make test test-all test-spec
</code></pre>
<p>But <code>make check</code> does not depend <code>test-all</code> acctually, it does not create <code>mjit_build_dir.so</code>.</p>
<p>So <code>make check</code> outputs many <code>warning: No mjit_build_directory</code>, and fails at <code>TestJIT#test_unload_units</code>.</p>
Ruby master - Feature #14931 (Open): [DOC] exception keyword argument is not documented in some m...
https://bugs.ruby-lang.org/issues/14931
2018-07-22T08:53:57Z
znz (Kazuhiro NISHIYAMA)
<p>Some methods accept exception keyword argument since 2.6.0, but it is not documented in rdoc yet.</p>
<p>In NEWS,</p>
<ul>
<li>
<p>Kernel.#Complex takes :exception option to specify the way of error handling [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: An option to pass to `Integer`, `Float`, to return `nil` instead of raise an exception (Closed)" href="https://bugs.ruby-lang.org/issues/12732">#12732</a>]</p>
</li>
<li>
<p>Kernel.#Float takes :exception option to specify the way of error handling [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: An option to pass to `Integer`, `Float`, to return `nil` instead of raise an exception (Closed)" href="https://bugs.ruby-lang.org/issues/12732">#12732</a>]</p>
</li>
<li>
<p>Kernel.#Integer takes :exception option to specify the way of error handling [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: An option to pass to `Integer`, `Float`, to return `nil` instead of raise an exception (Closed)" href="https://bugs.ruby-lang.org/issues/12732">#12732</a>]</p>
</li>
<li>
<p>Kernel.#Rational takes :exception option to specify the way of error handling [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: An option to pass to `Integer`, `Float`, to return `nil` instead of raise an exception (Closed)" href="https://bugs.ruby-lang.org/issues/12732">#12732</a>]</p>
</li>
<li>
<p>Kernel.#system takes :exception option to raise an exception on<br>
failure. [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Add option to let Kernel.#system raise error instead of returning false (Closed)" href="https://bugs.ruby-lang.org/issues/14386">#14386</a>]</p>
</li>
</ul>
Ruby master - Feature #14930 (Closed): sample/trick2018
https://bugs.ruby-lang.org/issues/14930
2018-07-21T12:54:04Z
znz (Kazuhiro NISHIYAMA)
<p>まだ TRICK FINAL の上位作品が sample に追加されていないようです。<br>
<a href="https://github.com/tric/trick2018" class="external">https://github.com/tric/trick2018</a></p>
<p>過去の回も含めて情報を探してみると以下のように、何作品を追加するのかは、以下の情報しかみつけられなかったので、以前の回の上位作品を追加した <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/18">@mame (Yusuke Endoh)</a> さんに assign しておきます。</p>
<p><a href="https://magazine.rubyist.net/articles/0043/0043-TRICK2013.html" class="external">https://magazine.rubyist.net/articles/0043/0043-TRICK2013.html</a></p>
<blockquote>
<p>上位 3 (or 4) 作品: Ruby 公式リポジトリにサンプルコードとしてコミットされる (次期 Ruby リリースパッケージにも含まれる予定)</p>
</blockquote>
<p><a href="https://magazine.rubyist.net/articles/0053/0053-TRICK2015.html" class="external">https://magazine.rubyist.net/articles/0053/0053-TRICK2015.html</a></p>
<blockquote>
<p>上位 5 作品: Ruby 公式リポジトリにサンプルコードとしてコミットされる (Ruby 2.3 としてリリース済み)</p>
</blockquote>
Ruby master - Bug #14840 (Closed): `warning: constant Net::ProtoServerError is deprecated` only v...
https://bugs.ruby-lang.org/issues/14840
2018-06-10T04:51:13Z
znz (Kazuhiro NISHIYAMA)
<p>When ruby loads <code>net/protocol</code> via <code>net/http</code>, <code>Net::ProtoServerError</code> is deprecated.<br>
But via <code>net/smtp</code>, etc, it does not warn.<br>
Is this intentional?</p>
<pre><code>% ruby -r net/http -e 'Net::ProtoServerError'
-e:1: warning: constant Net::ProtoServerError is deprecated
% ruby -r net/smtp -e 'Net::ProtoServerError'
</code></pre>
Ruby master - Bug #14325 (Closed): Set#reset raise RuntimeError instead of FrozenError
https://bugs.ruby-lang.org/issues/14325
2018-01-06T15:32:05Z
znz (Kazuhiro NISHIYAMA)
<p>I think it should use <code>FrozenError</code> instead of <code>RuntimeError</code>.<br>
I can't reproduce without modifying instance variable directly.</p>
<pre><code>% ruby -v -r set -e 'Set[].tap{|s|s.instance_variable_set(:@hash, :dummy)}.freeze.reset'
ruby 2.6.0dev (2018-01-06 trunk 61640) [x86_64-darwin16]
Traceback (most recent call last):
1: from -e:1:in `<main>'
.../lib/ruby/2.6.0/set.rb:527:in `reset': can't modify frozen Set (RuntimeError)
% ruby -v -I ./lib -r set -e 'Set[].tap{|s|s.instance_variable_set(:@hash, :dummy)}.freeze.reset'
ruby 2.6.0dev (2018-01-06 trunk 61640) [x86_64-darwin16]
Traceback (most recent call last):
1: from -e:1:in `<main>'
.../lib/set.rb:527:in `reset': can't modify frozen Set (FrozenError)
</code></pre>
<pre><code class="patch syntaxhl" data-language="patch"><span class="gh">diff --git a/lib/set.rb b/lib/set.rb
index 9642e74af4..d777b81b8f 100644
</span><span class="gd">--- a/lib/set.rb
</span><span class="gi">+++ b/lib/set.rb
</span><span class="p">@@ -524,7 +524,7 @@</span> def reset
if @hash.respond_to?(:rehash)
@hash.rehash # This should perform frozenness check.
else
<span class="gd">- raise "can't modify frozen #{self.class.name}" if frozen?
</span><span class="gi">+ raise FrozenError, "can't modify frozen #{self.class.name}" if frozen?
</span> end
self
end
</code></pre>
Ruby master - Bug #14266 (Closed): Set#clone(freeze: false) makes frozen internal hash
https://bugs.ruby-lang.org/issues/14266
2018-01-02T01:24:26Z
znz (Kazuhiro NISHIYAMA)
<pre><code>% irb -r irb/completion --simple-prompt
>> require 'set'
=> true
>> set=Set[].freeze.clone(freeze: false)
=> #<Set: {}>
>> set.frozen?
=> false
>> set.instance_variable_get(:@hash).frozen?
=> true
</code></pre>
<p>In <code>Set#initialize_clone</code>, clone hash without freeze keyword argument.<br>
But I think there is no easy way how to know freeze keyword argument value in <code>initialize_clone</code>.</p>
<pre><code> # Clone internal hash.
def initialize_clone(orig)
super
@hash = orig.instance_variable_get(:@hash).clone
end
</code></pre>
Ruby master - Feature #14197 (Open): `Enumerable#{select,reject}` accept a pattern argument
https://bugs.ruby-lang.org/issues/14197
2017-12-18T12:42:52Z
znz (Kazuhiro NISHIYAMA)
<p><code>#all?</code>, <code>#any?</code>, <code>#none?</code>, and <code>#one?</code> accept pattern arguments since 2.5.0.</p>
<p><code>#grep</code>, and <code>#grep_v</code> have such feature, but it is hard for me to remember them since I would be thinking of using <code>#select</code>, or <code>#reject</code>, and <code>#select</code> and <code>#reject</code> don't have such feature.</p>
<p>I want to write</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="n">collection</span><span class="p">.</span><span class="nf">reject</span><span class="p">(</span><span class="sr">/re/</span><span class="p">)</span>
</code></pre>
<p>instead of</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="n">collection</span><span class="p">.</span><span class="nf">reject</span> <span class="p">{</span><span class="o">|</span><span class="n">item</span><span class="o">|</span> <span class="sr">/re/</span> <span class="o">=~</span> <span class="n">item</span> <span class="p">}</span>
</code></pre>
<p>or</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="n">collection</span><span class="p">.</span><span class="nf">grep_v</span><span class="p">(</span><span class="sr">/re/</span><span class="p">)</span>
</code></pre>
Ruby master - Bug #14163 (Closed): Pages of rdoc include files which are not documents
https://bugs.ruby-lang.org/issues/14163
2017-12-09T13:34:33Z
znz (Kazuhiro NISHIYAMA)
<p><a href="https://docs.ruby-lang.org/en/trunk/" class="external">https://docs.ruby-lang.org/en/trunk/</a> includes <code>*.tt</code>, <code>*.gemspec</code>, Executable, Executable.bundler, Executable.standalone.<br>
But it seems there are not documents nor sources including documents.</p>
Ruby master - Feature #14040 (Open): deprecate HTTP.version_1_2
https://bugs.ruby-lang.org/issues/14040
2017-10-22T09:32:41Z
znz (Kazuhiro NISHIYAMA)
<p>r60311 をみて、<code>Net::HTTP#min_version/max_version</code> って長い間 1.2 になってから変わっていない net/http 自体のバージョンと紛らわしいと思ったので、 <code>Net::HTTP.version_1_2</code> などは deprecated にして、将来のバージョン (ruby 3.0?) では削除してしまうのはどうでしょうか?</p>
<p>(ついでに書いてしまうと HTTP 自体のバージョンとも紛らわしいので <code>Net::HTTP#min_ssl_version/max_ssl_version</code> のような名前の方が良いかもしれないと思いました。)</p>
Ruby master - Feature #13904 (Closed): getter for original information of Enumerator
https://bugs.ruby-lang.org/issues/13904
2017-09-15T15:27:58Z
znz (Kazuhiro NISHIYAMA)
<p>At <a href="https://gitter.im/red-data-tools/ja?at=59b0aaa097cedeb04828e268" class="external">https://gitter.im/red-data-tools/ja?at=59b0aaa097cedeb04828e268</a> ,<br>
mrkn says narray and pycall use internal information of ruby to check <code>Range#step(n)</code>.</p>
<p>People of red-data-tools/ja suggest subclass of Enumerator.<br>
But I think it does not match Ruby's '大クラス主義' (I don't know this word in English), so I suggest to add some methods to Enumerator class.</p>
<p>proof of concept attached.</p>
<p>Usage:</p>
<pre><code>% irb -r irb/completion --simple-prompt
>> e=(1..2).step(3)
=> #<Enumerator: 1..2:step(3)>
>> e.receiver
=> 1..2
>> e.method_name
=> :step
>> e.arguments
=> [3]
</code></pre>
<p><code>#method</code> is conflict with <code>Kernel#method</code>, so use <code>#method_name</code> instead.</p>
Ruby master - Bug #13854 (Closed): `make golf` broken
https://bugs.ruby-lang.org/issues/13854
2017-08-31T11:16:49Z
znz (Kazuhiro NISHIYAMA)
<p>make golf が失敗します。</p>
<pre><code>% make golf
...
compiling .../ruby/goruby.c golf_prelude.c
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
uncommon.mk:951: ターゲット 'goruby.o' のレシピで失敗しました
</code></pre>
<p>たぶん r58724 の変更の</p>
<pre><code>$(MAINOBJ): $(srcdir)/$(MAINSRC)
$(ECHO) compiling $(srcdir)/$(MAINSRC)
$(Q) $(CC) $(MAINCPPFLAGS) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$(srcdir)/$(MAINSRC)
</code></pre>
<p>が</p>
<pre><code>golf: $(LIBRUBY) $(GOLFOBJS) PHONY
$(Q) $(MAKE) $(mflags) MAINOBJ="$(GOLFOBJS)" PROGRAM=$(GORUBY)$(EXEEXT) program
</code></pre>
<p>のように MAINOBJ が複数になることを想定していなくて、<code>$(CSRCFLAG)$(srcdir)/$(MAINSRC)</code> の最後の MAINSRC が <code>goruby.c golf_prelude.c</code> に展開されてしまって失敗しているようです。</p>
Ruby master - Bug #13808 (Closed): lib/ipaddr.gemspec includes `git ls-files -z`
https://bugs.ruby-lang.org/issues/13808
2017-08-12T05:42:00Z
znz (Kazuhiro NISHIYAMA)
<p><code>git ls-files -z</code> in gemspec may occur error.</p>
<p>see <a href="https://bugs.ruby-lang.org/issues/13423" class="external">https://bugs.ruby-lang.org/issues/13423</a> and/or <a href="https://bugs.ruby-lang.org/issues/12736" class="external">https://bugs.ruby-lang.org/issues/12736</a></p>
Ruby master - Bug #13423 (Closed): error in etc.gemspec
https://bugs.ruby-lang.org/issues/13423
2017-04-11T14:11:11Z
znz (Kazuhiro NISHIYAMA)
<p><code>git</code> コマンドがないと <code>make install</code> が <code>etc.gemspec</code> でエラーになります。</p>
<pre><code>Invalid gemspec in [/path/to/ruby/ext/etc/etc.gemspec]: No such file or directory - git
from ../tool/rbinstall.rb:889:in `<main>'
from ../tool/rbinstall.rb:889:in `each'
from ../tool/rbinstall.rb:892:in `block in <main>'
from ../tool/rbinstall.rb:763:in `block in <main>'
from ../tool/rbinstall.rb:775:in `install_default_gem'
from ../tool/rbinstall.rb:775:in `map'
../tool/rbinstall.rb:776:in `block in install_default_gem': invalid spec in /path/to/ruby/ext/etc/etc.gemspec (RuntimeError)
</code></pre>
Ruby master - Bug #13114 (Closed): test failures since r57284
https://bugs.ruby-lang.org/issues/13114
2017-01-08T05:49:41Z
znz (Kazuhiro NISHIYAMA)
<p>r57284 の変更でいくつかのテストが失敗します。</p>
<p>最小の再現条件を絞り込もうとしたのですが、webrick/httpauth/basicauth だと再現するのに、個別の webrick/httpstatus と webrick/httpauth/authenticator だと再現しないなど、条件がよくわかりませんでした。</p>
<pre><code>% ruby -r webrick/httpauth/basicauth -e 'p WEBrick::HTTPStatus::ProxyAuthenticationRequired'
WEBrick::HTTPAuth::ProxyAuthenticator::AuthException
% ruby -r webrick/httpstatus -r webrick/httpauth/authenticator -e 'p WEBrick::HTTPStatus::ProxyAuthenticationRequired'
WEBrick::HTTPStatus::ProxyAuthenticationRequired
</code></pre>
Ruby master - Bug #13021 (Closed): `Zlib.gunzip` modifies argument String
https://bugs.ruby-lang.org/issues/13021
2016-12-10T02:00:33Z
znz (Kazuhiro NISHIYAMA)
<pre><code>% irb -r irb/completion --simple-prompt
>> RUBY_DESCRIPTION
=> "ruby 2.4.0dev (2016-12-10 trunk 57036) [x86_64-linux]"
>> require 'zlib'
=> true
>> gz=Zlib.gzip('test')
=> "\x1F\x8B\b\x00\xBF`KX\x00\x03+I-.\x01\x00\f~\x7F\xD8\x04\x00\x00\x00"
>> Zlib.gunzip(gz)
=> "test"
>> gz
=> "+I-.\x01\x00\f~\x7F\xD8\x04\x00\x00\x00"
</code></pre>
Ruby master - Bug #12850 (Closed): SEGV in C level backtrace information
https://bugs.ruby-lang.org/issues/12850
2016-10-18T13:41:27Z
znz (Kazuhiro NISHIYAMA)
<p>Ubuntu 16.04.1 LTS の環境で、r56445 の変更の影響で SEGV のテストの <code>C level backtrace information</code> の表示で SEGV します。</p>
<pre><code>% gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)
% gdb -q --args ruby --disable-gems -v -e 'Process.kill :SEGV, $$'
Reading symbols from ruby...done.
(gdb) run
Starting program: /home/vagrant/build/ruby-git/ruby --disable-gems -v -e Process.kill\ :SEGV,\ \$\$
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7ff5700 (LWP 5839)]
ruby 2.4.0dev (2016-10-18 trunk 56445) [x86_64-linux]
Thread 1 "ruby" received signal SIGSEGV, Segmentation fault.
0x00007ffff7537757 in kill () at ../sysdeps/unix/syscall-template.S:84
84 ../sysdeps/unix/syscall-template.S: そのようなファイルやディレクトリはありません.
(gdb) c
Continuing.
-e:1: [BUG] Segmentation fault at 0x000384000016b9
ruby 2.4.0dev (2016-10-18 trunk 56445) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0003 p:---- s:0012 e:000011 CFUNC :kill
c:0002 p:0016 s:0006 e:000005 EVAL -e:1 [FINISH]
c:0001 p:0000 s:0003 E:001e60 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
-e:1:in `<main>'
-e:1:in `kill'
-- Machine register context ------------------------------------------------
RIP: 0x00007ffff7537757 RBP: 0x0000000000602f70 RSP: 0x00007fffffffd328
RAX: 0x0000000000000000 RBX: 0x0000000000603728 RCX: 0x00007ffff7537757
RDX: 0x0000000000000000 RDI: 0x00000000000016b9 RSI: 0x000000000000000b
R8: 0x0000000000603728 R9: 0x0000000000000005 R10: 0x000000000000022d
R11: 0x0000000000000206 R12: 0x0000000000000002 R13: 0x00000000000016b9
R14: 0x0000000000000001 R15: 0x0000000000000001 EFL: 0x0000000000000206
-- C level backtrace information -------------------------------------------
Thread 1 "ruby" received signal SIGSEGV, Segmentation fault.
parse_debug_line_cu (offset=0, lines=0x7657c0, obj=0x765cb0, debug_line=<synthetic pointer>,
traces=0x7ffff7dd31c0 <trace>, num_traces=18) at /home/vagrant/s/github.com/ruby/ruby/addr2line.c:291
291 while (*p) {
(gdb) p p
$1 = 0x8000f5f977f7 <error: Cannot access memory at address 0x8000f5f977f7>
(gdb)
</code></pre>
Ruby master - Bug #12815 (Closed): Integer#digits's error message different when base is Fixnum o...
https://bugs.ruby-lang.org/issues/12815
2016-10-06T12:33:05Z
znz (Kazuhiro NISHIYAMA)
<p>Is this intended?</p>
<pre><code>% ruby -ve '60.upto(65){|n| 1.digits(-(1<<n)) rescue p $! }'
ruby 2.4.0dev (2016-10-06 trunk 56364) [x86_64-linux]
#<ArgumentError: invalid radix -1152921504606846976>
#<ArgumentError: invalid radix -2305843009213693952>
#<ArgumentError: invalid radix -4611686018427387904>
#<ArgumentError: negative radix>
#<ArgumentError: negative radix>
#<ArgumentError: negative radix>
</code></pre>
Ruby master - Bug #12792 (Closed): cannot open https://bugs.jruby.org/4176
https://bugs.ruby-lang.org/issues/12792
2016-09-27T12:53:02Z
znz (Kazuhiro NISHIYAMA)
<p><a href="https://bugs.jruby.org/4176" class="external">https://bugs.jruby.org/4176</a> in r56260.<br>
But I cannot open it because connection refused.</p>
Ruby master - Bug #12785 (Closed): misc/test_ruby_mode.rb failed with emacs 25.1.1
https://bugs.ruby-lang.org/issues/12785
2016-09-22T14:22:11Z
znz (Kazuhiro NISHIYAMA)
<p>When emacs is 25.1.1, test/misc/test_ruby_mode.rb causes 8 failures.</p>
<pre><code>vagrant@archlinux:~/ruby/build$ make test-all TESTS=misc/test_ruby_mode.rb
CC = ccache gcc
LD = ld
LDSHARED = ccache gcc -shared
CFLAGS = -O3 -fno-fast-math -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=implicit-function-declaration -Werror=deprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -std=gnu99 -fPIC
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT
CPPFLAGS = -DRUBY_DEBUG_ENV -DARRAY_DEBUG -I. -I.ext/include/x86_64-linux -I../include -I.. -I../enc/unicode/9.0.0
DLDFLAGS = -Wl,-soname,libruby.so.2.4 -fstack-protector
SOLIBS = -lpthread -lgmp -ldl -lcrypt -lm
組み込み spec を使用しています。
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/lto-wrapper
ターゲット: x86_64-pc-linux-gnu
configure 設定: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release
スレッドモデル: posix
gcc バージョン 6.2.1 20160830 (GCC)
Run options: "--ruby=./miniruby -I../lib -I. -I.ext/common ../tool/runruby.rb --extout=.ext -- --disable-gems" --excludes-dir=../test/excludes --name=!/memory_leak/
# Running tests:
[1/9] TestRubyMode::TestIndent#test_array_after_paren_and_space = 0.08 s
1) Failure:
TestRubyMode::TestIndent#test_array_after_paren_and_space [/home/vagrant/ruby/test/misc/test_ruby_mode.rb:156]:
Expected /^Wrote / to match "Indenting region...\nIndenting region...done\n".
[2/9] TestRubyMode::TestIndent#test_array_literal = 0.08 s
2) Failure:
TestRubyMode::TestIndent#test_array_literal [/home/vagrant/ruby/test/misc/test_ruby_mode.rb:123]:
Expected /^Wrote / to match "Indenting region...\nIndenting region...done\n".
[3/9] TestRubyMode::TestIndent#test_begin_end = 0.08 s
3) Failure:
TestRubyMode::TestIndent#test_begin_end [/home/vagrant/ruby/test/misc/test_ruby_mode.rb:144]:
Expected /^Wrote / to match "Indenting region...\nIndenting region...done\n".
[4/9] TestRubyMode::TestIndent#test_expr_in_regexp = 0.08 s
4) Failure:
TestRubyMode::TestIndent#test_expr_in_regexp [/home/vagrant/ruby/test/misc/test_ruby_mode.rb:98]:
Expected /^Wrote / to match "Indenting region...\nIndenting region...done\n".
[5/9] TestRubyMode::TestIndent#test_keyword_label = 0.08 s
5) Failure:
TestRubyMode::TestIndent#test_keyword_label [/home/vagrant/ruby/test/misc/test_ruby_mode.rb:72]:
Expected /^Wrote / to match "Indenting region...\nIndenting region...done\n".
[6/9] TestRubyMode::TestIndent#test_method_with_question_mark = 0.08 s
6) Failure:
TestRubyMode::TestIndent#test_method_with_question_mark [/home/vagrant/ruby/test/misc/test_ruby_mode.rb:86]:
Expected /^Wrote / to match "Indenting region...\nIndenting region...done\n".
[7/9] TestRubyMode::TestIndent#test_simple = 0.08 s
7) Failure:
TestRubyMode::TestIndent#test_simple [/home/vagrant/ruby/test/misc/test_ruby_mode.rb:58]:
Expected /^Wrote / to match "Indenting region...\nIndenting region...done\n".
[9/9] TestRubyMode::TestIndent#test_spread_arguments = 0.08 s
8) Failure:
TestRubyMode::TestIndent#test_spread_arguments [/home/vagrant/ruby/test/misc/test_ruby_mode.rb:172]:
Expected /^Wrote / to match "Indenting region...\nIndenting region...done\n".
Finished tests in 0.670478s, 13.4233 tests/s, 64.1334 assertions/s.
9 tests, 43 assertions, 8 failures, 0 errors, 1 skips
ruby -v: ruby 2.4.0dev (2016-09-22 trunk 56204) [x86_64-linux]
make: *** [uncommon.mk:623: yes-test-all] エラー 8
vagrant@archlinux:~/ruby/build$ emacs --version
GNU Emacs 25.1.1
Copyright (C) 2016 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
</code></pre>
Ruby master - Bug #12773 (Closed): useless lines in lib/rss/rss.rb
https://bugs.ruby-lang.org/issues/12773
2016-09-18T10:31:12Z
znz (Kazuhiro NISHIYAMA)
<p><code>lib/rss/rss.rb</code> に</p>
<pre><code> attr = attr.id2name if attr.kind_of?(Integer)
</code></pre>
<p>という行が複数ありますが、<code>Fixnum#id2name</code> はもうないので、不要なのではないでしょうか。</p>
Ruby master - Bug #12764 (Closed): rubygems with multi default gem problem
https://bugs.ruby-lang.org/issues/12764
2016-09-15T13:31:24Z
znz (Kazuhiro NISHIYAMA)
<p>This issue may affect Ruby committers only.<br>
This does not probably affect released ruby.</p>
<p>With development ruby, <code>make install</code> many times.<br>
After them, default gems are duplicated when exists updated.<br>
And gem with old version in Gemfile does not work well.</p>
<p>Example:</p>
<pre><code>% gem list rdoc
*** LOCAL GEMS ***
rdoc (default: 5.0.0.beta2, default: 4.2.1)
% cat Gemfile
# frozen_string_literal: true
source "https://rubygems.org"
# gem "rails"
gem 'rdoc', '4.2.1'
% cat Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
rdoc (4.2.1)
PLATFORMS
ruby
DEPENDENCIES
rdoc (= 4.2.1)
BUNDLED WITH
1.13.0
% bundle exec ruby -r rdoc -e 'p RDoc::VERSION'
"5.0.0.beta2"
</code></pre>
<p>FYI: <a href="http://blog.n-z.jp/blog/2016-09-10-bundled-gem-and-default-gem.html" class="external">Difference of bundled gem and default gem (in Japanese)</a></p>
Ruby master - Bug #12762 (Closed): missing links in LEGAL
https://bugs.ruby-lang.org/issues/12762
2016-09-14T12:50:32Z
znz (Kazuhiro NISHIYAMA)
<ul>
<li>LEGAL の Oniguruma の節にある URL が以下の3つ全てリンク切れのようです。</li>
<li>random.c の <a href="http://www.math.keio.ac.jp/matumoto/emt.html" class="external">http://www.math.keio.ac.jp/matumoto/emt.html</a> もないようです。</li>
<li>ext/win32ole/win32ole.c の <a href="http://www.ActiveWare.com" class="external">http://www.ActiveWare.com</a> もないようです。</li>
</ul>
Ruby master - Bug #12736 (Closed): `make install` says `fatal: Not a git repository (or any of th...
https://bugs.ruby-lang.org/issues/12736
2016-09-07T12:29:48Z
znz (Kazuhiro NISHIYAMA)
<p><code>make install</code> の時に <code>fatal: Not a git repository (or any of the parent directories): .git</code> というメッセージが2回出ます。</p>
<p>ext/psych/psych.gemspec と lib/rdoc/rdoc.gemspec の</p>
<pre><code>s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
</code></pre>
<p>が原因のようです。</p>
Ruby master - Bug #12714 (Closed): make で $(topdir)/.ext/gems が作成される
https://bugs.ruby-lang.org/issues/12714
2016-08-30T12:40:03Z
znz (Kazuhiro NISHIYAMA)
<p>現在の trunk は make したとき、ビルドディレクトリに <code>$(topdir)/.ext/gems</code> というディレクトリが作成されるようです。</p>
<p>git bisect で調べてみたところ、r55950 から発生しているようです。</p>
Ruby master - Bug #12487 (Closed): -12345.digits(7) behavior
https://bugs.ruby-lang.org/issues/12487
2016-06-14T15:19:50Z
znz (Kazuhiro NISHIYAMA)
<p>rdoc of Integer#digits says <code>-12345.digits(7) #=> [4, 6, 6, 0, 5]</code>, but it raises <code>Math::DomainError: out of domain</code>.<br>
Which is expected behavior?</p>
Ruby master - Bug #11608 (Closed): test -t without fd
https://bugs.ruby-lang.org/issues/11608
2015-10-20T13:30:52Z
znz (Kazuhiro NISHIYAMA)
<p>r52202 で fd 指定なしの test -t を使っていますが、<br>
<a href="http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html" class="external">http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html</a><br>
の RATIONALE で</p>
<blockquote>
<p>The -t file_descriptor primary is shown with a mandatory argument because the grammar is ambiguous if it can be omitted. Historical implementations have allowed it to be omitted, providing a default of 1.</p>
</blockquote>
<p>と書かれているように省略せずに指定すべきではないでしょうか。</p>
Ruby master - Bug #10890 (Closed): revision.h が空になる
https://bugs.ruby-lang.org/issues/10890
2015-02-23T12:26:17Z
znz (Kazuhiro NISHIYAMA)
<p>Ubuntu 12.04 LTS のように git が古い環境だと revision.h が空になってしまいます。<br>
原因を調べてみたところ -C オプションに対応していないからのようです。</p>
<pre><code>% git --version
git version 1.7.9.5
% ruby -vd --disable=gems tool/file2lastrev.rb --revision.h .
ruby 2.3.0dev (2015-02-23) [x86_64-linux]
[["git", "-C", ".", "log", "-n1", "--date=iso", "--grep=^ *git-svn-id: .*@[0-9][0-9]*"]]
Unknown option: -C
usage: git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
[-c name=value] [--help]
<command> [<args>]
(略)
Exception `VCS::NotFoundError' at /home/kazu/z/wc/CI/ruby/tool/vcs.rb:96 - last revision not found
file2lastrev.rb: last revision not found
</code></pre>
<p>そのままだと ruby -d でも何も出なかったので以下の変更をして試しました。</p>
<pre><code>% git diff
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 9d11b3b..29bcc95 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -81,7 +81,7 @@ class VCS
end
last, changed, modified, *rest = (
begin
- if NullDevice
+ if !$DEBUG && NullDevice
save_stderr = STDERR.dup
STDERR.reopen NullDevice, 'w'
end
</code></pre>
Ruby master - Feature #9857 (Closed): Pathname#birthtime
https://bugs.ruby-lang.org/issues/9857
2014-05-22T15:16:00Z
znz (Kazuhiro NISHIYAMA)
<p><code>File.birthtime</code> が追加されたので <code>Pathname#birthtime</code> もあると良いのではないでしょうか。</p>
Ruby master - Feature #8786 (Open): Process.clock_gettime(:realtime)
https://bugs.ruby-lang.org/issues/8786
2013-08-15T22:33:13Z
znz (Kazuhiro NISHIYAMA)
<p>Socket や IO#seek のように Process.clock_gettime の第一引数も Symbol で :realtime などを受け付けると良いのではないでしょうか。</p>
Ruby master - Feature #8696 (Closed): Process.setproctitle
https://bugs.ruby-lang.org/issues/8696
2013-07-27T16:54:51Z
znz (Kazuhiro NISHIYAMA)
<p>$0= と同じ機能が$変数を使わずに書けないようなので、<br>
Process.setproctitle を追加するのはどうでしょうか?</p>
Ruby master - Bug #8518 (Closed): assertion failed in rb_ary_sort_bang
https://bugs.ruby-lang.org/issues/8518
2013-06-12T12:58:24Z
znz (Kazuhiro NISHIYAMA)
<p>-DARRAY_DEBUG の続きです。</p>
<p>test/ruby/test_array.rb の test_sort! の以下に相当する部分で assertion failed になります。</p>
<p>% ./miniruby -e 'a=Array[4, 1, 2, 3]; a.sort! {|m, n| a.replace([9, 8, 7]); m <=> n }'<br>
miniruby: .../ruby/array.c:2336: rb_ary_sort_bang: Assertion `!(((!((!(((VALUE)((ary)) & RUBY_IMMEDIATE_MASK) || !!(((VALUE)((ary)) & ~((VALUE)RUBY_Qnil)) == 0)) && (int)(((struct RBasic*)((ary)))->flags & RUBY_T_MASK) != RUBY_T_NODE)?(((struct RBasic*)(((ary))))->flags&(((((VALUE)1)<<(12+2))))):0) || !((!(((VALUE)((ary)) & RUBY_IMMEDIATE_MASK) || !!(((VALUE)((ary)) & ~((VALUE)RUBY_Qnil)) == 0)) && (int)(((struct RBasic*)((ary)))->flags & RUBY_T_MASK) != RUBY_T_NODE)?(((struct RBasic*)(((ary))))->flags&(((((VALUE)1)<<(12+1))))):0)) ? (void) (0) : __assert_fail ("!((!(((VALUE)((ary)) & RUBY_IMMEDIATE_MASK) || !!(((VALUE)((ary)) & ~((VALUE)RUBY_Qnil)) == 0)) && (int)(((struct RBasic*)((ary)))->flags & RUBY_T_MASK) != RUBY_T_NODE)?(((struct RBasic*)(((ary))))->flags&(((((VALUE)1)<<(12+2))))):0) || !((!(((VALUE)((ary)) & RUBY_IMMEDIATE_MASK) || !!(((VALUE)((ary)) & ~((VALUE)RUBY_Qnil)) == 0)) && (int)(((struct RBasic*)((ary)))->flags & RUBY_T_MASK) != RUBY_T_NODE)?(((struct RBasic*)(((ary))))->flags&(((((VALUE)1)<<(12+1))))):0)", "/home/kazu/z/wc/CI/ruby/array.c", 2336, <strong>PRETTY_FUNCTION</strong>)), ((!(((VALUE)((ary)) & RUBY_IMMEDIATE_MASK) || !!(((VALUE)((ary)) & ~((VALUE)RUBY_Qnil)) == 0)) && (int)(((struct RBasic*)((ary)))->flags & RUBY_T_MASK) != RUBY_T_NODE)?(((struct RBasic*)(((ary))))->flags&(((((VALUE)1)<<(12+1))))):0)!=0)' failed.</p>
<p>なぜか行番号がずれていて 2336 行目は以下の if 文の行ですが、その下の ary の方がひっかかっているようです。</p>
<pre><code> assert(!ARY_EMBED_P(tmp));
if (ARY_HEAP_PTR(ary) == ARY_HEAP_PTR(tmp)) {
assert(!ARY_EMBED_P(ary));
</code></pre>
Ruby master - Bug #8510 (Closed): assertion failed in ary_resize_capa
https://bugs.ruby-lang.org/issues/8510
2013-06-11T09:47:22Z
znz (Kazuhiro NISHIYAMA)
<p>-DARRAY_DEBUG を付けていると enc.mk のあたりで make が通りません。</p>
<p>generating enc.mk<br>
miniruby: .../ruby/array.c:153: ary_resize_capa: Assertion `!(!!((!(((VALUE)(ary) & RUBY_IMMEDIATE_MASK) || !!(((VALUE)(ary) & ~((VALUE)RUBY_Qnil)) == 0)) && (int)(((struct RBasic*)(ary))->flags & RUBY_T_MASK) != RUBY_T_NODE)?(((struct RBasic*)(ary))->flags&((((VALUE)1)<<11))):((((int)(long)(ary))&RUBY_FIXNUM_FLAG)||((((int)(long)(ary))&RUBY_FLONUM_MASK) == RUBY_FLONUM_FLAG))))' failed.<br>
Aborted (core dumped)</p>
<p>原因を調べてみたところ、 ary_make_shared で</p>
<pre><code>else if (OBJ_FROZEN(ary)) {
ary_resize_capa(ary, ARY_HEAP_LEN(ary));
</code></pre>
<p>という条件で ary_resize_capa を呼び出しているのに、ary_resize_capa の中に</p>
<pre><code>assert(!OBJ_FROZEN(ary));
</code></pre>
<p>があるからのようです。</p>
Backport200 - Backport #8183 (Closed): CGI.unescapeHTML does not decode あ
https://bugs.ruby-lang.org/issues/8183
2013-03-29T14:12:41Z
znz (Kazuhiro NISHIYAMA)
<p>数値文字参照で あ のように X が大文字の時に CGI.unescapeHTML で "あ" に戻りません。</p>
<p><a href="http://www.w3.org/TR/html5/syntax.html#character-references" class="external">http://www.w3.org/TR/html5/syntax.html#character-references</a><br>
の Hexadecimal numeric character reference によると</p>
<blockquote>
<p>which must be followed by either a "x" (U+0078) character or a "X" (U+0058) character,</p>
</blockquote>
<p>となっているので、大文字でも受け付けてほしいです。</p>
Ruby master - Bug #8084 (Closed): ext/tk/MANUAL_tcltklib.eucj is utf-8
https://bugs.ruby-lang.org/issues/8084
2013-03-14T00:19:20Z
znz (Kazuhiro NISHIYAMA)
<p>ext/tk/MANUAL_tcltklib.eucj は中身が UTF-8 に変更されているので、ファイル名も変更した方が良いのではないでしょうか?</p>
Ruby master - Bug #7579 (Closed): TestGemExtCmakeBuilder#test_self_build failed in ja_JP.UTF-8 lo...
https://bugs.ruby-lang.org/issues/7579
2012-12-17T07:25:00Z
znz (Kazuhiro NISHIYAMA)
<p>TestGemExtCmakeBuilder#test_self_build failed in ja_JP.UTF-8 locale.<br>
It should set locale C before invoking make.<br>
Attached patch will revolve this issue.</p>
<ol>
<li>Failure:<br>
test_self_build(TestGemExtCmakeBuilder) [.../ruby/test/rubygems/test_gem_ext_cmake_builder.rb:46]:<br>
--- expected<br>
+++ actual<br>
@@ -1 +1,3 @@<br>
-""<br>
+"make[1]: ディレクトリ <code>.../tmp/test/test_rubygems_16184/ext' に入ります +make[1]: ディレクトリ </code>.../tmp/test/test_rubygems_16184/ext' から出ます<br>
+"</li>
</ol>
Ruby master - Bug #7197 (Closed): Error: test_tls_v1_2(OpenSSL::TestSSL)
https://bugs.ruby-lang.org/issues/7197
2012-10-20T13:30:51Z
znz (Kazuhiro NISHIYAMA)
<p>Ubuntu 12.04.1 LTS 64-bit の環境で以下のエラーが出ています。</p>
<ol start="2">
<li>Error:<br>
test_tls_v1_2(OpenSSL::TestSSL):<br>
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=unknown state: tlsv1 alert protocol version<br>
.../test/openssl/test_ssl.rb:607:in <code>connect' .../test/openssl/test_ssl.rb:607:in </code>server_connect'<br>
.../test/openssl/test_ssl.rb:468:in <code>block in test_tls_v1_2' .../test/openssl/utils.rb:293:in </code>call'<br>
.../test/openssl/utils.rb:293:in <code>start_server' .../test/openssl/test_ssl.rb:593:in </code>start_server_version'<br>
.../test/openssl/test_ssl.rb:467:in `test_tls_v1_2'</li>
</ol>
<p>OpenSSL のバージョンは以下の通りです。</p>
<p>% openssl version<br>
OpenSSL 1.0.1 14 Mar 2012<br>
% dpkg -l openssl | grep '^ii'<br>
ii openssl 1.0.1-4ubuntu5.5 Secure Socket Layer (SSL) binary and related cryptographic tools<br>
%</p>
Ruby master - Bug #6657 (Closed): IRB.fail
https://bugs.ruby-lang.org/issues/6657
2012-06-27T23:27:27Z
znz (Kazuhiro NISHIYAMA)
<p>NotImplementError が残っていたので NotImplementedError に変更していて気づいたのですが、<br>
以下のように IRB.fail が NoMethodError になるようです。</p>
<p>% ruby -v -r irb/output-method -e 'IRB::OutputMethod.new.print'<br>
ruby 2.0.0dev (2012-06-27 trunk 36240) [x86_64-linux]<br>
.../lib/ruby/2.0.0/irb/output-method.rb:22:in <code>print': private method </code>fail' called for IRB:Module (NoMethodError)<br>
from -e:1:in `'</p>
<p>変更前は NameError でした。</p>
<p>% ruby -r irb/output-method -e 'IRB::OutputMethod.new.print'<br>
.../lib/ruby/2.0.0/irb/output-method.rb:22:in <code>print': uninitialized constant IRB::OutputMethod::NotImplementError (NameError) from -e:1:in </code>'</p>
Ruby master - Bug #6598 (Closed): tool/runruby.rb の File.realpath
https://bugs.ruby-lang.org/issues/6598
2012-06-16T00:54:11Z
znz (Kazuhiro NISHIYAMA)
<p>File.realpath が定義されていないときに定義している File.realpath がホームディレクトリを返すだけで File.realpath の代わりになっていません。</p>
Ruby master - Bug #5879 (Closed): $ignore_error use before set
https://bugs.ruby-lang.org/issues/5879
2012-01-12T01:19:29Z
znz (Kazuhiro NISHIYAMA)
<p>lib/mkmf.rb で make_makefile の中で<br>
$ignore_error = $nmake ? '' : ' 2> /dev/null || true'<br>
と $ignore_error が設定されていますが、 make_makefile の呼び出しよりも前の<br>
CLEANINGS への代入で $ignore_error が使われていて、<br>
DISTCLEANDIRS の RMDIRS に ' 2> /dev/null || true' が付きません。</p>
<p>この影響で make realclean などで Linux だと「rmdir: オペランドがありません」、<br>
Mac OS X だと「usage: rmdir [-p] directory ...」というメッセージが出ます。</p>
Backport193 - Backport #5786 (Closed): LoadError: cannot load such file -- openssl
https://bugs.ruby-lang.org/issues/5786
2011-12-22T00:26:03Z
znz (Kazuhiro NISHIYAMA)
<p>openssl がビルドされていないと test-all で LoadError: cannot load such file -- openssl になっていくつかエラーになります。<br>
途中で Ctrl+C で止めてしまっているのでもっと出るのかもしれません。</p>
<p>test_cgi_session_filestore(CGISessionTest):<br>
LoadError: cannot load such file -- openssl<br>
.../ruby/lib/securerandom.rb:59:in <code>random_bytes' .../ruby/lib/securerandom.rb:140:in </code>hex'<br>
.../ruby/lib/cgi/session.rb:173:in <code>create_new_id' .../ruby/lib/cgi/session.rb:267:in </code>initialize'<br>
.../ruby/test/cgi/test_cgi_session.rb:33:in <code>new' .../ruby/test/cgi/test_cgi_session.rb:33:in </code>test_cgi_session_filestore'</p>
<ol start="2">
<li>
<p>Error:<br>
test_cgi_session_pstore(CGISessionTest):<br>
LoadError: cannot load such file -- openssl<br>
.../ruby/lib/securerandom.rb:59:in <code>random_bytes' .../ruby/lib/securerandom.rb:140:in </code>hex'<br>
.../ruby/lib/cgi/session.rb:173:in <code>create_new_id' .../ruby/lib/cgi/session.rb:267:in </code>initialize'<br>
.../ruby/test/cgi/test_cgi_session.rb:71:in <code>new' .../ruby/test/cgi/test_cgi_session.rb:71:in </code>test_cgi_session_pstore'</p>
</li>
<li>
<p>Error:<br>
test_cgi_session_specify_session_key(CGISessionTest):<br>
LoadError: cannot load such file -- openssl<br>
.../ruby/lib/securerandom.rb:59:in <code>random_bytes' .../ruby/lib/securerandom.rb:140:in </code>hex'<br>
.../ruby/lib/cgi/session.rb:173:in <code>create_new_id' .../ruby/lib/cgi/session.rb:267:in </code>initialize'<br>
.../ruby/test/cgi/test_cgi_session.rb:148:in <code>new' .../ruby/test/cgi/test_cgi_session.rb:148:in </code>test_cgi_session_specify_session_key'</p>
</li>
<li>
<p>Error:<br>
test_https_proxy_authentication(HTTPSProxyTest):<br>
LoadError: cannot load such file -- openssl<br>
.../ruby/test/net/http/test_https_proxy.rb:16:in `block (2 levels) in test_https_proxy_authentication'</p>
</li>
<li>
<p>Error:<br>
test_ssl_socket_close_on_post_connection_check_fail(Net::TestSSLSocket):<br>
LoadError: cannot load such file -- openssl<br>
.../ruby/lib/net/smtp.rb:197:in <code>default_ssl_context' .../ruby/lib/net/smtp.rb:345:in </code>enable_starttls_auto'<br>
.../ruby/test/net/smtp/test_ssl_socket.rb:51:in `test_ssl_socket_close_on_post_connection_check_fail'</p>
</li>
<li>
<p>Error:<br>
test_ssl_socket_open_on_post_connection_check_success(Net::TestSSLSocket):<br>
LoadError: cannot load such file -- openssl<br>
.../ruby/lib/net/smtp.rb:197:in <code>default_ssl_context' .../ruby/lib/net/smtp.rb:345:in </code>enable_starttls_auto'<br>
.../ruby/test/net/smtp/test_ssl_socket.rb:67:in `test_ssl_socket_open_on_post_connection_check_success'</p>
</li>
</ol>
Ruby master - Bug #5637 (Closed): warnings of shellescape
https://bugs.ruby-lang.org/issues/5637
2011-11-15T16:29:56Z
znz (Kazuhiro NISHIYAMA)
<p>\あ</p>
Backport193 - Backport #5369 (Closed): 1 failure in test_ruby_mode.rb
https://bugs.ruby-lang.org/issues/5369
2011-09-26T15:41:11Z
znz (Kazuhiro NISHIYAMA)
<p>ruby-1.9.3-rc1 が Debian GNU/Linux squeeze amd64 の環境で 1 Failure になります。</p>
<p>% ./ruby -v ../test/misc/test_ruby_mode.rb -v<br>
ruby 1.9.3dev (2011-09-23) [x86_64-linux]<br>
Run options: -v</p>
<a name="Running-tests"></a>
<h1 >Running tests:<a href="#Running-tests" class="wiki-anchor">¶</a></h1>
<p>TestRubyMode::TestIndent#test_array_literal = 0.14 s = F<br>
TestRubyMode::TestIndent#test_expr_in_regexp = 0.17 s = .<br>
TestRubyMode::TestIndent#test_keyword_label = 0.14 s = .<br>
TestRubyMode::TestIndent#test_method_with_question_mark = 0.13 s = .<br>
TestRubyMode::TestIndent#test_simple = 0.13 s = .<br>
TestRubyMode::TestIndent#test_singleton_class = 0.00 s = S</p>
<p>Finished tests in 0.713935s, 8.4041 tests/s, 14.0069 assertions/s.</p>
<ol>
<li>
<p>Failure:<br>
test_array_literal(TestRubyMode::TestIndent) [../test/misc/test_ruby_mode.rb:125]:<br>
<"\nfoo = [\n bar\n]\n"> expected but was<br>
<"\nfoo = [\n bar\n ]\n">.</p>
</li>
<li>
<p>Skipped:<br>
test_singleton_class(TestRubyMode::TestIndent) [../test/misc/test_ruby_mode.rb:108]:<br>
pending</p>
</li>
</ol>
<p>6 tests, 10 assertions, 1 failures, 0 errors, 1 skips<br>
%</p>
Ruby master - Feature #4299 (Closed): no warning: found = in conditional, should be ==
https://bugs.ruby-lang.org/issues/4299
2011-01-20T20:10:47Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
<a href="http://d.hatena.ne.jp/nagachika/20110119/ruby_trunk_changes_30595_30603" class="external">http://d.hatena.ne.jp/nagachika/20110119/ruby_trunk_changes_30595_30603</a><br>
で知ったのですが、右辺の種類によっては「warning: found = in conditional, should be ==」が出ないことがあるようです。</p>
<p>% ruby-trunk -ve '!<em>=""'<br>
ruby 1.9.3dev (2011-01-20 trunk 30614) [i686-linux]<br>
-e:1: warning: found = in conditional, should be ==<br>
% ruby-trunk -ve '!</em>=1'<br>
ruby 1.9.3dev (2011-01-20 trunk 30614) [i686-linux]<br>
-e:1: warning: found = in conditional, should be ==<br>
% ruby-trunk -ve '!<em>={}'<br>
ruby 1.9.3dev (2011-01-20 trunk 30614) [i686-linux]<br>
% ruby-trunk -ve '!</em>=[]'<br>
ruby 1.9.3dev (2011-01-20 trunk 30614) [i686-linux]<br>
%<br>
=end</p>
Ruby master - Bug #4241 (Closed): IMAPTest#test_imaps_verify_none does not stop
https://bugs.ruby-lang.org/issues/4241
2011-01-06T20:09:52Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
IMAPTest#test_imaps_verify_none hangs up and can not stop with SIGINT.<br>
I guess problem exists in ossl_ssl_shutdown, and running test does not stop with reverting r30451 .</p>
<p>% ruby-trunk test/net/imap/test_imap.rb -v -n test_imaps_verify_none<br>
Run options: -v -n test_imaps_verify_none</p>
<a name="Running-tests"></a>
<h1 >Running tests:<a href="#Running-tests" class="wiki-anchor">¶</a></h1>
<p>IMAPTest#test_imaps_verify_none =<br>
=end</p>
Ruby master - Bug #4124 (Closed): optparse: needless argument: --help=zshcomplete=COMMAND
https://bugs.ruby-lang.org/issues/4124
2010-12-06T19:17:34Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
opttest.rb のようにデフォルト以外の --help があると補完の生成がうまくいかないようです。</p>
<p>% generate-complete-function/ruby/optparse sample/optparse/opttest.rb<br>
opttest: needless argument: --help=zshcomplete=opttest.rb<br>
%<br>
=end</p>
Backport192 - Backport #3932 (Closed): lib/un.rb (httpd): SIGQUIT and SIGHUP are not guaranteed t...
https://bugs.ruby-lang.org/issues/3932
2010-10-12T17:31:58Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
Windows で 1.9.2-p0 の un.rb を使って httpd を実行しようとすると動かなかったので r28944 のバックポートをお願いします。<br>
=end</p>
Ruby master - Bug #3477 (Closed): un.rb: httpd: --max-clients does not work
https://bugs.ruby-lang.org/issues/3477
2010-06-25T04:27:01Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
un.rb の httpd で --max-clients オプションを指定すると ArgumentError になります。<br>
どこかで to_i しておかないといけないようです。</p>
<p>% ruby-trunk -v<br>
ruby 1.9.3dev (2010-06-18 trunk 28359) [x86_64-linux]<br>
% ruby-trunk -run -e httpd -- --max-clients=1 .<br>
.../thread.rb:252:in <code>>': comparison of String with 0 failed (ArgumentError) from .../thread.rb:252:in </code>initialize'<br>
from .../webrick/server.rb:49:in <code>new' from .../webrick/server.rb:49:in </code>initialize'<br>
from .../webrick/httpserver.rb:24:in <code>initialize' from .../un.rb:311:in </code>new'<br>
from .../un.rb:311:in <code>block in httpd' from .../un.rb:60:in </code>setup'<br>
from .../un.rb:302:in <code>httpd' from -e:1:in </code>'<br>
%<br>
=end</p>
Ruby master - Bug #3476 (Closed): un.rb: httpd: invalid option --http-version
https://bugs.ruby-lang.org/issues/3476
2010-06-25T04:24:29Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
un.rb の httpd の help で --http-version というオプションがあると出ますが、<br>
--HTTPVersion にしないと使えません。</p>
<p>% ruby-trunk -v<br>
ruby 1.9.3dev (2010-06-18 trunk 28359) [x86_64-linux]<br>
% ruby-trunk -run -e help httpd<br>
Run WEBrick HTTP server.</p>
<p>ruby -run -e httpd -- [OPTION] DocumentRoot</p>
<p>--bind-address=ADDR address to bind<br>
--port=NUM listening port number<br>
--max-clients=MAX max number of simultaneous clients<br>
--temp-dir=DIR temporary directory<br>
--do-not-reverse-lookup disable reverse lookup<br>
--request-timeout=SECOND request timeout in seconds<br>
--http-version=VERSION HTTP version<br>
-v verbose</p>
<p>% ruby-trunk -run -e httpd -- --http-version=1.0 .<br>
.../un.rb:52:in <code>block in setup': invalid option: --http-version=1.0 (OptionParser::InvalidOption) from .../un.rb:38:in </code>new'<br>
from .../un.rb:38:in <code>setup' from .../un.rb:302:in </code>httpd'<br>
from -e:1:in `'<br>
%<br>
=end</p>
Backport192 - Backport #3468 (Closed): .cvsignore
https://bugs.ruby-lang.org/issues/3468
2010-06-23T17:24:53Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
.cvsignore はもう消してしまっていいのではないでしょうか。</p>
<p>% ls trunk/**/.cvsignore<br>
trunk/.cvsignore trunk/ext/nkf/.cvsignore<br>
trunk/ext/.cvsignore trunk/ext/openssl/.cvsignore<br>
trunk/ext/bigdecimal/.cvsignore trunk/ext/pty/.cvsignore<br>
trunk/ext/curses/.cvsignore trunk/ext/racc/cparse/.cvsignore<br>
trunk/ext/dbm/.cvsignore trunk/ext/readline/.cvsignore<br>
trunk/ext/digest/.cvsignore trunk/ext/ripper/.cvsignore<br>
trunk/ext/digest/bubblebabble/.cvsignore trunk/ext/sdbm/.cvsignore<br>
trunk/ext/digest/md5/.cvsignore trunk/ext/socket/.cvsignore<br>
trunk/ext/digest/rmd160/.cvsignore trunk/ext/stringio/.cvsignore<br>
trunk/ext/digest/sha1/.cvsignore trunk/ext/strscan/.cvsignore<br>
trunk/ext/digest/sha2/.cvsignore trunk/ext/syck/.cvsignore<br>
trunk/ext/dl/.cvsignore trunk/ext/syslog/.cvsignore<br>
trunk/ext/etc/.cvsignore trunk/ext/tk/.cvsignore<br>
trunk/ext/fcntl/.cvsignore trunk/ext/tk/tkutil/.cvsignore<br>
trunk/ext/gdbm/.cvsignore trunk/ext/win32ole/.cvsignore<br>
trunk/ext/iconv/.cvsignore trunk/ext/zlib/.cvsignore<br>
trunk/ext/io/wait/.cvsignore<br>
%<br>
=end</p>
Backport187 - Backport #3425 (Closed): Error: test_filehandler(WEBrick::TestFileHandler)
https://bugs.ruby-lang.org/issues/3425
2010-06-11T10:18:24Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
test_filehandler(WEBrick::TestFileHandler) の Error が手元の環境でも chkbuild でも発生しています。</p>
<p><a href="http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8.7/log/20100611T085812.log.txt.gz" class="external">http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8.7/log/20100611T085812.log.txt.gz</a></p>
<ol start="3">
<li>Error:<br>
test_filehandler(WEBrick::TestFileHandler):<br>
NameError: undefined local variable or method <code>log' for #<WEBrick::TestFileHandler:0xb74a5058> ./test/webrick/test_filehandler.rb:96:in </code>test_filehandler'<br>
/home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:1054:in <code>request' /home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:2144:in </code>reading_body'<br>
/home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:1053:in <code>request' /home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:1037:in </code>request'<br>
/home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:543:in <code>start' /home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:1035:in </code>request'<br>
./test/webrick/test_filehandler.rb:95:in <code>test_filehandler' ./test/webrick/utils.rb:38:in </code>call'<br>
./test/webrick/utils.rb:38:in <code>start_server' ./test/webrick/utils.rb:46:in </code>start_httpserver'<br>
./test/webrick/test_filehandler.rb:79:in `test_filehandler'<br>
=end</li>
</ol>
Ruby master - Bug #3295 (Closed): make test aborted
https://bugs.ruby-lang.org/issues/3295
2010-05-14T22:46:57Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
Ubuntu lucid の環境で<br>
<a href="https://wiki.ubuntu.com/CompilerFlags" class="external">https://wiki.ubuntu.com/CompilerFlags</a><br>
の stack smashing protector (GccSsp) の影響だと思うのですが、<br>
make test で abort します。</p>
<p>% lsb_release -a<br>
No LSB modules are available.<br>
Distributor ID: Ubuntu<br>
Description: Ubuntu 10.04 LTS<br>
Release: 10.04<br>
Codename: lucid<br>
% gcc -v<br>
Using built-in specs.<br>
Target: i486-linux-gnu<br>
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu<br>
Thread model: posix<br>
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)<br>
% make test</p>
<p>sample/test.rb:assignment ....................................................................................................................................................................................................................................................................................................................................................................................<br>
sample/test.rb:condition ..<br>
sample/test.rb:if/unless ...<br>
sample/test.rb:case .....<br>
sample/test.rb:while/until ........<br>
sample/test.rb:exception ..........<br>
sample/test.rb:array .......................................<br>
sample/test.rb:hash ...........................<br>
sample/test.rb:iterator ...............................................................................................................<br>
sample/test.rb:float ................................................................................<br>
sample/test.rb:bignum ...............................<br>
sample/test.rb:string & char ..............................................................<br>
sample/test.rb:assignment ..........<br>
sample/test.rb:call ......<br>
sample/test.rb:proc .........<br>
sample/test.rb:signal ..<br>
sample/test.rb:eval .............................<br>
sample/test.rb:system .........<br>
sample/test.rb:const .....<br>
sample/test.rb:clone .....<br>
sample/test.rb:marshal ....<br>
sample/test.rb:pack ....<br>
sample/test.rb:math ..<br>
sample/test.rb:struct ......<br>
sample/test.rb:variable ...........<br>
sample/test.rb:trace ...<br>
sample/test.rb:defined? ............<br>
sample/test.rb:alias ......<br>
sample/test.rb:path .......................<br>
sample/test.rb:gc ....<br>
test succeeded</p>
<p>test_attr.rb ..<br>
test_autoload.rb ...........<br>
test_block.rb .......................................................<br>
test_class.rb ............................................<br>
test_eval.rb ....................................<br>
test_exception.rb .................................<br>
test_finalizer.rb .<br>
test_flip.rb .<br>
test_flow.rb ................................................<br>
test_fork.rb ....<br>
test_gc.rb ..<br>
test_io.rb .................<br>
test_jump.rb .............................<br>
test_literal.rb ......................................................................................................................................................<br>
test_load.rb ..<br>
test_marshal.rb .<br>
test_massign.rb ..................................<br>
test_method.rb ............................................................................................................................................................................................................................<br>
test_objectspace.rb ...<br>
test_proc.rb ..................................<br>
test_struct.rb .<br>
test_syntax.rb .........................................................................................................................................................<br>
test_thread.rb .................................*** longjmp causes uninitialized stack frame <em><strong>: /home/kazu/tmp/ruby/ruby-trunk/_build/ruby terminated<br>
======= Backtrace: =========<br>
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x4019a350]<br>
/lib/tls/i686/cmov/libc.so.6(+0xe22ba)[0x4019a2ba]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8168ed4]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8169083]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby(rb_fiber_resume+0xaf)[0x8169c4f]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x819c74f]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x819d507]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8157b91]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8159f38]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x815d906]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x815f26e]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby(rb_rescue2+0x141)[0x805e1d1]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x814d4c4]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8157b91]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8159f38]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x815d906]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby(rb_iseq_eval_main+0x1c7)[0x815dcd7]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x805e422]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby(ruby_run_node+0x32)[0x805fc32]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby(main+0x5a)[0x805d65a]<br>
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x400cebd6]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x805d561]<br>
======= Memory map: ========<br>
08048000-08212000 r-xp 00000000 fb:00 538613665 /home/kazu/tmp/ruby/ruby-trunk/_build/ruby<br>
08212000-08213000 r--p 001c9000 fb:00 538613665 /home/kazu/tmp/ruby/ruby-trunk/_build/ruby<br>
08213000-08214000 rw-p 001ca000 fb:00 538613665 /home/kazu/tmp/ruby/ruby-trunk/_build/ruby<br>
08214000-08221000 rw-p 00000000 00:00 0<br>
09654000-0977f000 rw-p 00000000 00:00 0 [heap]<br>
40000000-4001b000 r-xp 00000000 08:01 10043411 /lib/ld-2.11.1.so<br>
4001b000-4001c000 r--p 0001a000 08:01 10043411 /lib/ld-2.11.1.so<br>
4001c000-4001d000 rw-p 0001b000 08:01 10043411 /lib/ld-2.11.1.so<br>
4001d000-4001e000 r-xp 00000000 00:00 0 [vdso]<br>
4001e000-40020000 rw-p 00000000 00:00 0<br>
40020000-40027000 r--s 00000000 08:01 1647078 /usr/lib/gconv/gconv-modules.cache<br>
40027000-40028000 ---p 00000000 00:00 0<br>
40028000-4002b000 rw-p 00000000 00:00 0<br>
4002b000-4002d000 r-xp 00000000 fb:00 807287925 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/encdb.so<br>
4002d000-4002e000 r--p 00001000 fb:00 807287925 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/encdb.so<br>
4002e000-4002f000 rw-p 00002000 fb:00 807287925 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/encdb.so<br>
4002f000-40031000 r-xp 00000000 fb:00 269946659 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/trans/transdb.so<br>
40031000-40032000 r--p 00001000 fb:00 269946659 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/trans/transdb.so<br>
40032000-40033000 rw-p 00002000 fb:00 269946659 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/trans/transdb.so<br>
40039000-4004e000 r-xp 00000000 08:01 10044432 /lib/tls/i686/cmov/libpthread-2.11.1.so<br>
4004e000-4004f000 r--p 00014000 08:01 10044432 /lib/tls/i686/cmov/libpthread-2.11.1.so<br>
4004f000-40050000 rw-p 00015000 08:01 10044432 /lib/tls/i686/cmov/libpthread-2.11.1.so<br>
40050000-40052000 rw-p 00000000 00:00 0<br>
40052000-40059000 r-xp 00000000 08:01 10044434 /lib/tls/i686/cmov/librt-2.11.1.so<br>
40059000-4005a000 r--p 00006000 08:01 10044434 /lib/tls/i686/cmov/librt-2.11.1.so<br>
4005a000-4005b000 rw-p 00007000 08:01 10044434 /lib/tls/i686/cmov/librt-2.11.1.so<br>
4005b000-4005c000 rw-p 00000000 00:00 0<br>
4005c000-4005e000 r-xp 00000000 08:01 10044421 /lib/tls/i686/cmov/libdl-2.11.1.so<br>
4005e000-4005f000 r--p 00001000 08:01 10044421 /lib/tls/i686/cmov/libdl-2.11.1.so<br>
4005f000-40060000 rw-p 00002000 08:01 10044421 /lib/tls/i686/cmov/libdl-2.11.1.so<br>
40060000-40069000 r-xp 00000000 08:01 10044420 /lib/tls/i686/cmov/libcrypt-2.11.1.so<br>
40069000-4006a000 r--p 00008000 08:01 10044420 /lib/tls/i686/cmov/libcrypt-2.11.1.so<br>
4006a000-4006b000 rw-p 00009000 08:01 10044420 /lib/tls/i686/cmov/libcrypt-2.11.1.so<br>
4006b000-40092000 rw-p 00000000 00:00 0<br>
40092000-400b6000 r-xp 00000000 08:01 10044422 /lib/tls/i686/cmov/libm-2.11.1.so<br>
400b6000-400b7000 r--p 00023000 08:01 10044422 /lib/tls/i686/cmov/libm-2.11.1.so<br>
400b7000-400b8000 rw-p 00024000 08:01 10044422 /lib/tls/i686/cmov/libm-2.11.1.so<br>
400b8000-4020b000 r-xp 00000000 08:01 10044418 /lib/tls/i686/cmov/libc-2.11.1.so<br>
4020b000-4020c000 ---p 00153000 08:01 10044418 /lib/tls/i686/cmov/libc-2.11.1.so<br>
4020c000-4020e000 r--p 00153000 08:01 10044418 /lib/tls/i686/cmov/libc-2.11.1.so<br>
4020e000-4020f000 rw-p 00155000 08:01 10044418 /lib/tls/i686/cmov/libc-2.11.1.so<br>
4020f000-40214000 rw-p 00000000 00:00 0<br>
40214000-40295000 r--p 00000000 08:01 9767830 /usr/lib/locale/ja_JP.utf8/LC_CTYPE<br>
40295000-40326000 rw-p 00000000 00:00 0<br>
4033f000-4035c000 r-xp 00000000 08:01 10045150 /lib/libgcc_s.so.1<br>
4035c000-4035d000 r--p 0001c000 08:01 10045150 /lib/libgcc_s.so.1<br>
4035d000-4035e000 rw-p 0001d000 08:01 10045150 /lib/libgcc_s.so.1<br>
bfc61000-bfc77000 rw-p 00000000 00:00 0 [stack]<br>
F</strong></em> longjmp causes uninitialized stack frame ***: /home/kazu/tmp/ruby/ruby-trunk/_build/ruby terminated<br>
======= Backtrace: =========<br>
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x4019a350]<br>
/lib/tls/i686/cmov/libc.so.6(+0xe22ba)[0x4019a2ba]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8168ed4]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8169083]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby(rb_fiber_resume+0xaf)[0x8169c4f]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x819c74f]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x819d507]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8157b91]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8159f38]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x815d906]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x815f26e]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby(rb_rescue2+0x141)[0x805e1d1]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x814d4c4]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8157b91]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x8159f38]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x815d906]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby(rb_iseq_eval_main+0x1c7)[0x815dcd7]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x805e422]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby(ruby_run_node+0x32)[0x805fc32]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby(main+0x5a)[0x805d65a]<br>
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x400cebd6]<br>
/home/kazu/tmp/ruby/ruby-trunk/_build/ruby[0x805d561]<br>
======= Memory map: ========<br>
08048000-08212000 r-xp 00000000 fb:00 538613665 /home/kazu/tmp/ruby/ruby-trunk/_build/ruby<br>
08212000-08213000 r--p 001c9000 fb:00 538613665 /home/kazu/tmp/ruby/ruby-trunk/_build/ruby<br>
08213000-08214000 rw-p 001ca000 fb:00 538613665 /home/kazu/tmp/ruby/ruby-trunk/_build/ruby<br>
08214000-08221000 rw-p 00000000 00:00 0<br>
08b7a000-08ca5000 rw-p 00000000 00:00 0 [heap]<br>
40000000-4001b000 r-xp 00000000 08:01 10043411 /lib/ld-2.11.1.so<br>
4001b000-4001c000 r--p 0001a000 08:01 10043411 /lib/ld-2.11.1.so<br>
4001c000-4001d000 rw-p 0001b000 08:01 10043411 /lib/ld-2.11.1.so<br>
4001d000-4001e000 r-xp 00000000 00:00 0 [vdso]<br>
4001e000-40020000 rw-p 00000000 00:00 0<br>
40020000-40027000 r--s 00000000 08:01 1647078 /usr/lib/gconv/gconv-modules.cache<br>
40027000-40028000 ---p 00000000 00:00 0<br>
40028000-4002b000 rw-p 00000000 00:00 0<br>
4002b000-4002d000 r-xp 00000000 fb:00 807287925 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/encdb.so<br>
4002d000-4002e000 r--p 00001000 fb:00 807287925 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/encdb.so<br>
4002e000-4002f000 rw-p 00002000 fb:00 807287925 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/encdb.so<br>
4002f000-40031000 r-xp 00000000 fb:00 269946659 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/trans/transdb.so<br>
40031000-40032000 r--p 00001000 fb:00 269946659 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/trans/transdb.so<br>
40032000-40033000 rw-p 00002000 fb:00 269946659 /home/kazu/tmp/ruby/ruby-trunk/_build/.ext/i686-linux/enc/trans/transdb.so<br>
40039000-4004e000 r-xp 00000000 08:01 10044432 /lib/tls/i686/cmov/libpthread-2.11.1.so<br>
4004e000-4004f000 r--p 00014000 08:01 10044432 /lib/tls/i686/cmov/libpthread-2.11.1.so<br>
4004f000-40050000 rw-p 00015000 08:01 10044432 /lib/tls/i686/cmov/libpthread-2.11.1.so<br>
40050000-40052000 rw-p 00000000 00:00 0<br>
40052000-40059000 r-xp 00000000 08:01 10044434 /lib/tls/i686/cmov/librt-2.11.1.so<br>
40059000-4005a000 r--p 00006000 08:01 10044434 /lib/tls/i686/cmov/librt-2.11.1.so<br>
4005a000-4005b000 rw-p 00007000 08:01 10044434 /lib/tls/i686/cmov/librt-2.11.1.so<br>
4005b000-4005c000 rw-p 00000000 00:00 0<br>
4005c000-4005e000 r-xp 00000000 08:01 10044421 /lib/tls/i686/cmov/libdl-2.11.1.so<br>
4005e000-4005f000 r--p 00001000 08:01 10044421 /lib/tls/i686/cmov/libdl-2.11.1.so<br>
4005f000-40060000 rw-p 00002000 08:01 10044421 /lib/tls/i686/cmov/libdl-2.11.1.so<br>
40060000-40069000 r-xp 00000000 08:01 10044420 /lib/tls/i686/cmov/libcrypt-2.11.1.so<br>
40069000-4006a000 r--p 00008000 08:01 10044420 /lib/tls/i686/cmov/libcrypt-2.11.1.so<br>
4006a000-4006b000 rw-p 00009000 08:01 10044420 /lib/tls/i686/cmov/libcrypt-2.11.1.so<br>
4006b000-40092000 rw-p 00000000 00:00 0<br>
40092000-400b6000 r-xp 00000000 08:01 10044422 /lib/tls/i686/cmov/libm-2.11.1.so<br>
400b6000-400b7000 r--p 00023000 08:01 10044422 /lib/tls/i686/cmov/libm-2.11.1.so<br>
400b7000-400b8000 rw-p 00024000 08:01 10044422 /lib/tls/i686/cmov/libm-2.11.1.so<br>
400b8000-4020b000 r-xp 00000000 08:01 10044418 /lib/tls/i686/cmov/libc-2.11.1.so<br>
4020b000-4020c000 ---p 00153000 08:01 10044418 /lib/tls/i686/cmov/libc-2.11.1.so<br>
4020c000-4020e000 r--p 00153000 08:01 10044418 /lib/tls/i686/cmov/libc-2.11.1.so<br>
4020e000-4020f000 rw-p 00155000 08:01 10044418 /lib/tls/i686/cmov/libc-2.11.1.so<br>
4020f000-40214000 rw-p 00000000 00:00 0<br>
40214000-40295000 r--p 00000000 08:01 9767830 /usr/lib/locale/ja_JP.utf8/LC_CTYPE<br>
40295000-40326000 rw-p 00000000 00:00 0<br>
4033f000-4035c000 r-xp 00000000 08:01 10045150 /lib/libgcc_s.so.1<br>
4035c000-4035d000 r--p 0001c000 08:01 10045150 /lib/libgcc_s.so.1<br>
4035d000-4035e000 rw-p 0001d000 08:01 10045150 /lib/libgcc_s.so.1<br>
bff00000-bff16000 rw-p 00000000 00:00 0 [stack]<br>
F...............<br>
<a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: threadのQueue#popでまっているときにTimeout.timeoutによるタイムアウトが発生したあとQueue#pushでささる (Closed)" href="https://bugs.ruby-lang.org/issues/915">#915</a> test_thread.rb:307:in <code><top (required)>': g = "abc".enum_for(:scan, /./) loop { g.next } #=> killed by SIGABRT (signal 6) <a href="https://blade.ruby-lang.org/ruby-dev/34128">[ruby-dev:34128]</a> #916 test_thread.rb:312:in </code><top (required)>':<br>
g = Module.enum_for(:new)<br>
loop { g.next }<br>
#=> killed by SIGABRT (signal 6) <a href="https://blade.ruby-lang.org/ruby-dev/34128">[ruby-dev:34128]</a><br>
FAIL 2/931 tests failed<br>
make: *** [yes-btest-ruby] エラー 1<br>
%<br>
=end</p>
Backport191 - Backport #3149 (Closed): Mac OS X の ruby 1.9.1p378 で再 open 後 delete した Tempfile が c...
https://bugs.ruby-lang.org/issues/3149
2010-04-15T13:55:38Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
<a href="https://blade.ruby-lang.org/ruby-dev/40992">[ruby-dev:40992]</a> は trunk だと r24662 で修正されているようなので Backport リクエストとしてチケットを登録しておきます。</p>
<p>At Thu, 15 Apr 2010 10:42:47 +0900,<br>
KISHIMOTO, Makoto wrote:</p>
<blockquote>
<p>きしもとです</p>
<p>trunk に残っているかどうかわかりませんが、MacPorts の ruby 1.9 で<br>
以下のようなバグを確認しました。(ruby 1.8 ではエラーにならないので<br>
バグだと思います)</p>
<p>$ ruby1.9 -v<br>
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10]</p>
<p>$ cat hoge.rb<br>
require 'tempfile'</p>
<p>tempfile = Tempfile.open "hoge"<br>
tempfile.write "hoge\n"<br>
tempfile.close<br>
tempfile.open<br>
tempfile.delete<br>
print tempfile.read</p>
<p>$ ruby1.9 hoge.rb<br>
hoge.rb:8:in `read': closed stream (IOError)</p>
</blockquote>
<p>=end</p>
Ruby master - Bug #3126 (Closed): irb/completionでTypeError
https://bugs.ruby-lang.org/issues/3126
2010-04-11T11:34:30Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
irb/completion を読み込んでいると「a.」や「C::」などの後にタブキーを押すと<br>
.../irb/completion.rb:137:in <code>quote': can't convert NilClass to String (TypeError) や .../irb/completion.rb:87:in </code>quote': can't convert NilClass to String (TypeError)<br>
で終了してしまいます。</p>
<p>以下の修正で直るようです。</p>
<p>diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb<br>
index a345c23..e059bc4 100644<br>
--- a/lib/irb/completion.rb<br>
+++ b/lib/irb/completion.rb<br>
@@ -81,10 +81,10 @@ module IRB<br>
candidates.grep(/^#{receiver}/).collect{|e| "::" + e}</p>
<a name="when-A-Z"></a>
<h1 >when /^(((::)?[A-Z][^:.\(]<em>)+)::?([^:.]</em>)$/<a href="#when-A-Z" class="wiki-anchor">¶</a></h1>
<ul>
<li>
<pre><code> when /^([A-Z].*)::([^:.]+)*$/
</code></pre>
</li>
</ul>
<ul>
<li>
<pre><code> when /^([A-Z].*)::([^:.]*)$/
</code></pre>
<a name="Constant-or-class-methods"></a>
<h1 >Constant or class methods<a href="#Constant-or-class-methods" class="wiki-anchor">¶</a></h1>
receiver = $1</li>
</ul>
<ul>
<li>message = Regexp.quote($4)</li>
</ul>
<ul>
<li>message = Regexp.quote($2)<br>
begin<br>
candidates = eval("#{receiver}.constants.collect{|m| m.to_s}", bind)<br>
candidates |= eval("#{receiver}.methods.collect{|m| m.to_s}", bind)<br>
@@ -134,7 +134,7 @@ module IRB<br>
when /^([^."].<em>).([^.]</em>)$/
<a name="variable"></a>
<h1 >variable<a href="#variable" class="wiki-anchor">¶</a></h1>
receiver = $1</li>
</ul>
<ul>
<li>message = Regexp.quote($3)</li>
</ul>
<ul>
<li>
<p>message = Regexp.quote($2)</p>
<p>gv = eval("global_variables", bind).collect{|m| m.to_s}<br>
lv = eval("local_variables", bind).collect{|m| m.to_s}<br>
=end</p>
</li>
</ul>
Ruby 1.8 - Bug #2703 (Closed): make test failed
https://bugs.ruby-lang.org/issues/2703
2010-02-01T08:11:14Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
ruby_1_8 ブランチで make test が失敗します。</p>
<p>chkbuild のログでどこからだったのか調べてみると<br>
<a href="http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8/log/20091223T220147.diff.txt.gz" class="external">http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8/log/20091223T220147.diff.txt.gz</a><br>
からのようです。<br>
=end</p>
Backport191 - Backport #2598 (Closed): test-all で [BUG] Segmentation fault
https://bugs.ruby-lang.org/issues/2598
2010-01-12T19:49:37Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
ruby_1_9_1 の make test-all で落ちるので r25747 の変更のバックポートをお願いします。</p>
<p>IMAPTest#test_imaps_with_ca_file: /home/kazu/build/ruby/ruby_1_9_1/ruby/.ext/common/openssl/buffering.rb:35: [BUG] Segmentation fault<br>
ruby 1.9.1p378 (2010-01-10 revision 26272) [i686-linux]</p>
<h2>-- control frame ----------<br>
c:0006 p:---- s:0022 b:0022 l:000021 d:000021 CFUNC :sysread<br>
c:0005 p:0022 s:0018 b:0017 l:000016 d:000016 METHOD /home/kazu/build/ruby/ruby_1_9_1/ruby/.ext/common/openssl/buffering.rb:35<br>
c:0004 p:0051 s:0014 b:0014 l:000013 d:000013 METHOD /home/kazu/build/ruby/ruby_1_9_1/ruby/.ext/common/openssl/buffering.rb:106<br>
c:0003 p:0043 s:0007 b:0007 l:000518 d:000006 BLOCK /home/kazu/wc/ruby/branches/ruby_1_9_1/test/net/imap/test_imap.rb:134<br>
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH<br>
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP</h2>
<p>-- Ruby level backtrace information-----------------------------------------<br>
/home/kazu/build/ruby/ruby_1_9_1/ruby/.ext/common/openssl/buffering.rb:35:in <code>sysread' /home/kazu/build/ruby/ruby_1_9_1/ruby/.ext/common/openssl/buffering.rb:35:in </code>fill_rbuff'<br>
/home/kazu/build/ruby/ruby_1_9_1/ruby/.ext/common/openssl/buffering.rb:106:in <code>gets' /home/kazu/wc/ruby/branches/ruby_1_9_1/test/net/imap/test_imap.rb:134:in </code>block in imaps_test'</p>
<p>-- C level backtrace information -------------------------------------------<br>
0x4014a029 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1(rb_vm_bugreport+0x69) [0x4014a029]<br>
0x4006635f /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x4006635f]<br>
0x400663fa /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1(rb_bug+0x3a) [0x400663fa]<br>
0x400f1564 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x400f1564]<br>
0x4001d410 [0x4001d410]<br>
0x40f5553d /lib/libc.so.6(cfree+0x6d) [0x40f5553d]<br>
0x40de666b /home/kazu/build/ruby/ruby_1_9_1/ruby/.ext/i686-linux/dl.so [0x40de666b]<br>
0x4007683a /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x4007683a]<br>
0x400769b4 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x400769b4]<br>
0x40076a0b /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x40076a0b]<br>
0x4014db08 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x4014db08]<br>
0x4014dd6d /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x4014dd6d]<br>
0x4014f44e /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x4014f44e]<br>
0x4014f652 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x4014f652]<br>
0x4061c295 /home/kazu/build/ruby/ruby_1_9_1/ruby/.ext/i686-linux/openssl.so [0x4061c295]<br>
0x40137d88 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x40137d88]<br>
0x401380c4 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x401380c4]<br>
0x40143566 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x40143566]<br>
0x4013dcba /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x4013dcba]<br>
0x40141079 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x40141079]<br>
0x401430b0 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1(rb_vm_invoke_proc+0x270) [0x401430b0]<br>
0x4014eddc /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x4014eddc]<br>
0x4014eef1 /home/kazu/build/ruby/ruby_1_9_1/ruby/libruby-1.9.1.so.1.9.1 [0x4014eef1]<br>
0x401c480e /lib/tls/i686/cmov/libpthread.so.0 [0x401c480e]<br>
0x4030a8de /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0x4030a8de]</p>
<p>[NOTE]<br>
You may encounter a bug of Ruby interpreter. Bug reports are welcome.<br>
For details: <a href="http://www.ruby-lang.org/bugreport.html" class="external">http://www.ruby-lang.org/bugreport.html</a></p>
<p>Aborted<br>
make: *** [test-all] エラー 134<br>
=end</p>
Ruby master - Bug #2414 (Closed): make test-all does not work after gem update
https://bugs.ruby-lang.org/issues/2414
2009-11-30T16:50:19Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
% ruby-trunk -e 'require "rdoc/generator/texinfo"'<br>
% gem-trunk list</p>
<p>*** LOCAL GEMS ***</p>
<p>minitest (1.4.2)<br>
rake (0.8.7)<br>
rdoc (2.2.2)<br>
% ruby-trunk -v<br>
ruby 1.9.2dev (2009-11-30 trunk 25963) [i686-linux]<br>
% gem-trunk list</p>
<p>*** LOCAL GEMS ***</p>
<p>minitest (1.4.2)<br>
rake (0.8.7)<br>
rdoc (2.2.2)<br>
% ruby-trunk -e 'require "rdoc/generator/texinfo"'<br>
% gem-trunk update<br>
Updating installed gems<br>
Updating rdoc<br>
Successfully installed rdoc-2.4.3<br>
Gems updated: rdoc<br>
Installing ri documentation for rdoc-2.4.3...<br>
Updating ri class cache with 0 classes...<br>
Installing RDoc documentation for rdoc-2.4.3...<br>
% ruby-trunk -e 'require "rdoc/generator/texinfo"'<br>
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/rdoc/generator/texinfo.rb:13:in <code><class:TEXINFO>': uninitialized constant RDoc::Generator::MarkUp (NameError) from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/rdoc/generator/texinfo.rb:9:in </code><a href="module:Generator" class="external">module:Generator</a>'<br>
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/rdoc/generator/texinfo.rb:6:in <code><module:RDoc>' from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/rdoc/generator/texinfo.rb:5:in </code><top (required)>'<br>
from -e:1:in <code>require' from -e:1:in </code>'<br>
% make test-all TESTS=-v<br>
./miniruby -I/home/kazu/wc/ruby/trunk/lib -I.ext/common -I./- -r/home/kazu/wc/ruby/trunk/ext/purelib.rb /home/kazu/wc/ruby/trunk/tool/runruby.rb --extout=.ext -- "/home/kazu/wc/ruby/trunk/test/runner.rb" -v<br>
Gem::Indexer tests are being skipped. Install builder gem.<br>
/home/kazu/wc/ruby/trunk/lib/rake.rb:2482:in <code>const_missing': uninitialized constant RDoc::Generator::MarkUp (NameError) from /home/kazu/wc/ruby/trunk/lib/rdoc/generator/texinfo.rb:13:in </code><a href="class:TEXINFO" class="external">class:TEXINFO</a>'<br>
from /home/kazu/wc/ruby/trunk/lib/rdoc/generator/texinfo.rb:9:in <code><module:Generator>' from /home/kazu/wc/ruby/trunk/lib/rdoc/generator/texinfo.rb:6:in </code><a href="module:RDoc" class="external">module:RDoc</a>'<br>
from /home/kazu/wc/ruby/trunk/lib/rdoc/generator/texinfo.rb:5:in <code><top (required)>' from /home/kazu/wc/ruby/trunk/test/rdoc/test_rdoc_info_sections.rb:7:in </code>require'<br>
from /home/kazu/wc/ruby/trunk/test/rdoc/test_rdoc_info_sections.rb:7:in <code><top (required)>' from /home/kazu/wc/ruby/trunk/lib/test/unit.rb:55:in </code>require'<br>
from /home/kazu/wc/ruby/trunk/lib/test/unit.rb:55:in <code>block in setup_argv' from /home/kazu/wc/ruby/trunk/lib/test/unit.rb:49:in </code>each'<br>
from /home/kazu/wc/ruby/trunk/lib/test/unit.rb:49:in <code>setup_argv' from /home/kazu/wc/ruby/trunk/test/runner.rb:9:in </code>'<br>
make: *** [yes-test-all] エラー 1<br>
% gem-trunk list</p>
<p>*** LOCAL GEMS ***</p>
<p>minitest (1.4.2)<br>
rake (0.8.7)<br>
rdoc (2.4.3, 2.2.2)<br>
%<br>
=end</p>
Backport191 - Backport #1976 (Closed): Errors in test/fileutils/test_fileutils.rb
https://bugs.ruby-lang.org/issues/1976
2009-08-21T22:13:09Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
環境によっては test_fileutils.rb でエラーになることがあるようです。</p>
<ol start="5">
<li>
<p>Error:<br>
test_rm_f(TestFileUtils):<br>
TypeError: can't convert Array into String<br>
/home/kazu/wc/ruby/trunk/test/fileutils/test_fileutils.rb:420:in `test_rm_f'</p>
</li>
<li>
<p>Error:<br>
test_rm_f(TestFileUtilsNoWrite):<br>
TypeError: can't convert Hash into String<br>
/home/kazu/wc/ruby/trunk/test/fileutils/test_nowrite.rb:78:in `test_rm_f'</p>
</li>
<li>
<p>Error:<br>
test_rm_rf(TestFileUtilsNoWrite):<br>
TypeError: can't convert Hash into String<br>
/home/kazu/wc/ruby/trunk/test/fileutils/test_nowrite.rb:84:in `test_rm_rf'</p>
</li>
</ol>
<p>状況を調べてみると FileUtils::NoWrite の rm_rf の super で mkmf.rb の rm_rf が呼ばれていました。</p>
<p>そのときの self.class.ancestors は<br>
[TestFileUtilsNoWrite, FileUtils::NoWrite, Test::Unit::TestCase, Test::Unit::Ass<br>
ertions, MiniTest::Unit::TestCase, MiniTest::Assertions, Object, JSON::Ext::Gene<br>
rator::GeneratorMethods::Object, RakeFileUtils, FileUtils, FileUtils::StreamUtil<br>
s_, PP::ObjectMixin, Kernel, BasicObject]<br>
となっていて、 FileUtils::NoWrite と FileUtils の間に Object が入っている (ここに mkmf.rb で rm_rf が定義されている) のが原因のようです。</p>
<p>以下のようにすると再現できます。</p>
<p>% ruby-trunk -r mkmf -r fileutils -e '<br>
include FileUtils<br>
class C<br>
include FileUtils::NoWrite<br>
def hoge<br>
p self.class.ancestors<br>
rm_rf("hoge")<br>
end<br>
end<br>
C.new.hoge'<br>
[C, FileUtils::NoWrite, Object, FileUtils, FileUtils::StreamUtils_, Kernel, BasicObject]<br>
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/mkmf.rb:201:in <code>[]': can't convert Hash into String (TypeError) from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/mkmf.rb:201:in </code>rm_rf'<br>
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/fileutils.rb:1556:in <code>rm_rf' from -e:7:in </code>hoge'<br>
from -e:10:in `'<br>
%<br>
=end</p>
Ruby master - Bug #1954 (Closed): line number 0?
https://bugs.ruby-lang.org/issues/1954
2009-08-19T02:02:26Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
$DEBUG = true の時に出てくる例外発生位置の行番号が 0 になってしまうことがあるようです。</p>
<p>% cat t0.rb<br>
$DEBUG = true<br>
Thread.start do<br>
begin<br>
Process.kill(:INT, $$)<br>
ensure<br>
raise<br>
end<br>
end.join<br>
% ruby-trunk t0.rb<br>
Exception <code>Interrupt' at t0.rb:2 - Exception </code>RuntimeError' at t0.rb:6 -<br>
Exception <code>RuntimeError' at t0.rb:0 - t0.rb:2:in </code>join': Interrupt<br>
from t0.rb:2:in `'</p>
<p>% ruby-trunk -v<br>
ruby 1.9.2dev (2009-08-18 trunk 24578) [i686-linux]<br>
%<br>
=end</p>
Ruby master - Feature #1800 (Closed): rubygems can replace system executable files
https://bugs.ruby-lang.org/issues/1800
2009-07-21T19:48:16Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
Japanese blog <a href="http://wota.jp/ac/?date=20090604#p01" class="external">http://wota.jp/ac/?date=20090604#p01</a> says,<br>
gem has bin/ls and Gem::Specification#executables= ["ls"],<br>
rubygem overwrites /usr/bin/ls without confirming.</p>
<p>I think this is potential security risk.<br>
=end</p>
Ruby 1.8 - Bug #1714 (Closed): make test-all failed
https://bugs.ruby-lang.org/issues/1714
2009-07-02T20:23:14Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
<code>make test-all</code> failed in lib/test/unit/collector/dir.rb.</p>
<p>./miniruby -I/home/kazu/wc/ruby/branches/ruby_1_8/lib -I.ext/common -I./- -r/home/kazu/wc/ruby/branches/ruby_1_8/ext/purelib.rb /home/kazu/wc/ruby/branches/ruby_1_8/runruby.rb --extout=.ext -- "/home/kazu/wc/ruby/branches/ruby_1_8/test/runner.rb" --basedir="/home/kazu/wc/ruby/branches/ruby_1_8/test" --runner=console -v<br>
/home/kazu/wc/ruby/branches/ruby_1_8/lib/webrick/ssl.rb:13: uninitialized constant WEBrick::Config::General (NameError)<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/webrick/https.rb:11:in <code>require' from /home/kazu/wc/ruby/branches/ruby_1_8/lib/webrick/https.rb:11 from /home/kazu/wc/ruby/branches/ruby_1_8/test/webrick/utils.rb:10:in </code>require'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/test/webrick/utils.rb:10<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/webrick/config.rb:14:in <code>require' from /home/kazu/wc/ruby/branches/ruby_1_8/lib/webrick/config.rb:14 from /home/kazu/wc/ruby/branches/ruby_1_8/lib/webrick.rb:14:in </code>require'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/webrick.rb:14<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/soap/rpc/httpserver.rb:12:in <code>require' from /home/kazu/wc/ruby/branches/ruby_1_8/lib/soap/rpc/httpserver.rb:12 from /home/kazu/wc/ruby/branches/ruby_1_8/lib/soap/rpc/standaloneServer.rb:9:in </code>require'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/soap/rpc/standaloneServer.rb:9<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/test/wsdl/raa/RAAService.rb:4:in <code>require' from /home/kazu/wc/ruby/branches/ruby_1_8/test/wsdl/raa/RAAService.rb:4 from /home/kazu/wc/ruby/branches/ruby_1_8/test/wsdl/raa/test_raa.rb:5:in </code>require'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/test/wsdl/raa/test_raa.rb:5<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:90:in <code>require' from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:90:in </code>collect_file'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:73:in <code>recursive_collect' from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:58:in </code>each'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:58:in <code>recursive_collect' from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:63:in </code>recursive_collect'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:58:in <code>each' from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:58:in </code>recursive_collect'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:63:in <code>recursive_collect' from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:58:in </code>each'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:58:in <code>recursive_collect' from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/collector/dir.rb:29:in </code>collect'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/autorunner.rb:68<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/autorunner.rb:213:in <code>[]' from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/autorunner.rb:213:in </code>run'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/lib/test/unit/autorunner.rb:12:in `run'<br>
from /home/kazu/wc/ruby/branches/ruby_1_8/test/runner.rb:7<br>
make: *** [test-all] エラー 1</p>
<p>I put "p $LOAD_PATH" into lib/webrick/ssl.rb, and it outputs:<br>
["/home/kazu/wc/ruby/branches/ruby_1_8/test/wsdl/raa", "/home/kazu/wc/ruby/branches/ruby_1_8/test", "/home/kazu/wc/ruby/branches/ruby_1_8/test/ruby", "/home/kazu/build/ruby/ruby_1_8/ruby", "/home/kazu/build/ruby/ruby_1_8/ruby/.ext/common", "/home/kazu/build/ruby/ruby_1_8/ruby/.ext/i686-linux", "/home/kazu/wc/ruby/branches/ruby_1_8/lib", "/home/kazu/wc/ruby/branches/ruby_1_8/ext", "."]</p>
<p>It looks require 'webrick/utils' loads test/webrick/utils.rb instead of lib/webrick/utils.rb, because $LOAD_PATH includes test directory.<br>
=end</p>
Ruby master - Bug #1692 (Closed): warning: useless use of a literal in void context
https://bugs.ruby-lang.org/issues/1692
2009-06-26T16:14:58Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
1.8 では<br>
warning: useless use of a literal in void context<br>
が出るときに 1.9 だと何も出ません。</p>
<p>% ruby18 -ve '1'<br>
ruby 1.8.8dev (2009-06-23 revision 23825) [i686-linux]<br>
-e:1: warning: useless use of a literal in void context<br>
% ruby-trunk -ve '1'<br>
ruby 1.9.2dev (2009-06-24 trunk 23837) [i686-linux]<br>
%<br>
=end</p>
Ruby master - Bug #1675 (Closed): typo in variable.c
https://bugs.ruby-lang.org/issues/1675
2009-06-22T18:07:58Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
geneic は generic の typo ではないでしょうか。</p>
<a name="Index-trunkvariablec"></a>
<h1 >Index: trunk/variable.c<a href="#Index-trunkvariablec" class="wiki-anchor">¶</a></h1>
<p>--- trunk/variable.c (revision 23818)<br>
+++ trunk/variable.c (working copy)<br>
@@ -920,7 +920,7 @@<br>
}</p>
<h1>size_t<br>
-rb_geneic_ivar_memsize(VALUE obj)<br>
+rb_generic_ivar_memsize(VALUE obj)<br>
{<br>
st_data_t tbl;<br>
if (st_delete(generic_iv_tbl, &obj, &tbl))<br>
Index: trunk/ext/objspace/objspace.c</h1>
<p>--- trunk/ext/objspace/objspace.c (revision 23818)<br>
+++ trunk/ext/objspace/objspace.c (working copy)<br>
@@ -34,7 +34,7 @@<br>
size_t st_memsize(st_table *);<br>
size_t rb_io_memsize(rb_io_t *);<br>
size_t onig_memsize(regex_t *);<br>
-size_t rb_geneic_ivar_memsize(VALUE);<br>
+size_t rb_generic_ivar_memsize(VALUE);<br>
size_t rb_objspace_data_type_memsize(VALUE obj);</p>
<p>void rb_objspace_each_objects(<br>
@@ -51,7 +51,7 @@<br>
}</p>
<pre><code> if (FL_TEST(obj, FL_EXIVAR)) {
</code></pre>
<ul>
<li>size += rb_geneic_ivar_memsize(obj);</li>
</ul>
<ul>
<li>
<p>size += rb_generic_ivar_memsize(obj);<br>
}</p>
<p>switch (BUILTIN_TYPE(obj)) {<br>
=end</p>
</li>
</ul>
Ruby master - Bug #1523 (Closed): typo in sample/optparse/opttest.rb
https://bugs.ruby-lang.org/issues/1523
2009-05-26T20:15:10Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
separator ではないでしょうか。</p>
<a name="Index-opttestrb"></a>
<h1 >Index: opttest.rb<a href="#Index-opttestrb" class="wiki-anchor">¶</a></h1>
<p>--- opttest.rb (リビジョン 23541)<br>
+++ opttest.rb (作業コピー)<br>
@@ -13,7 +13,7 @@ ARGV.options do<br>
|opts|<br>
opts.banner << " argv..."</p>
<ul>
<li>
<a name="separater"></a>
<h1 >separater<a href="#separater" class="wiki-anchor">¶</a></h1>
</li>
</ul>
<ul>
<li>
<a name="separator"></a>
<h1 >separator<a href="#separator" class="wiki-anchor">¶</a></h1>
opts.on_tail<br>
opts.on_tail("common options:")<br>
=end</li>
</ul>
Ruby master - Bug #1421 (Closed): Permission denied - ~/.ri
https://bugs.ruby-lang.org/issues/1421
2009-04-30T08:51:12Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
Some tests failed and error when home directory is not writable.</p>
<p><a href="http://chkbuild.n-z.jp/ruby/debian-amd64/ruby-trunk/last" class="external">http://chkbuild.n-z.jp/ruby/debian-amd64/ruby-trunk/last</a></p>
<ol>
<li>Failure:<br>
test_execute_remote(TestGemCommandsInstallCommand) [/home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rubygems/test_gem_commands_install_command.rb:120]:<br>
[Gem::SystemExitException] exception expected, not<br>
Class: <a href="Errno::EACCES" class="external">Errno::EACCES</a><br>
Message: <"Permission denied - /home/chkbuild/.ri"><br>
---Backtrace---<br>
/home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rubygems/test_gem_commands_install_command.rb:123:in <code>block (2 levels) in test_execute_remote' /home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rubygems/test_gem_commands_install_command.rb:120:in </code>block in test_execute_remote'<br>
/home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rubygems/test_gem_commands_install_command.rb:119:in `test_execute_remote'</li>
</ol>
<hr>
<ol start="5">
<li>
<p>Error:<br>
test_lookup_method_class_method(TestRDocRIDriver):<br>
Errno::EACCES: Permission denied - /home/chkbuild/.ri<br>
/home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in <code>new' /home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in </code>setup'</p>
</li>
<li>
<p>Error:<br>
test_lookup_method_class_missing(TestRDocRIDriver):<br>
Errno::EACCES: Permission denied - /home/chkbuild/.ri<br>
/home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in <code>new' /home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in </code>setup'</p>
</li>
<li>
<p>Error:<br>
test_lookup_method(TestRDocRIDriver):<br>
Errno::EACCES: Permission denied - /home/chkbuild/.ri<br>
/home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in <code>new' /home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in </code>setup'</p>
</li>
<li>
<p>Error:<br>
test_lookup_method_dot_instance(TestRDocRIDriver):<br>
Errno::EACCES: Permission denied - /home/chkbuild/.ri<br>
/home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in <code>new' /home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in </code>setup'</p>
</li>
<li>
<p>Error:<br>
test_lookup_method_method_missing(TestRDocRIDriver):<br>
Errno::EACCES: Permission denied - /home/chkbuild/.ri<br>
/home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in <code>new' /home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in </code>setup'</p>
</li>
<li>
<p>Error:<br>
test_lookup_method_dot_class(TestRDocRIDriver):<br>
Errno::EACCES: Permission denied - /home/chkbuild/.ri<br>
/home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in <code>new' /home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in </code>setup'</p>
</li>
<li>
<p>Error:<br>
test_parse_name(TestRDocRIDriver):<br>
Errno::EACCES: Permission denied - /home/chkbuild/.ri<br>
/home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in <code>new' /home/chkbuild/tmp/build/ruby-trunk/20090429T073554/ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in </code>setup'<br>
=end</p>
</li>
</ol>
Ruby 1.8 - Bug #1417 (Closed): sleepすると反応がなくなる
https://bugs.ruby-lang.org/issues/1417
2009-04-28T18:57:12Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
ruby_1_8 ブランチで --enable-pthread のとき、スレッドを生成した後 sleep すると<br>
何も反応がなくなって SIGKILL で強制的に止めるしかなくなってしまいます。</p>
<p>% ruby18 -ve 'Thread.start{};sleep 1'<br>
ruby 1.8.8dev (2009-04-26 revision 23283) [i686-linux]<br>
ここで止まってCtrl+Cもきかない<br>
=end</p>
Ruby 1.8 - Bug #1402 (Closed): test_cookie(TestCookie)でtest-allが止まる
https://bugs.ruby-lang.org/issues/1402
2009-04-24T12:53:52Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
<a href="http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8-pth/last" class="external">http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8-pth/last</a><br>
のように ruby 1.8.8dev で --enable-pthread の場合に止まります。</p>
<p>挙動から推測すると、while修飾子の左がリテラルだとスレッドが<br>
切り替わっていないような気がします。</p>
<p>% cat t.rb<br>
require 'timeout'<br>
@flag = true<br>
Thread.start {<br>
sleep 0.1<br>
@flag = false<br>
}<br>
Timeout.timeout(1) {<br>
nil while @flag<br>
}<br>
% ruby18 -vd t.rb<br>
ruby 1.8.8dev (2009-04-22 revision 23257) [i686-linux]<br>
=end</p>
Ruby master - Bug #1087 (Closed): Failure: test_ipv6_address_predicates(TestSocketAddrInfo)
https://bugs.ruby-lang.org/issues/1087
2009-02-02T11:52:41Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
configureで--with-lookup-order-hack=INETをつけていると<br>
AddrInfo.ip("::ffff:0.0.0.0").ipv6_v4mapped?<br>
がfalseになるようです。</p>
<p>% ruby-trunk -v test/socket/test_addrinfo.rb<br>
ruby 1.9.1p5000 (2009-02-02 trunk 21938) [i686-linux]<br>
Loaded suite test/socket/test_addrinfo<br>
Started<br>
...................F.............<br>
Finished in 0.012232 seconds.</p>
<ol>
<li>Failure:<br>
test_ipv6_address_predicates(TestSocketAddrInfo) [test/socket/test_addrinfo.rb:367]:<br>
AddrInfo.ip("::ffff:0.0.0.0").ipv6_v4mapped?</li>
</ol>
<p>33 tests, 165 assertions, 1 failures, 0 errors, 0 skips<br>
% ruby-trunk -v -r socket -e 'p AddrInfo.ip("::ffff:0.0.0.0").ipv6_v4mapped?'<br>
ruby 1.9.1p5000 (2009-02-02 trunk 21938) [i686-linux]<br>
false<br>
%<br>
=end</p>
Backport191 - Backport #1072 (Closed): Ripper#filename
https://bugs.ruby-lang.org/issues/1072
2009-01-30T05:13:46Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
Ripper::Filter#filenameが定義されているのにRipper#filenameが定義されていないため、NoMethodErrorになります。</p>
<p>% cat ~/check_regexp_n.rb<br>
#!/usr/bin/ruby</p>
<p>require 'ripper/filter'</p>
<p>class CheckRegexpN < Ripper::Filter<br>
def on_regexp_end(token, data)<br>
if /n/ =~ token<br>
puts "#{filename}:#{lineno}:#{column}:#{token}"<br>
end<br>
end<br>
end</p>
<p>ARGV.each do |path|<br>
open(path, "rb") do |f|<br>
parser = CheckRegexpN.new(f, path)<br>
p [parser.filename, parser.lineno, parser.column]<br>
parser.parse<br>
p [parser.filename, parser.lineno, parser.column]<br>
end<br>
end<br>
% ruby-trunk -vd ~/check_regexp_n.rb lib/minitest/spec.rb<br>
ruby 1.9.1p5000 (2009-01-30 trunk 21885) [i686-linux]<br>
Exception <code>NoMethodError' at .../1.9.1/ripper/filter.rb:27 - undefined method </code>filename' for #<a href="Ripper::Lexer:0x8170bbc" class="external">Ripper::Lexer:0x8170bbc</a><br>
.../1.9.1/ripper/filter.rb:27:in <code>filename': undefined method </code>filename' for #<a href="Ripper::Lexer:0x8170bbc" class="external">Ripper::Lexer:0x8170bbc</a> (NoMethodError)<br>
from .../check_regexp_n.rb:16:in <code>block (2 levels) in <main>' from .../check_regexp_n.rb:14:in </code>open'<br>
from .../check_regexp_n.rb:14:in <code>block in <main>' from .../check_regexp_n.rb:13:in </code>each'<br>
from .../check_regexp_n.rb:13:in `'<br>
%</p>
<p>ripper_linenoをまねして以下のようにripper_filenameを定義してみたのですが、<br>
if (NIL_P(parser->parsing_thread)) return Qnil;<br>
の行があるとnilしか返ってこなかったのでコメントアウトしています。</p>
<a name="Index-parsey"></a>
<h1 >Index: parse.y<a href="#Index-parsey" class="wiki-anchor">¶</a></h1>
<p>--- parse.y (リビジョン 21885)<br>
+++ parse.y (作業コピー)<br>
@@ -10239,6 +10239,25 @@</p>
<p>/*</p>
<ul>
<li>call-seq:</li>
</ul>
<ul>
<li>
<ul>
<li>ripper#filename -> String</li>
</ul>
</li>
<li>
<ul>
<li>
</ul>
</li>
<li>
<ul>
<li>Return current parsing filename.</li>
</ul>
</li>
<li>*/<br>
+static VALUE<br>
+ripper_filename(VALUE self)<br>
+{</li>
<li>struct parser_params *parser;</li>
<li>
<li>Data_Get_Struct(self, struct parser_params, parser);</li>
<li>if (!ripper_initialized_p(parser)) {</li>
<li>
<pre><code> rb_raise(rb_eArgError, "method called for uninitialized object");
</code></pre>
</li>
<li>}<br>
+/* if (NIL_P(parser->parsing_thread)) return Qnil; */</li>
<li>return parser->parser_ruby_sourcefile_string;<br>
+}</li>
<li>
</ul>
<p>+/*</p>
<ul>
<li>
<ul>
<li>call-seq:</li>
<li>ripper#lineno -> Integer</li>
<li>
<li>Return line number of current parsing line.<br>
@@ -10288,6 +10307,7 @@<br>
rb_define_method(Ripper, "initialize", ripper_initialize, -1);<br>
rb_define_method(Ripper, "parse", ripper_parse, 0);<br>
rb_define_method(Ripper, "column", ripper_column, 0);</li>
</ul>
</li>
<li>rb_define_method(Ripper, "filename", ripper_filename, 0);<br>
rb_define_method(Ripper, "lineno", ripper_lineno, 0);<br>
rb_define_method(Ripper, "end_seen?", rb_parser_end_seen_p, 0);<br>
rb_define_method(Ripper, "encoding", rb_parser_encoding, 0);<br>
=end</li>
</ul>
Ruby master - Bug #1071 (Closed): ripper: 改行を含む正規表現のon_regexp_endが変
https://bugs.ruby-lang.org/issues/1071
2009-01-30T05:13:39Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
正規表現に改行が含まれていると改行の後がon_tstring_contentではなくon_regexp_endに含まれるのは変なのではないでしょうか?</p>
<p>% ruby-trunk -v -r ripper -r pp -e 'pp Ripper.lex("/foo\nbar/")'<br>
ruby 1.9.1p5000 (2009-01-30 trunk 21885) [i686-linux]<br>
[[[1, 0], :on_regexp_beg, "/"],<br>
[[1, 1], :on_tstring_content, "foo\n"],<br>
[[2, 0], :on_regexp_end, "bar/"]]<br>
%<br>
=end</p>
Ruby 1.8 - Bug #1062 (Closed): Error: test_def_method
https://bugs.ruby-lang.org/issues/1062
2009-01-27T19:48:18Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
test_def_method(TestERBCore)とtest_def_method(TestERBCoreWOStrScan)でErrorがでています。</p>
<p><a href="http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8/last" class="external">http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8/last</a></p>
<ol>
<li>
<p>Error:<br>
test_def_method(TestERBCore):<br>
ArgumentError: wrong number of arguments (3 for 2)<br>
/home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:240:in <code>def_erb_method' /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:240:in </code>test_def_method'<br>
/home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:239:in <code>module_eval' /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:239:in </code>test_def_method'</p>
</li>
<li>
<p>Error:<br>
test_def_method(TestERBCoreWOStrScan):<br>
ArgumentError: wrong number of arguments (3 for 2)<br>
/home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:240:in <code>def_erb_method' /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:240:in </code>test_def_method'<br>
/home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:239:in <code>module_eval' /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:239:in </code>test_def_method'<br>
=end</p>
</li>
</ol>
Ruby master - Feature #1027 (Closed): Dir.home
https://bugs.ruby-lang.org/issues/1027
2009-01-20T18:01:33Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
I request Dir.home again.</p>
<a name="previous-request-was-ruby-dev31957"></a>
<h1 >previous request was <a href="https://blade.ruby-lang.org/ruby-dev/31957">[ruby-dev:31957]</a><a href="#previous-request-was-ruby-dev31957" class="wiki-anchor">¶</a></h1>
<p>Portable way of getting home directory is complex see <a href="https://blade.ruby-lang.org/ruby-core/12347">[ruby-core:12347]</a>.<br>
I think a simplest getting home directory is<br>
Dir.chdir { Dir.pwd }<br>
now.<br>
But this is not thread-safe and changes directory needlessness.<br>
=end</p>
Ruby master - Bug #885 (Closed): Thread.new{fork{}}
https://bugs.ruby-lang.org/issues/885
2008-12-15T21:34:54Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
<a href="https://blade.ruby-lang.org/ruby-core/20537">[ruby-core:20537]</a> をちょっと変えて試してみたら謎の出力がありました。<br>
マシンに負荷がかかってる状態だと出にくいようです。</p>
<p>% ruby-trunk -ve 'Thread.new{fork{}}'<br>
ruby 1.9.1 (2008-12-15 revision 20759) [i686-linux]<br>
-e:1: Fixnum<br>
%<br>
=end</p>
Ruby master - Bug #884 (Closed): Insecure operation: -r
https://bugs.ruby-lang.org/issues/884
2008-12-15T20:06:07Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
以下のようにするとエラーメッセージの中に謎の-rが出てきます。</p>
<p>% ruby-trunk -ve '$SAFE=4;open("")'<br>
ruby 1.9.1 (2008-12-14 revision 20736) [i686-linux]<br>
-e:1:in <code>open': Insecure operation: -r (SecurityError) from -e:1:in </code>'<br>
%<br>
=end</p>
Ruby master - Bug #883 (Closed): Failure: test_handle_special_CROSSREF_no_underscore(TestRDocMark...
https://bugs.ruby-lang.org/issues/883
2008-12-15T19:52:47Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
test failed with full path</p>
<p>% ruby-trunk -v<br>
ruby 1.9.1 (2008-12-15 revision 20750) [i686-linux]<br>
% ruby-trunk test/rdoc/test_rdoc_markup_to_html_crossref.rb<br>
nil<br>
Loaded suite test/rdoc/test_rdoc_markup_to_html_crossref<br>
Started<br>
.<br>
Finished in 0.153602 seconds.</p>
<p>1 tests, 210 assertions, 0 failures, 0 errors, 0 skips<br>
% ruby-trunk $(pwd)/test/rdoc/test_rdoc_markup_to_html_crossref.rb<br>
nil<br>
Loaded suite /home/kazu/wc/ruby-lang/trunk/test/rdoc/test_rdoc_markup_to_html_crossref<br>
Started<br>
F<br>
Finished in 0.041989 seconds.</p>
<ol>
<li>Failure:<br>
test_handle_special_CROSSREF_no_underscore(TestRDocMarkupToHtmlCrossref) [/home/kazu/wc/ruby-lang/trunk/test/rdoc/test_rdoc_markup_to_html_crossref.rb:87]:<br>
Expected "<p> <a href="../files/home/kazu/wc/ruby-lang/trunk/test/rdoc/rdoc_markup_to_html_crossref_reference_rb.html">/home/kazu/wc/ruby-lang/trunk/test/rdoc/rdoc_markup_to_html_crossref_reference.rb </p> ", not "<p> /home/kazu/wc/ruby-lang/trunk/test/rdoc/rdoc_markup_to_html_crossref_reference.rb </p> ".</li>
</ol>
<p>1 tests, 29 assertions, 1 failures, 0 errors, 0 skips<br>
%<br>
=end</p>
Ruby 1.8 - Bug #789 (Closed): RSTRING in ext/gdbm/gdbm.c
https://bugs.ruby-lang.org/issues/789
2008-11-25T16:01:52Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
西山和広です。</p>
<p><a href="/issues/788">[ruby-core:20082]</a>にひっかかったので、とりあえず</p>
<a name="Index-objectc"></a>
<h1 >Index: object.c<a href="#Index-objectc" class="wiki-anchor">¶</a></h1>
<p>--- object.c(revision 20352)<br>
+++ object.c(working copy)<br>
@@ -223,7 +223,7 @@<br>
}<br>
clone = rb_obj_alloc(rb_obj_class(obj));<br>
RBASIC(clone)->klass = rb_singleton_class_clone(obj);</p>
<ul>
<li>RBASIC(clone)->flags = (RBASIC(obj)->flags | FL_TEST(clone, FL_TAINT)) & ~(FL_FREEZE|FL_FINALIZE);</li>
</ul>
<ul>
<li>RBASIC(clone)->flags = (RBASIC(obj)->flags | FL_TEST(clone, FL_TAINT|ELTS_SHARED)) & ~(FL_FREEZE|FL_FINALIZE);<br>
init_copy(clone, obj);<br>
RBASIC(clone)->flags |= RBASIC(obj)->flags & FL_FREEZE;</li>
</ul>
<p>として回避してみたところ、gdbmのテストの中で落ちるようになったので、<br>
調べてみたところ、rb_str_s_allocでELTS_SHAREDが設定されているのに<br>
aux.sharedを無視してaux.capaを設定していて、それを後で<br>
RSTRING(aux.shared)で参照されてしまうのが原因だとわかりました。</p>
<p>以下のようにした方が良いと思ったのですが、どうでしょうか?</p>
<a name="Index-extgdbmgdbmc"></a>
<h1 >Index: ext/gdbm/gdbm.c<a href="#Index-extgdbmgdbmc" class="wiki-anchor">¶</a></h1>
<p>--- ext/gdbm/gdbm.c(revision 20352)<br>
+++ ext/gdbm/gdbm.c(working copy)<br>
@@ -303,12 +303,7 @@<br>
if (val.dptr == 0)<br>
return Qnil;</p>
<ul>
<li>str = rb_obj_alloc(rb_cString);</li>
<li>RSTRING(str)->len = val.dsize;</li>
<li>RSTRING(str)->aux.capa = val.dsize;</li>
<li>RSTRING(str)->ptr = REALLOC_N(val.dptr,char,val.dsize+1);</li>
<li>RSTRING(str)->ptr[val.dsize] = '\0';</li>
<li>
</ul>
<ul>
<li>str = rb_str_new(val.dptr, val.dsize);<br>
OBJ_TAINT(str);<br>
return (VALUE)str;<br>
}<br>
@@ -349,12 +344,7 @@<br>
if (key.dptr == 0)<br>
return Qnil;</li>
</ul>
<ul>
<li>str = rb_obj_alloc(rb_cString);</li>
<li>RSTRING(str)->len = key.dsize;</li>
<li>RSTRING(str)->aux.capa = key.dsize;</li>
<li>RSTRING(str)->ptr = REALLOC_N(key.dptr,char,key.dsize+1);</li>
<li>RSTRING(str)->ptr[RSTRING(str)->len] = '\0';</li>
<li>
</ul>
<ul>
<li>str = rb_str_new(key.dptr, key.dsize);<br>
OBJ_TAINT(str);<br>
return str;<br>
}<br>
@@ -373,12 +363,7 @@<br>
if (key2.dptr == 0)<br>
return Qnil;</li>
</ul>
<ul>
<li>str = rb_obj_alloc(rb_cString);</li>
<li>RSTRING(str)->len = key2.dsize;</li>
<li>RSTRING(str)->aux.capa = key2.dsize;</li>
<li>RSTRING(str)->ptr = REALLOC_N(key2.dptr,char,key2.dsize+1);</li>
<li>RSTRING(str)->ptr[RSTRING(str)->len] = '\0';</li>
<li>
</ul>
<ul>
<li>str = rb_str_new(key2.dptr, key2.dsize);<br>
OBJ_TAINT(str);<br>
return str;<br>
}</li>
</ul>
<p>--<br>
|ZnZ(ゼット エヌ ゼット)<br>
|西山和広(Kazuhiro NISHIYAMA)<br>
=end</p>
Ruby master - Bug #751 (Closed): Regexp.new(dummy_encoding_string)
https://bugs.ruby-lang.org/issues/751
2008-11-13T19:30:28Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
<a href="http://mono.kmc.gr.jp/~yhara/d/?date=20081101#p03" class="external">http://mono.kmc.gr.jp/~yhara/d/?date=20081101#p03</a><br>
のようなことが起きるので、dummy encodingの文字列で<br>
Regexp.newしたときは例外になった方が良いのではないでしょうか?<br>
=end</p>
Ruby master - Bug #688 (Closed): test_exit_action(TestSignal)でTimeout::Error
https://bugs.ruby-lang.org/issues/688
2008-10-28T11:15:29Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
ruby 1.9.0 (2008-10-27 revision 19968) [powerpc-darwin9.5.0]<br>
や<br>
ruby 1.9.0 (2008-10-28 revision 19973) [x86_64-linux]<br>
の環境でTimeout::Errorになります。</p>
<ol start="4">
<li>Failure:<br>
test_exit_action(TestSignal) [.../test/ruby/test_signal.rb:52]:<br>
<a href="https://blade.ruby-lang.org/ruby-dev/26128">[ruby-dev:26128]</a>.<br>
Exception raised:<br>
<#<Timeout::Error: execution expired>>.<br>
=end</li>
</ol>
Ruby 1.8 - Bug #613 (Closed): segmentetion fault by Marshal.dump
https://bugs.ruby-lang.org/issues/613
2008-10-01T16:13:12Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
西山和広です。</p>
<p>Marshal.dumpに第2引数のIOを指定すると落ちます。</p>
<p>% ruby18 -ve 'Marshal.dump(nil, open("/dev/null", "wb"))'<br>
ruby 1.8.7 (2008-09-27 revision 19596) [i686-linux]<br>
-e:1: [BUG] Segmentation fault<br>
ruby 1.8.7 (2008-09-27 revision 19596) [i686-linux]<br>
%</p>
<p>check_dump_argのarg->wrapperがNULLの時に落ちるようで、<br>
以下のように初期化すると確実に再現できます。</p>
<a name="Index-marshalc"></a>
<h1 >Index: marshal.c<a href="#Index-marshalc" class="wiki-anchor">¶</a></h1>
<p>--- marshal.c(リビジョン 19651)<br>
+++ marshal.c(作業コピー)<br>
@@ -761,7 +761,7 @@<br>
{<br>
VALUE obj, port, a1, a2;<br>
int limit = -1;</p>
<ul>
<li>struct dump_arg arg;</li>
</ul>
<ul>
<li>
<p>struct dump_arg arg = {0};<br>
struct dump_call_arg c_arg;</p>
<p>port = Qnil;</p>
</li>
</ul>
<p>--<br>
|ZnZ(ゼット エヌ ゼット)<br>
|西山和広(Kazuhiro NISHIYAMA)<br>
=end</p>
Ruby master - Bug #570 (Closed): emacs21で色が付かない
https://bugs.ruby-lang.org/issues/570
2008-09-16T21:15:55Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
西山和広です。</p>
<p>emacs21でtrunkのruby-mode.elを使うと色が付きません。</p>
<a name="syntax-ppssというのが無いから"></a>
<h1 >syntax-ppssというのが無いから?<a href="#syntax-ppssというのが無いから" class="wiki-anchor">¶</a></h1>
<p>--<br>
|ZnZ(ゼット エヌ ゼット)<br>
|西山和広(Kazuhiro NISHIYAMA)<br>
=end</p>
Ruby 1.8 - Bug #569 (Closed): emacs21でruby-mode.el
https://bugs.ruby-lang.org/issues/569
2008-09-16T20:53:51Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
西山和広です。</p>
<p>At Mon, 26 May 2008 15:58:47 +0900,<br>
Kazuhiro NISHIYAMA wrote:</p>
<blockquote>
<p>emacs21でruby-mode.elが<br>
File mode specification error: (void-function run-mode-hooks)<br>
となって動きません。</p>
</blockquote>
<p>ruby_1_8の方は動かないままのようです。</p>
<a name="Index-miscruby-modeel"></a>
<h1 >Index: misc/ruby-mode.el<a href="#Index-miscruby-modeel" class="wiki-anchor">¶</a></h1>
<p>--- misc/ruby-mode.el (revision 16583)<br>
+++ misc/ruby-mode.el (working copy)<br>
@@ -312,7 +312,9 @@<br>
(set (make-local-variable 'font-lock-syntax-table) ruby-font-lock-syntax-table)<br>
(set (make-local-variable 'font-lock-syntactic-keywords) ruby-font-lock-syntactic-keywords)</p>
<ul>
<li>(run-mode-hooks 'ruby-mode-hook))</li>
</ul>
<ul>
<li>(if (fboundp 'run-mode-hooks)</li>
<li>
<pre><code> (run-mode-hooks 'ruby-mode-hook)
</code></pre>
</li>
<li>(run-hooks 'ruby-mode-hook)))</li>
</ul>
<p>(defun ruby-current-indentation ()<br>
(save-excursion</p>
<p>--<br>
|ZnZ(ゼット エヌ ゼット)<br>
|西山和広(Kazuhiro NISHIYAMA)<br>
=end</p>
Ruby master - Bug #495 (Closed): Failure: test_priority(TestThread)
https://bugs.ruby-lang.org/issues/495
2008-08-25T21:01:32Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
CPUなどの他の環境も影響しそうですが、<br>
ruby 1.9.0 (2008-08-25 revision 18832) [i686-linux]<br>
とUbuntu 8.04.1の環境で以下のFailureが発生します。</p>
<ol>
<li>Failure:<br>
test_priority(TestThread) [test/ruby/test_thread.rb:129]:<br>
<a href="https://blade.ruby-lang.org/ruby-dev/33124">[ruby-dev:33124]</a>.<br>
is not true.</li>
</ol>
<p>メッセージにc1,c2を表示するようにしたところ、<br>
c1=1708255,c2=1614873.<br>
c1=1768679,c2=1626401.<br>
c1=1799550,c2=1721482.<br>
c1=1796999,c2=1651275.<br>
c1=1781870,c2=1725428.<br>
のような感じで1.5倍までの差は出ないようです。<br>
=end</p>
Ruby master - Bug #465 (Closed): `Errno::ENOTCONN: Socket is not connected' in test/net/imap
https://bugs.ruby-lang.org/issues/465
2008-08-21T19:11:49Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
test/net/imapでも同様にErrno::ENOTCONNになります。</p>
<ol start="48">
<li>Error:<br>
test_unexpected_eof(IMAPTest):<br>
Errno::ENOTCONN: Socket is not connected<br>
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/lib/net/imap.rb:295:in <code>shutdown' /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/lib/net/imap.rb:295:in </code>rescue in disconnect'<br>
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/lib/net/imap.rb:290:in <code>disconnect' /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/net/imap/test_imap.rb:108:in </code>test_unexpected_eof'</li>
</ol>
<p>以下パッチです。</p>
<a name="Index-libnetimaprb"></a>
<h1 >Index: lib/net/imap.rb<a href="#Index-libnetimaprb" class="wiki-anchor">¶</a></h1>
<p>--- lib/net/imap.rb (revision 18748)<br>
+++ lib/net/imap.rb (working copy)<br>
@@ -288,11 +288,15 @@<br>
# Disconnects from the server.<br>
def disconnect<br>
begin</p>
<ul>
<li>
<pre><code> # try to call SSL::SSLSocket#io.
</code></pre>
</li>
<li>
<pre><code> @sock.io.shutdown
</code></pre>
</li>
<li>
<pre><code> rescue NoMethodError
</code></pre>
</li>
<li>
<pre><code> # @sock is not an SSL::SSLSocket.
</code></pre>
</li>
<li>
<pre><code> @sock.shutdown
</code></pre>
</li>
</ul>
<ul>
<li>
<pre><code> begin
</code></pre>
</li>
<li>
<pre><code> # try to call SSL::SSLSocket#io.
</code></pre>
</li>
<li>
<pre><code> @sock.io.shutdown
</code></pre>
</li>
<li>
<pre><code> rescue NoMethodError
</code></pre>
</li>
<li>
<pre><code> # @sock is not an SSL::SSLSocket.
</code></pre>
</li>
<li>
<pre><code> @sock.shutdown
</code></pre>
</li>
<li>
<pre><code> end
</code></pre>
</li>
<li>
<pre><code> rescue Errno::ENOTCONN
</code></pre>
</li>
<li>
<pre><code> # ignore `Errno::ENOTCONN: Socket is not connected' on some platforms.
end
@receiver_thread.join
@sock.close
</code></pre>
</li>
</ul>
<p>=end</p>
Ruby master - Bug #464 (Closed): `Errno::ENOTCONN: Socket is not connected' in test/openssl/test_...
https://bugs.ruby-lang.org/issues/464
2008-08-21T19:10:00Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
test/openssl/test_ssl.rbでも同様にErrno::ENOTCONNになります。</p>
<ol start="49">
<li>Error:<br>
test_client_auth(OpenSSL::TestSSL):<br>
Errno::ENOTCONN: Socket is not connected<br>
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/openssl/test_ssl.rb:132:in <code>shutdown' /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/openssl/test_ssl.rb:132:in </code>start_server'<br>
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/openssl/test_ssl.rb:231:in `test_client_auth'</li>
</ol>
<p>以下パッチです。</p>
<a name="Index-testopenssltest_sslrb"></a>
<h1 >Index: test/openssl/test_ssl.rb<a href="#Index-testopenssltest_sslrb" class="wiki-anchor">¶</a></h1>
<p>--- test/openssl/test_ssl.rb (revision 18748)<br>
+++ test/openssl/test_ssl.rb (working copy)<br>
@@ -129,7 +129,14 @@<br>
block.call(server, port.to_i)<br>
ensure<br>
begin</p>
<ul>
<li>
<pre><code> tcps.shutdown if (tcps)
</code></pre>
</li>
</ul>
<ul>
<li>
<pre><code> begin
</code></pre>
</li>
<li>
<pre><code> tcps.shutdown
</code></pre>
</li>
<li>
<pre><code> rescue Errno::ENOTCONN
</code></pre>
</li>
<li>
<pre><code> # when `Errno::ENOTCONN: Socket is not connected' on some platforms,
</code></pre>
</li>
<li>
<pre><code> # call #close instead of #shutdown.
</code></pre>
</li>
<li>
<pre><code> tcps.close
</code></pre>
</li>
<li>
<pre><code> tcps = nil
</code></pre>
</li>
<li>
<pre><code> end if (tcps)
if (server)
server.join(5)
if server.alive?
</code></pre>
</li>
</ul>
<p>=end</p>
Ruby master - Bug #463 (Closed): `Errno::ENOTCONN: Socket is not connected' in test/net/http
https://bugs.ruby-lang.org/issues/463
2008-08-21T17:21:31Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
Mac OS Xで以下のようにErrno::ENOTCONNになります。<br>
その影響で他のテストのいくつかもErrno::EADDRINUSEなどで失敗します。</p>
<ol>
<li>Error:<br>
test_certificate_verify_failure(TestNetHTTPS):<br>
Errno::ENOTCONN: Socket is not connected<br>
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/.ext/common/openssl/ssl.rb:157:in <code>shutdown' /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/.ext/common/openssl/ssl.rb:157:in </code>shutdown'<br>
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/lib/webrick/server.rb:133:in <code>block in shutdown' /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/lib/webrick/server.rb:128:in </code>each'<br>
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/lib/webrick/server.rb:128:in <code>shutdown' /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/net/http/utils.rb:34:in </code>teardown'</li>
</ol>
<p>以下のパッチで直るようなのですが問題ないでしょうか?</p>
<a name="Index-libwebrickserverrb"></a>
<h1 >Index: lib/webrick/server.rb<a href="#Index-libwebrickserverrb" class="wiki-anchor">¶</a></h1>
<p>--- lib/webrick/server.rb (revision 18748)<br>
+++ lib/webrick/server.rb (working copy)<br>
@@ -130,9 +130,17 @@<br>
addr = s.addr<br>
@logger.debug("close TCPSocket(#{addr[2]}, #{addr[1]})")<br>
end</p>
<ul>
<li>
<pre><code> s.shutdown
</code></pre>
</li>
<li>
<pre><code> unless @config[:ShutdownSocketWithoutClose]
</code></pre>
</li>
</ul>
<ul>
<li>
<pre><code> begin
</code></pre>
</li>
<li>
<pre><code> s.shutdown
</code></pre>
</li>
<li>
<pre><code> rescue Errno::ENOTCONN
</code></pre>
</li>
<li>
<pre><code> # when `Errno::ENOTCONN: Socket is not connected' on some platforms,
</code></pre>
</li>
<li>
<pre><code> # call #close instead of #shutdown.
</code></pre>
</li>
<li>
<pre><code> # (ignore @config[:ShutdownSocketWithoutClose])
s.close
</code></pre>
</li>
<li>
<pre><code> else
</code></pre>
</li>
<li>
<pre><code> unless @config[:ShutdownSocketWithoutClose]
</code></pre>
</li>
<li>
<pre><code> s.close
</code></pre>
</li>
<li>
<pre><code> end
end
}
@listeners.clear
</code></pre>
</li>
</ul>
<p>=end</p>
Ruby 1.8 - Bug #367 (Closed): ruby_1_8のrssで3E
https://bugs.ruby-lang.org/issues/367
2008-07-27T22:27:25Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
環境によってはrssでErrorが出ます。</p>
<ol>
<li>
<p>Error:<br>
test_atom_content(RSS::TestAtomCore):<br>
LoadError: no such file to load -- zlib<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/test_atom.rb:644:in <code>require' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/test_atom.rb:644:in </code>assert_atom_content_inline_other_base64_to_s'<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/test_atom.rb:643:in <code>assert_atom_content_inline_other_base64_to_s' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/test_atom.rb:604:in </code>assert_atom_content_to_s'<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/test_atom.rb:600:in <code>assert_atom_content_to_s' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/test_atom.rb:205:in </code>test_atom_content'</p>
</li>
<li>
<p>Error:<br>
test_entry_content_text(RSS::TestParserAtom):<br>
LoadError: no such file to load -- zlib<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:560:in <code>require' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:560:in </code>assert_atom_content_inline_other_text'<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:559:in <code>assert_atom_content_inline_other_text' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:553:in </code>assert_atom_content_inline_other'<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:552:in <code>assert_atom_content_inline_other' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:459:in </code>assert_atom_content'<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:456:in <code>assert_atom_content' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/test_parser_atom_entry.rb:100:in </code>test_entry_content_text'</p>
</li>
<li>
<p>Error:<br>
test_entry_content(RSS::TestParserAtomFeed):<br>
LoadError: no such file to load -- zlib<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:560:in <code>require' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:560:in </code>assert_atom_content_inline_other_text'<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:559:in <code>assert_atom_content_inline_other_text' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:553:in </code>assert_atom_content_inline_other'<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:552:in <code>assert_atom_content_inline_other' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:459:in </code>assert_atom_content'<br>
/home/kazu/wc/ruby-lang/ruby_1_8/test/rss/rss-assertions.rb:456:in <code>assert_atom_content' /home/kazu/wc/ruby-lang/ruby_1_8/test/rss/test_parser_atom_feed.rb:147:in </code>test_entry_content'</p>
</li>
</ol>
<p>1847 tests, 1343396 assertions, 0 failures, 3 errors<br>
=end</p>
Ruby master - Feature #235 (Closed): default charset of rdoc
https://bugs.ruby-lang.org/issues/235
2008-07-08T20:40:07Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
I think that default charset of rdoc should be 'utf-8'.<br>
The current default 'iso-8859-1' is not useful, because it can not include characters in Japanese and/or other languages, and not supported by ruby(1.8.x) interpreter.<br>
=end</p>
Ruby 1.8 - Bug #194 (Closed): test_circular_references(YAML_Unit_Tests)
https://bugs.ruby-lang.org/issues/194
2008-06-19T20:03:29Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
西山和広です。</p>
<p>1.8.5と1.8.6のmake test-allがDebian etchの環境で<br>
test_circular_references(YAML_Unit_Tests)<br>
で[BUG] Segmentation faultになります。</p>
<p>別の環境(Ubuntu hardy)だと<br>
SystemStackError: stack level too deep<br>
になっていました。</p>
<p>--<br>
|ZnZ(ゼット エヌ ゼット)<br>
|西山和広(Kazuhiro NISHIYAMA)<br>
=end</p>
Ruby master - Feature #108 (Closed): strftimeのusec対応
https://bugs.ruby-lang.org/issues/108
2008-06-07T00:31:23Z
znz (Kazuhiro NISHIYAMA)
<p>=begin<br>
Timeオブジェクトはusecを持っていますが、今のstrftimeの書式指定文字列ではusecやミリ秒が取り出せません。<br>
=end</p>