Project

General

Profile

Activity

From 12/24/2016 to 12/30/2016

12/30/2016

11:28 PM Bug #13080: [mingw regression] broken openssl extension in 2.4.0p0
Before you decide whether to commit your patch to support using static openssl libs, I'll double check that a 32bit build with the rubyinstaller-built openssl lib from https://bintray.com/oneclick/OpenKnapsack/openssl/1.0.2j#files also w... jonforums (Jon Forums)
08:06 PM Bug #13080: [mingw regression] broken openssl extension in 2.4.0p0
Yes, that was very surprising to find windows openssl using gdi32.dll.
I've got more testing to do, but your patch appears to work for both 1.0.2j and 1.1.0c on 2.4.0p0:
Thank you.
~~~
$ ruby --version
ruby 2.4.0p0 (2016-12-24...
jonforums (Jon Forums)
05:52 PM Bug #8289: [].join.encoding # => US-ASCII (I expect also UTF-8
A work around for my own projects:
~~~ ruby
class Array
alias_method :old_join, :join
# A work around for https://bugs.ruby-lang.org/issues/8289
def join(separator = $,)
'' + old_join(separator)
end
end
puts ["...
khalil_fazal (Khalil Fazal)
02:42 PM Bug #13090 (Closed): Cannot use return statement in lambdas using instance_eval (MRI 2.4)
Hello,
I'm pretty sure I've found a bug after running specs for dry-initializer gem on MRI 2.4.
I managed to find the minimal code to reproduce the issue:
MRI 2.3.3
```
$ ruby -e "instance_eval(&lambda { |_| return })"
$
``...
decuplet (Nikita Shilnikov)
12:53 PM Bug #13078: with Integer a and b, a.fdiv(b) sometimes inaccurate than Rational(a, b).to_f
pull requested
https://github.com/ruby/ruby/pull/1508
metanest (Makoto Kishimoto)
11:45 AM Feature #11547: remove top-level constant lookup
With 2.4 released and I wasn't able to find anything related to this issue in https://github.com/ruby/ruby/blob/v2_4_0/NEWS I guess it did not make it into 2.4.
I was wondering if there are any plans regarding working on this. In almo...
tisba (Sebastian Cohnen)
09:14 AM Feature #12508: Integer#mod_pow
Updated as Integer#pow, with such API. metanest (Makoto Kishimoto)
08:01 AM Bug #13089 (Closed): r57227 の変更ではリークが起きるようです
Applied in changeset r57236.
----------
rational.c: memory leak in gcd
* rational.c (rb_gcd_gmp): fix memory leak. patched by KISHIMOTO,
Makoto <ksmakoto AT dd.iij4u.or.jp> in [ruby-dev:49934].
[Bug #13089]
nobu (Nobuyoshi Nakada)
07:59 AM Bug #13089 (Closed): r57227 の変更ではリークが起きるようです
きしもとです
手元の環境で、最新版(r57227 の変更以降)で、以下のような
スクリプトを実行しながら、topコマンドでインタプリタのプロセスを
見ていると、リークがあるようで、SIZE, RES がじりじりと増えて
ゆきます。
```ruby
# fdiv_leak_sample
A = 0x4000_0000_0000_0000
B = 0x4000_0000_0000_0000
def f
A.fdiv B
end
...
metanest (Makoto Kishimoto)
08:01 AM Revision 994d13b9 (git): rational.c: memory leak in gcd
* rational.c (rb_gcd_gmp): fix memory leak. patched by KISHIMOTO,
Makoto <ksmakoto AT dd.iij4u.or.jp> in [ruby-dev:49934].
[Bug #13089]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:53 AM Bug #13069: mkmf: ignore linker warnings on OpenBSD
Thansk for addressing the warnings. Your proposed patch solves my problem. Anonymous

12/29/2016

09:58 PM Bug #13069: mkmf: ignore linker warnings on OpenBSD
I think this is a better fix. This keeps the `:werror` behavior in `Logging::postpone`, it just turns off the use of `:werror` by default. Users that want werror behavior by default can set `$werror = true`.
~~~ diff
--- lib/mkmf.r...
jeremyevans0 (Jeremy Evans)
09:03 PM Bug #13069 (Open): mkmf: ignore linker warnings on OpenBSD
Some of the warnings were addressed in r57189, r57190, and r57191. However, I think we should rethink checking for an empty log file, and rely purely on the return code:
~~~ diff
--- lib/mkmf.rb.orig Sun Dec 25 09:49:06 2016
+++...
jeremyevans0 (Jeremy Evans)
04:16 PM Revision c922626a (git): * 2016-12-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:16 PM Revision c326ab8c (git): test/ruby/test_pack.rb: fix test case added by r57187
The test case for String#unpack added by r57187 is not properly testing
because the String will be filled after the block invocation.
[ruby-core:78841] [Bug #13075]
Thanks to nagachika for pointing this out:
http://d.hatena.ne.jp/nag...
rhenium (Kazuki Yamaguchi)
03:54 PM Bug #13080: [mingw regression] broken openssl extension in 2.4.0p0
Apparently my change broke it:
https://github.com/ruby/openssl/commit/5ba12a364fa5019f0e0f1e356087c001330097f1
I never thought OpenSSL would actually use gdi32.dll, but it does! RAND_screen() which used those gdi32.dll functions ...
rhenium (Kazuki Yamaguchi)
01:16 PM Bug #13081: resolv.rb may be the cause of the rubygems bug on Windows
Yes, Windows seems to ignore the value when it is not REG_SZ, too.
But I wonder if it is desirable to ignore such broken registry silently.
nobu (Nobuyoshi Nakada)
12:27 PM Bug #13081: resolv.rb may be the cause of the rubygems bug on Windows
How about ignoring the registry value if its type is not expected type?
```diff
Index: resolv.rb
===================================================================
--- resolv.rb (revision 57233)
+++ resolv.rb (working copy)
@@ -...
kou (Kouhei Sutou)
12:43 PM Bug #13088 (Rejected): Strange behavior in String.to_i
Matheus Mina wrote:
> It converts the first number in the string to integer. Is it correct?
Yes.
http://ruby-doc.org/core-2.4.0/String.html#method-i-to_i
nobu (Nobuyoshi Nakada)
11:10 AM Bug #13088 (Rejected): Strange behavior in String.to_i
When I try convert a string to integer using .to_i method it has a strange behavior.
It converts the first number in the string to integer. Is it correct?
I think the expected behavior should be convert to a integer if it has only ...
mfbmina (Matheus Mina)
12:22 PM Bug #13087 (Closed): Regression of instance_exec behaviour in ruby 2.4
nobu (Nobuyoshi Nakada)
11:05 AM Bug #13087 (Closed): Regression of instance_exec behaviour in ruby 2.4
I've just caught up this running our test suite against the newly released ruby 2.4. Here is the repro gist:
```ruby
class A
def initialize(x)
@x = x ...
chucke (Tiago Cardoso)
10:32 AM Revision e383c2ea (git): rational.c: refactor to_r
* rational.c (read_num, read_rat_nos): refactor to curtail
creating Rational objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:27 AM Bug #13086 (Rejected): /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36: [BUG] Segmentation fault
You load the extension library for 2.2.1 from ruby 1.9.1. nobu (Nobuyoshi Nakada)
05:40 AM Bug #13086: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36: [BUG] Segmentation fault
I am in a cloud9 instance.
I just updated nokogiri to 1.7.0.
I have attached the bug report.
tmorgan99 (Tim Morgan)
05:32 AM Bug #13086 (Rejected): /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36: [BUG] Segmentation fault
require 'nokogiri'
at first, it worked ok, but as I reload my script, I encounter the SegFault.
could be an issue in the code behind nokogiri ?
tmorgan99 (Tim Morgan)
09:26 AM Bug #13084 (Closed): String cast to Rational on 2.4.0p0 results in SegFault with Mathn required
Applied in changeset r57232.
----------
rational.c: fix for mathn
* rational.c (read_num, read_rat_nos): dispatch by the type of numerator, for
mathn. [ruby-core:78893] [Bug #13084]
nobu (Nobuyoshi Nakada)
12:21 AM Bug #13084: String cast to Rational on 2.4.0p0 results in SegFault with Mathn required
Can be replicated on Linux via Docker
Below Segfaults
~~~
docker run -it ruby:slim ruby -e 'require "mathn"; p Rational("5/5");'
~~~
Below Returns Expected Result
~~~
docker run -it ruby:slim ruby -e 'p Rational("5/5");'
...
burningpony (Russell Osborne)
12:06 AM Bug #13084 (Closed): String cast to Rational on 2.4.0p0 results in SegFault with Mathn required
See the below example, while `mathn` is required recasting a string into a Rational causes a SegFault. Remove mathn and the code will not crash.
~~~ ruby
require 'mathn'
# Both result in Segfault
Rational("5/5")
"5/5".to_r
~~~...
burningpony (Russell Osborne)
09:26 AM Revision ff93ad62 (git): rational.c: fix for mathn
* rational.c (read_num, read_rat_nos): dispatch by the type of numerator, for
mathn. [ruby-core:78893] [Bug #13084]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:06 AM Revision 69938349 (git): * 2016-12-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:05 AM Revision 8691f8ca (git): rational.c: canonicalization
* rational.c (canonicalization): define always regardless CANON,
and remove unnecessary ifdefs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:46 AM Bug #13082: Regex match from position behavior with start of line/string special character
Thanks, I didn't know about \G! It's a little hard to understand in this situation, do you think it might be helpful to add to the doc on matching with position?
"\G - Matches point where last match finished"
akanet (Vincent Woo)
02:39 AM Bug #13082 (Rejected): Regex match from position behavior with start of line/string special character
Offset 2 is not a beginning of a line, nor the beginning of the string.
Use `\G`.
nobu (Nobuyoshi Nakada)
01:11 AM Bug #13085 (Closed): io.c io_fwrite creates garbage
Relying on rb_str_new_frozen for unconverted strings does not
save memory because copy-on-write is always triggered in
read-write I/O loops were subsequent IO#read calls will
clobber the given write buffer.
```ruby
buf = ''.b
...
normalperson (Eric Wong)

12/28/2016

09:00 PM Bug #13043: Exception#cause can become recursive/infinite
ruby_2_2 r57229 merged revision(s) 57137. usa (Usaku NAKAMURA)
09:00 PM Revision d785c36b (git): merge revision(s) 57137: [Backport #13043]
eval.c: fix circular cause
* eval.c (exc_setup_cause): always set cause of cause to get rid
of circular references. [ruby-core:78688] [Bug #13043]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57229 b2dd03c8-...
U.Nakamura
07:54 PM Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
1. This would break a lot of code. As an example, I found 13 instances of `when true/false` in Rails' code that would break.
2. There is no good replacement for the current uses of `when true` and `when false`. In particular, `when tr...
marcandre (Marc-Andre Lafortune)
04:05 AM Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
Nobu, I think the benefit outpass the drawbacks.
Regarding your patch, I think `===` should be its own RDoc entries.
Matz.
matz (Yukihiro Matsumoto)
06:34 PM Feature #13083 (Closed): Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
Just for consistency
* patch: https://github.com/ruby/ruby/pull/1506
* spec: https://github.com/ruby/spec/pull/380
Currently behaves as ( ruby --version: ruby 2.5.0dev (2016-12-28 trunk 57228) [x86_64-darwin16] )
~~~ ruby
'str...
kachick (Kenichi Kamiya)
12:42 PM Bug #13082 (Rejected): Regex match from position behavior with start of line/string special character
Hello,
Apologies in advance if this question was addressed already, I could not find any information on it.
Regexp#match [provides this behavior](https://ruby-doc.org/core-2.4.0/Regexp.html#method-i-match):
> If the second param...
akanet (Vincent Woo)
05:12 AM Bug #13081: resolv.rb may be the cause of the rubygems bug on Windows
s/repository/registry/ nobu (Nobuyoshi Nakada)
02:29 AM Bug #13081: resolv.rb may be the cause of the rubygems bug on Windows
Seems the registry is broken. nobu (Nobuyoshi Nakada)
12:34 AM Bug #13081 (Closed): resolv.rb may be the cause of the rubygems bug on Windows
See https://github.com/rubygems/rubygems/issues/1700 kozo2 (Kozo Nishida)
04:41 AM Bug #13078 (Closed): with Integer a and b, a.fdiv(b) sometimes inaccurate than Rational(a, b).to_f
Applied in changeset r57227.
----------
numeric.c: reduce fdiv
* numeric.c (rb_int_fdiv_double): reduce first for more precise
result. [ruby-core:78886] [Bug #13078]
nobu (Nobuyoshi Nakada)
03:11 AM Bug #13078: with Integer a and b, a.fdiv(b) sometimes inaccurate than Rational(a, b).to_f
I thought the reduction would be slower, but actually not significant.
```
$ ruby -rbenchmark -e 'a = 3; b = -0x20_0000_0000_0001; n=10_000_000; Benchmark.bm(13) {|x|x.report("Integer#fdiv"){n.times{a.fdiv(b)}}; x.report("Rational#to...
nobu (Nobuyoshi Nakada)
03:00 AM Bug #13078: with Integer a and b, a.fdiv(b) sometimes inaccurate than Rational(a, b).to_f
The accuracy of `Rational(a, b).to_f` seems to be due to reduction of fraction.
How about using `Rational` object, or its internal function `f_gcd()` and `f_idiv()`?
wanabe (_ wanabe)
04:40 AM Revision b1c68cfa (git): * 2016-12-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:40 AM Revision 1778ed59 (git): numeric.c: reduce fdiv
* numeric.c (rb_int_fdiv_double): reduce first for more precise
result. [ruby-core:78886] [Bug #13078]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:12 AM Bug #13080: [mingw regression] broken openssl extension in 2.4.0p0
The bad news is that my custom openssl 1.0.2j library and the ones built by the rubyinstaller project (32 and 64bit) both have pkg-config info like the following. Openssl 1.1.0c (32 and 64bit) built with mingw64-6.2.0 also have the `-lgd... jonforums (Jon Forums)
02:30 AM Bug #13080: [mingw regression] broken openssl extension in 2.4.0p0
Ok. I'll play with my openssl build script https://github.com/jonforums/buildlets/blob/master/build_openssl.ps1#L62 to see if I make it work.
Strange that the same openssl 1.0.2j library works fine with 2.3.3 but not 2.4.0.
jonforums (Jon Forums)
02:10 AM Bug #13080: [mingw regression] broken openssl extension in 2.4.0p0
From https://bugs.ruby-lang.org/attachments/6316/bad_mkmf_2.4.log#L229, your ssl library has references to GDI32.dll. I'm not sure why rand_win.c needs it though.
Probably you need `--with-openssl-config` option for a proper pkg-config ...
nobu (Nobuyoshi Nakada)
03:03 AM Feature #13077: [PATCH] introduce String#fstring method
nobu@ruby-lang.org wrote:
> Why not `String#-@`?
As in the following? (short patch, full below)
~~~diff
--- a/string.c
+++ b/string.c
@@ -10002,7 +9989,7 @@ Init_String(void)
rb_define_method(rb_cString, "scrub!", str_sc...
normalperson (Eric Wong)
12:08 AM Feature #13077: [PATCH] introduce String#fstring method
Why not `String#-@`? nobu (Nobuyoshi Nakada)

12/27/2016

11:41 PM Feature #13077: [PATCH] introduce String#fstring method
eregontp@gmail.com wrote:
> So this is essentially like Java's String.intern()?
>
> There is already String#intern in Ruby but it returns a Symbol.
> Depending on the use-case, I guess this might be less convenient than getting a d...
normalperson (Eric Wong)
10:15 PM Feature #13077: [PATCH] introduce String#fstring method
So this is essentially like Java's String.intern()?
There is already String#intern in Ruby but it returns a Symbol.
Depending on the use-case, I guess this might be less convenient than getting a de-duplicated String.
String#dedup o...
Eregon (Benoit Daloze)
06:41 PM Feature #13077: [PATCH] introduce String#fstring method
shevegen@gmail.com wrote:
> The only comment I have is that the name .fstring() is a bit strange. On first read, I
> assumed that it was short for "format_string" like % on class String or sprintf.

Yeah, the name isn't final, of c...
normalperson (Eric Wong)
03:54 PM Feature #13077: [PATCH] introduce String#fstring method
I have no particular pro or con opinion on the proposal in itself so feel free to ignore this.
The only comment I have is that the name .fstring() is a bit strange. On first read, I
assumed that it was short for "format_string" like...
shevegen (Robert A. Heiler)
01:50 AM Feature #13077 (Closed): [PATCH] introduce String#fstring method
introduce String#fstring method
This exposes the rb_fstring internal function to return a
deduped and frozen string. This is useful for writing all sorts
of record processing key values maybe stored, but certain keys
and values ar...
normalperson (Eric Wong)
07:50 PM Bug #13080 (Closed): [mingw regression] broken openssl extension in 2.4.0p0
When building using slightly modified rubyinstaller build recipes and a msys2/mingw64-6.2.0 (32bit) toolchain, the build fails to create the openssl extension when using openssl 1.0.2j or 1.1.0c.
~~~
$ ruby --version
ruby 2.4.0p0 (2...
jonforums (Jon Forums)
04:18 PM Bug #12970: == Equality of recursive sets fails
Piotr Szmielew wrote:
> In this particular example even manually rehashing internal hash doesn't quite work...
Right, looks like hash lookup (internally `st_lookup`) doesn't work with recursive values :-(
> ...
Comparing hashes is...
marcandre (Marc-Andre Lafortune)
08:34 AM Bug #12970: == Equality of recursive sets fails
In this particular example even manually rehashing internal hash doesn't quite work...
~~~ ruby
s = Set.new
t = Set.new
s << [s]
t << [t]
s == t # => false
s.instance_variable_get(:@hash).rehash
t.instance_variable_get(:@hash)....
Esse (Piotr Szmielew)
01:49 AM Bug #12970: == Equality of recursive sets fails
That's not going to cut it... There are many other counter examples....
```
s = Set.new
t = Set.new
s << [s]
t << [t]
s == t # => false
```
or similarly:
```
s = Set.new
t = Set.new
a = Set.new([s])
b = Set.new([t])
s...
marcandre (Marc-Andre Lafortune)
03:55 PM Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
\o/ shevegen (Robert A. Heiler)
03:01 PM Bug #13043: Exception#cause can become recursive/infinite
... but reverted in `ruby_2_2` because it causes SEGV. usa (Usaku NAKAMURA)
11:39 AM Bug #13043: Exception#cause can become recursive/infinite
ruby_2_2 r57222 merged revision(s) 57137. usa (Usaku NAKAMURA)
02:59 PM Revision 543a8b5e (git): revert r57222 because of SEGV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
11:44 AM Bug #13066: 2.4.0-rc1, VC14, Segmentation fault on RSS::TestRSS10Core#test_to_xml
ruby_2_2 r57225 merged revision(s) 57172. usa (Usaku NAKAMURA)
11:44 AM Revision 7015fcf9 (git): merge revision(s) 57172: [Backport #13066]
time.c: fix type of usec2subsecx
* time.c (usec2subsecx): fix return type, which is a numeric
object but not a long int. [ruby-dev:49912] [Bug #13066]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57225 b2dd0...
U.Nakamura
11:43 AM Bug #13076 (Closed): SEGV in io.c when reading closed stream in Thread
Applied in changeset r57224.
----------
io.c: fix race between read and close
* io.c (io_fillbuf): fix race between read and close and bail out
in the case the IO gets closed before the reading thread achieve
the lock. [ruby-core:...
nobu (Nobuyoshi Nakada)
09:09 AM Bug #13076 (Assigned): SEGV in io.c when reading closed stream in Thread
After r57199, `IO#getch` (in `io/console`) was broken, at least on Windows.
It required two key types to get the result.
So, I reverted r57199.
Nobu, please check again.
usa (Usaku NAKAMURA)
11:43 AM Revision 09ae127b (git): io.c: fix race between read and close
* io.c (io_fillbuf): fix race between read and close and bail out
in the case the IO gets closed before the reading thread achieve
the lock. [ruby-core:78845] [Bug #13076]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57224 b2d...
nobu (Nobuyoshi Nakada)
11:43 AM Bug #12910: TestFileUtils#test_chown_R_force might get stuck when process has no supplementary groups
ruby_2_2 r57223 merged revision(s) 56884,56892. usa (Usaku NAKAMURA)
11:43 AM Revision 244096b9 (git): merge revision(s) 56884,56892: [Backport #12910]
test_fileutils.rb: Use primary group too
* test/fileutils/test_fileutils.rb (TestFileUtils#setup): Use
primary group as well as supplementary groups. based on the
patch by Vit Ondruch at [ruby-core:78053]. [Bug #12910]
...
U.Nakamura
11:39 AM Revision 9d693b18 (git): merge revision(s) 57137: [Backport #13043]
eval.c: fix circular cause
* eval.c (exc_setup_cause): always set cause of cause to get rid
of circular references. [ruby-core:78688] [Bug #13043]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57222 b2dd03c8-...
U.Nakamura
11:36 AM Bug #12071 (Feedback): Gem installation fails with 2.3.0 on Cygwin
Is this problem really present in ruby 2.2 ?
I've never backported `default_exclude_exts` feature.
usa (Usaku NAKAMURA)
11:14 AM Bug #13054: MatchData segfaults if RMatch::regexp is nil
ruby_2_2 r57221 merged revision(s) 57123. usa (Usaku NAKAMURA)
11:14 AM Revision f82b0a39 (git): merge revision(s) 57123: [Backport #13054]
re.c: consider the case of RMatch::regexp is nil
Follow r49675, r57098 and r57110. Don't assume RMatch::regexp always
contains a valid Regexp instance; it will be Qnil if the MatchData is
created by rb_backref_se...
U.Nakamura
11:03 AM Bug #13052: Array#combination segfaults if the Array is modified during iteration
ruby_2_2 r57220 merged revision(s) 57119. usa (Usaku NAKAMURA)
11:03 AM Revision 33b36456 (git): merge revision(s) 57119: [Backport #13052]
array.c: check array length every time after yielding
Since the Array may be modified during rb_yield(), the length before
invoking the block can't be trusted. Fix possible out-of-bounds read in
Array#combination...
U.Nakamura
10:58 AM Bug #13049: Backport r57108 (sprintf.c: fix width underflow)
ruby_2_2 r57219 merged revision(s) 57108. usa (Usaku NAKAMURA)
10:58 AM Revision 1bd82de9 (git): merge revision(s) 57108: [Backport #13049]
sprintf.c: fix width underflow
* sprintf.c (rb_str_format): fix memory corruption by width
underflow. https://github.com/mruby/mruby/issues/3347
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57219 b2dd03c8-39...
U.Nakamura
10:55 AM Bug #13042: gsub segfaults when the pattern is a matching string and the replacement has an unmatched named capture
ruby_2_2 r57218 merged revision(s) 57098. usa (Usaku NAKAMURA)
10:55 AM Revision ea83d7fd (git): merge revision(s) 57098: [Backport #13042]
re.c: non-regexp name reference
* re.c (rb_reg_regsub): other than regexp has no name references.
[ruby-core:78686] [Bug #13042]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57218 b2dd03c8-39d4-4d8f-98ff-823f...
U.Nakamura
10:52 AM Bug #13034: rb_enc_ascget() does not handle 'needmore' error from rb_enc_procise_mbclen()
ruby_2_2 r57217 merged revision(s) 57078. usa (Usaku NAKAMURA)
10:52 AM Revision 74556505 (git): merge revision(s) 57078: [Backport #13034]
encoding.c: handle needmore error from rb_enc_precise_mbclen()
rb_enc_ascget() erroneously reports success even if the given byte
sequence is incomplete, for non-ASCII compatible encoding strings.
rb_enc_precise...
U.Nakamura
10:49 AM Bug #13014: Adding clang volatile fixes from FreeBSD and NetBSD
ruby_2_2 r57216 merged revision(s) 57020,57021. usa (Usaku NAKAMURA)
10:49 AM Revision 04d79490 (git): merge revision(s) 57020,57021: [Backport #13014]
Add clang volatile fixes from FreeBSD and NetBSD.
Use volatile instead of optnone to avoid optimization which causes
segmentation faults.
Patch by Dimitry Andric. [ruby-core:78531] [Bug #13014]
git-svn-id: svn+...
U.Nakamura
10:41 AM Bug #13004: rb_get_kwargs はバグってないでしょうか?
ruby_2_2 r57215 merged revision(s) 56980,56981. usa (Usaku NAKAMURA)
10:41 AM Revision ed8c211a (git): merge revision(s) 56980,56981: [Backport #13004]
extension.rdoc: fix rb_get_kwargs [ci skip]
* doc/extension.rdoc: [DOC] optional keyword arguments are
defaulted to Qundef. ignored keys are kept in the hash but a
new Hash is not created. [ruby-dev:49893] [Bug #13004]
gi...
U.Nakamura
10:35 AM Bug #12988: Calling `inspect` sometimes causes a segv
ruby_2_2 r57214 merged revision(s) 56938. usa (Usaku NAKAMURA)
10:35 AM Revision 3aed194a (git): merge revision(s) 56938: [Backport #12988]
Stop reading past the end of `ivptr` array
If you have code like this:
```ruby
class A
def initialize
@a = nil
@b = nil
@c = nil
@d = nil
@e = nil
end
end
x = A.new
...
U.Nakamura
10:32 AM Bug #12991: Documentation of Thread.abort_on_exception is wrong: it raises error again in main thread
ruby_2_2 r57213 merged revision(s) 56928. usa (Usaku NAKAMURA)
10:32 AM Revision 244885b6 (git): merge revision(s) 56928: [Backport #12991]
thread.c: fix doc of abort_on_exception [ci skip]
* thread.c (rb_thread_s_abort_exc, rb_thread_s_abort_exc_set):
[DOC] the raised exception will be re-raised in the main thread,
and then follows the ordinary exception sequen...
U.Nakamura
10:30 AM Bug #12983: compatibility_version and current_version on Darwin are reversed
ruby_2_2 r57212 merged revision(s) 56905. usa (Usaku NAKAMURA)
10:30 AM Revision e44b8733 (git): merge revision(s) 56905: [Backport #12983]
Reverse compatibility_version and current_version for Darwin
The `compatibility_version` should have an API version and the
`current_version` should have a program version of Ruby, but they have
been reversed and...
U.Nakamura
10:11 AM Bug #12974: Marshal.dump dumps core.
ruby_2_2 r57211 merged revision(s) 56894. usa (Usaku NAKAMURA)
10:11 AM Revision 88c68a89 (git): merge revision(s) 56894: [Backport #12974]
marshal.c: fix infinite recursion
* marshal.c (check_userdump_arg): marshal_dump should not return
an instance of the same class, otherwise it causes infinite
recursion. [ruby-core:78289] [Bug #12974]
git-svn-id: svn+ssh:/...
U.Nakamura
09:55 AM Bug #13079 (Closed): linked list corruption (probable race condition)
Hi, I am developing a binding for an external library and I encountered a problem with the ruby interpreter.
The library is made to run with threads and it randomly crashes the ruby interpreter which looks like a race codition with so...
fabianfrz (Fabian Franz)
09:34 AM Bug #12860: Splatting an argument does not obey left-to-right execution order
ruby_2_2 r57210 merged revision(s) 56469. usa (Usaku NAKAMURA)
09:34 AM Revision a078bbcc (git): merge revision(s) 56469: [Backport #12860]
* compile.c (setup_args): duplicate splatting array if more
arguments present to obey left-to-right execution order.
[ruby-core:77701] [Bug# 12860]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57210...
U.Nakamura
09:32 AM Revision 16d03ff2 (git): * ChangeLog: for r57207 and r57208.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
09:28 AM Bug #12956: require a native library that yields the error 'incompatiable library version' shuts down the interpreter fatally
ruby_2_2 r57208 merged revision(s) 56832. usa (Usaku NAKAMURA)
09:28 AM Revision 2706ffc7 (git): merge revision(s) 56832: [Backport #12956]
dln.c: raise LoadError
* dln.c (dln_load): raise LoadError instead of fatal error on
recent OSX, dlclose seems fixed in El Capitan or later.
[ruby-core:78200] [Bug #12956]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branche...
U.Nakamura
09:17 AM Bug #12785: misc/test_ruby_mode.rb failed with emacs 25.1.1
ruby_2_2 r57207 merged revision(s) 56224. usa (Usaku NAKAMURA)
09:17 AM Revision 0dddf3cb (git): merge revision(s) 56224: [Backport #12785]
* test/misc/test_ruby_mode.rb (assert_indent): since write-region
in Emacs 25.1 no longer displays the "Wrote file" message, shows
the explicit message to check if successfully finished.
[ruby-core:77355] [B...
U.Nakamura
09:07 AM Revision f2502cec (git): revert a part of r57199
* io.c (io_fillbuf): revert a part of r57199 because it broke IO#getch.
see also [Bug #13076]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:52 AM Revision 97e18cd8 (git): cont.c: change fiber stack size doc [ci skip]
It's many years since we had tiny 4KB fiber stacks :<
point to the manpage instead for current, larger sizes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
07:39 AM Revision a757aa14 (git): io.c: use io_close to close ARGF
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:18 AM Revision 2fbc63b8 (git): io.c: ARGF fd leak
* io.c (argf_next_argv): fix leak of fd after breaking in #each
method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:10 AM Revision bc855ef1 (git): thread.c: fix race between read and close
* thread.c (rb_thread_fd_close): wait until all threads using the
fd finish the operation, not to free the buffer in use.
[ruby-core:78845] [Bug #13076]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57202 b2dd03c8-39d4-4d8f-98ff...
nobu (Nobuyoshi Nakada)
06:36 AM Bug #13078 (Closed): with Integer a and b, a.fdiv(b) sometimes inaccurate than Rational(a, b).to_f
For example,
~~~
a = 3
b = 0x20_0000_0000_0001
p a.fdiv(b)
p Rational(a, b).to_f
#=>
3.3306690738754696e-16
3.330669073875469e-16
~~~
I'm hacking to solve this problem, see diff view.
https://github.com/ruby/ruby/compare/t...
metanest (Makoto Kishimoto)
02:03 AM Bug #13064: Inconsistent behavior with `next` inside `begin`/`end` across different implementations.
It's 4, I guess. nobu (Nobuyoshi Nakada)
12:51 AM Bug #13064: Inconsistent behavior with `next` inside `begin`/`end` across different implementations.
Yukihiro Matsumoto wrote:
> It's a REPL implementation dependent (irb uses eval() inside). Try comparing them using file execution.
I did, the samples I posted contain both script execution (`ruby -e`) and IRb interactive sessions. T...
jwmittag (Jörg W Mittag)
01:52 AM Feature #10641 (Closed): Introduce Fixnum#finite? and Bignum#finite?
Shyouhei Urabe wrote:
> Yes it is. Closing.
Second try.
duerst (Martin Dürst)
12:17 AM Feature #10641: Introduce Fixnum#finite? and Bignum#finite?
Yes it is. Closing. shyouhei (Shyouhei Urabe)
01:40 AM Revision 20659e00 (git): * 2016-12-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:40 AM Revision b7d1a68f (git): Ignored extracted gem files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)

12/26/2016

10:33 PM Feature #10641: Introduce Fixnum#finite? and Bignum#finite?
It looks, feature request can be closed (implemented in #12039) prijutme4ty (Ilya Vorontsov)
09:49 PM Misc #13057: BasicObject#__send__ documentation contains references to #send
I see; but **`BasicObject`** doesn't have **`#send`** method and thus shouldn't reference it in docs, should it? hedgesky (Anton Chuchkalov)
02:14 PM Bug #13076 (Closed): SEGV in io.c when reading closed stream in Thread
Applied in changeset r57199.
----------
io.c: fix race between read and close
* io.c (io_fillbuf): fix race between read and close, in the case
the IO gets closed before the reading thread achieve the lock.
[ruby-core:78845] [Bug #...
nobu (Nobuyoshi Nakada)
01:23 PM Bug #13076 (Closed): SEGV in io.c when reading closed stream in Thread
System: CentOS Linux release 7.3.1611 (Core)
Kernel: 3.10.0-514.2.2.el7.x86_64
GCC: gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
The following script crushes with ruby 2.4.0, 2.3.3 and 2.2.6.
~~~ ruby
100.times do |i|
...
masa16 (Masahiro Tanaka)
02:14 PM Revision 08ca33e9 (git): io.c: fix race between read and close
* io.c (io_fillbuf): fix race between read and close, in the case
the IO gets closed before the reading thread achieve the lock.
[ruby-core:78845] [Bug #13076]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57199 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
01:31 PM Bug #13073 (Closed): Hash Key => Proc parse failure
Applied in changeset r57198.
----------
parse.y: preserve cmdarg stack
* parse.y (do_body): preserve cmdarg stack around do/end block.
[ruby-core:78837] [Bug #13073]
nobu (Nobuyoshi Nakada)
03:39 AM Bug #13073: Hash Key => Proc parse failure
A Hash that stores multiple Proc literals causes syntax failures when passed as a method argument. Specifically, this only appears to happen on the second Proc literal in a Hash, not the first.
Minimal test case:
```ruby
def foo a...
myrrlyn (Alexander Payne)
03:36 AM Bug #13073 (Closed): Hash Key => Proc parse failure
A Hash that stores multiple Proc literals causes syntax failures when passed as a method argument. Specifically, this only appears to happen on the second Proc literal in a Hash, not the first.
Minimal test case:
```ruby
def foo a...
myrrlyn (Alexander Payne)
01:31 PM Revision b4aa884f (git): parse.y: preserve cmdarg stack
* parse.y (do_body): preserve cmdarg stack around do/end block.
[ruby-core:78837] [Bug #13073]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:00 PM Revision a5c39102 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:00 PM Revision ce35f428 (git): Add NEWS for Ruby 2.5.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:00 PM Revision 94876280 (git): Move from NEWS to doc/NEWS-2.4.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:00 AM Bug #13074 (Closed): When executing instance_exec with symbol.to_proc, it ignores first argument.
Applied in changeset r57194.
----------
vm_eval.c: Symbol#to_proc and instance_exec
* vm_eval.c (yield_under): should evaluate the proc on the first
argument. [ruby-core:78839] [Bug #13074]
nobu (Nobuyoshi Nakada)
04:59 AM Bug #13074 (Closed): When executing instance_exec with symbol.to_proc, it ignores first argument.
Is this intentional?
```
# Ruby 2.3.3
« instance_exec(1) { |i| i.itself }
=> 1
« instance_exec(1, &:itself)
=> 1
# Ruby 2.4.0
« instance_exec(1) { |i| i.itself }
=> 1
« instance_exec(1, &:itself)
=> main
```
alpaca-tc (Hiroyuki Ishii)
10:00 AM Revision af2670f1 (git): vm_eval.c: Symbol#to_proc and instance_exec
* vm_eval.c (yield_under): should evaluate the proc on the first
argument. [ruby-core:78839] [Bug #13074]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:00 AM Revision bb7b5a06 (git): test/ruby/test_symbol.rb: use begin;end; hack
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:00 AM Bug #13069: mkmf: ignore linker warnings on OpenBSD
Nobuyoshi Nakada wrote:
> Seems `sprintf` nor `vsprintf` are used on OpenBSD.
> ...
Here's a minimal example causing the errors to be outputted while
dynamically linking against ruby:
~~~
$ env "PATH=${DESTDIR}/usr/local/bin:${PAT...
Anonymous
02:56 AM Bug #13069 (Feedback): mkmf: ignore linker warnings on OpenBSD
Seems `sprintf` nor `vsprintf` are used on OpenBSD.
Those warnings are always emitted regardless use of the functions?
nobu (Nobuyoshi Nakada)
09:32 AM Bug #12705 (Closed): yielding args to a lambda uses block/proc rather than lambda/method semantics
Applied in changeset r57192.
----------
[Bug #12705]
nobu (Nobuyoshi Nakada)
09:32 AM Revision 88d667ee (git): [Bug #12705]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:28 AM Revision 08cf4cec (git): get rid of sprintf
* missing/strerror.c (strerror): use snprintf instead of sprintf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:28 AM Revision 6d8574ad (git): get rid of strcat
* regerror.c (onig_vsnprintf_with_pattern): use memcpy with the
known length instead of strcat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:28 AM Revision 79c50a77 (git): get rid of strcpy
* addr2line.c (follow_debuglink): insert global_debug_dir by using
memmove instead of copying to temporary buffer.
* dln.c (dln_load): use memcpy with the known length instead of
strcpy.
* gc.c (rb_gc_unprotect_logging): use strdup...
nobu (Nobuyoshi Nakada)
09:18 AM Bug #12997 (Assigned): Out-of-bounds read in regcomp.c
naruse (Yui NARUSE)
08:01 AM Revision d0035dbd (git): Makefile.sub: refine configuration check
* win32/Makefile.sub (config.status): check configured target by
reading from config.status, and remove version dependent values
from config.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57188 b2dd03c8-39d4-4d8f-98ff-823fe69b...
nobu (Nobuyoshi Nakada)
06:32 AM Bug #13075 (Closed): String#unpack with block / String#unpack1 exposes uninitialized memory
Applied in changeset r57187.
----------
pack.c: avoid returning uninitialized String
Fix unpacking with 'b', 'B', 'h' and 'H' format. Do not return an
uninitialized String to Ruby before filling the content bytes.
Fixes r11175 ("pack.c...
Anonymous
06:08 AM Bug #13075 (Closed): String#unpack with block / String#unpack1 exposes uninitialized memory
A problematic code looks like (in pack.c, pack_unpack_internal()):
~~~c
case 'b':
{
VALUE bitstr;
char *t;
int bits;
long i;
...
rhenium (Kazuki Yamaguchi)
06:32 AM Revision b65b4186 (git): pack.c: avoid returning uninitialized String
Fix unpacking with 'b', 'B', 'h' and 'H' format. Do not return an
uninitialized String to Ruby before filling the content bytes.
Fixes r11175 ("pack.c (pack_unpack): execute block if given with
unpacked value instead of creating an array...
rhenium (Kazuki Yamaguchi)
05:07 AM Revision 256d8c9e (git): Makefile.sub: fix dependency of RUBYDEF
* win32/Makefile.sub (RUBYDEF): fix dependency, win32/mkexports.rb
requires rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:26 AM Bug #13071: bug in the Ruby interpreter or extension libraries
From the backtrace you are failing to load mysql.so. I bet you mixed runtime library or something. shyouhei (Shyouhei Urabe)

12/25/2016

11:56 PM Revision 10bd48e4 (git): string.c: CRLF in paragraph mode
* string.c (rb_str_enumerate_lines): allow CRLF to separate
paragraphs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:50 PM Revision 091f99b4 (git): string.c: consistent paragraph mode with IO
* string.c (rb_str_enumerate_lines): in paragraph mode, do not
include newlines which separate paragraphs, so that it will be
consistent with IO#each_line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57184 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
05:58 PM Bug #13069: mkmf: ignore linker warnings on OpenBSD
Personally, I think it would be better to just check the return code and ignore the content of the log file. Are there environments that ruby wants to support where compiling returns success when it actually fails? The supplied patch w... jeremyevans0 (Jeremy Evans)
09:06 AM Bug #13069 (Closed): mkmf: ignore linker warnings on OpenBSD
Installing gems with native extensions fails on my OpenBSD machine since
the linker emits warnings causing stderr to not be empty as expected.
The warnings are security recommendations that does not affect the
linked binary. See examp...
Anonymous
04:53 PM Revision 110bfb71 (git): include/ruby/version.h: Update API version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matz (Yukihiro Matsumoto)
04:35 PM Revision 43eb6626 (git): * 2016-12-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:35 PM Revision 1a47fcad (git): version.h (RUBY_VERSION): 2.5.0 development has started.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matz (Yukihiro Matsumoto)
02:32 PM Revision 9e1a9858 (git): memory_status.c: support old Mac OS
* ext/-test-/memory_status/memory_status.c (read_status): use
TASK_BASIC_INFO instead of MACH_TASK_BASIC_INFO on old Mac OS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:04 PM Misc #13072 (Closed): Current state of date standard library
The facts that I've been able to gather (not supported by links, so please forgive me if I am misquoting/misunderstanding):
* date library was initially developed and maintained by Tadayoshi Funaba, who was the "single point of truth"...
zverok (Victor Shepelev)
12:37 PM Bug #13068 (Closed): VC6 compilation failures
naruse (Yui NARUSE)
12:52 AM Bug #13068 (Closed): VC6 compilation failures
2.4.0 fails to compile on VC6.
Please backport r57173..r57175.
nobu (Nobuyoshi Nakada)
12:17 PM Bug #13071 (Closed): bug in the Ruby interpreter or extension libraries

c:\Users\Burkan Beyli\.AAA Projects\Beyven\BEYRUBY\beypilot\kobiks>bundle exec rake db:migrate > rubybug
c:/row/Ruby200/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/mysql2-0.3.16/mysql2/mysql2.so: [BUG] Segmentation fault
ruby ...
burkanbeyli (Burkan Beyli)
11:59 AM Bug #13070 (Third Party's Issue): Parsing JSON with `quirks_mode: false` parses as if it is `true` and does not warn me.
Can you request it to [upstream repository](https://github.com/flori/json) ? hsbt (Hiroshi SHIBATA)
11:31 AM Bug #13070 (Third Party's Issue): Parsing JSON with `quirks_mode: false` parses as if it is `true` and does not warn me.
Previously you could parse toplevel strings in JSON by setting `quirks_mode` to `true`
```sh
$ ruby -rjson -v -e 'p JSON.parse JSON.dump("a"), quirks_mode: true'
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
"a"
```...
josh.cheek (Josh Cheek)
08:47 AM Revision c6eb59c4 (git): bignum.c: precise fdiv
* bignum.c (big_fdiv): more precise calculation. [ruby-dev:49915]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:42 AM Revision 6335fc6f (git): bignum.c (DBL_BIGDIG): make enum
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:21 AM Bug #12981: Date.parse raises an Argument error under a specific condition
I see a similar inconsistency in the `Date._parse` method. Everything works fine as expected as long as the `/` delimiter is used.
I think it has something to do with `_parse` being able to parse strings with delimiter and one without i...
alfiemax (Alfred Dominic)
05:58 AM Revision f797b156 (git): * 2016-12-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:58 AM Revision 49f38abe (git): .gdbinit: refine rp
* .gdbinit (rp): refine output of T_STRUCT and T_BIGNUM to show
all elements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:22 AM Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
It affects `case`/`when` clause too, and breaks optparse and rubygems at least.
```diff
diff --git i/lib/optparse.rb w/lib/optparse.rb
index afeff80740..216dd38732 100644
--- i/lib/optparse.rb
+++ w/lib/optparse.rb
@@ -394,9 +394...
nobu (Nobuyoshi Nakada)
12:17 AM Bug #13062: 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
In attachment you will find patch for this issue.
This patch fixes issue with String#to_d method which was inconsistent with other to_d methods (String one returned error, while other simply returns 0).
Also, there tests added for ...
Esse (Piotr Szmielew)

12/24/2016

05:08 PM Feature #13067 (Closed): TrueClass,FalseClass to provide `===` to match truthy/falsy values.
I propose to make `TrueClass`, `FalseClass` to provide `===` method to match truthy values (`TrueClass`), and falsy values (`FalseClass`), so that we can use true and false for case pattern matching. And we can pick truthy values using ... matz (Yukihiro Matsumoto)
01:22 PM Revision c56182a0 (git): regint.h: version for secure functions
* regint.h (xvsnprintf): secure version functions are not
supported on old VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:21 PM Revision 9a464db8 (git): hash.c: split long long literals
* hash.c (prime1, prime2): split long long literals for platforms
where LL suffix is not supported, e.g., VC6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:19 PM Revision e53e9860 (git): compile.c: constify
* compile.c (method_for_self): constify an argument of build
function for VC6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:21 PM Bug #13066 (Closed): 2.4.0-rc1, VC14, Segmentation fault on RSS::TestRSS10Core#test_to_xml
Applied in changeset r57172.
----------
time.c: fix type of usec2subsecx
* time.c (usec2subsecx): fix return type, which is a numeric
object but not a long int. [ruby-dev:49912] [Bug #13066]
nobu (Nobuyoshi Nakada)
11:28 AM Bug #13066: 2.4.0-rc1, VC14, Segmentation fault on RSS::TestRSS10Core#test_to_xml
I tried test-all with time.c which has debug code. Error messages are attached.
I did followings (step 1--8 is same as I wrote above):

9) update time.c to r57157. Other files are not updated.
10) do test-all repeatedly, and I got s...
Anonymous
03:58 AM Bug #13066 (Closed): 2.4.0-rc1, VC14, Segmentation fault on RSS::TestRSS10Core#test_to_xml
I read Mr. Nakada's tweet (https://twitter.com/n0kada/status/811156759611965441), so I tried and got segmentation fault. Please see attached file.
What I did was:
1. extract ruby-2.4.0-rc1.tar.xz
2. apply r57079 (fix link error with...
Anonymous
12:21 PM Revision 44a4d7b0 (git): time.c: fix type of usec2subsecx
* time.c (usec2subsecx): fix return type, which is a numeric
object but not a long int. [ruby-dev:49912] [Bug #13066]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:19 PM Revision 4e41d5de (git): time.c: remove debug code
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:56 AM Revision 65a884eb (git): time.c: fix typo in value_insane_p
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:05 AM Bug #13064 (Feedback): Inconsistent behavior with `next` inside `begin`/`end` across different implementations.
It's a REPL implementation dependent (irb uses eval() inside). Try comparing them using file execution.
Matz.
matz (Yukihiro Matsumoto)
09:22 AM Revision e4aac80a (git): test/unit.rb: restore parallel option
* test/lib/test/unit.rb (_run_parallel): restore parallel option
after retrying for --repeat-count option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:02 AM Feature #12979: Avoid exception for #dup on Integer (and similar cases)
Mike Vastola wrote:
> Sorry.. I'm not used to Redmine and I was confused because there was no conclusion to the discussion about the **`ArgumentError`**.
There was a conclusion at https://bugs.ruby-lang.org/issues/12979#note-7.
>...
duerst (Martin Dürst)
05:25 AM Feature #12979: Avoid exception for #dup on Integer (and similar cases)
Sorry.. I'm not used to Redmine and I was confused because there was no conclusion to the discussion about the **`ArgumentError`**.
I understand that Casper's request should be a separate issue (I'll leave him to submit that since I ...
MikeVastola (Mike Vastola)
04:13 AM Feature #12979: Avoid exception for #dup on Integer (and similar cases)
Mike Vastola wrote:
> So, looking at this more closely, I'm beginning to think this issue was closed in error.
The original issue has indeed been fixed, and so 'closed' is correct:
```
$ ruby -v
ruby 2.4.0dev (2016-12-24 trunk 5...
duerst (Martin Dürst)
03:23 AM Bug #13065 (Rejected): crash on rails server start
You mixed Ruby 2.0(system) and Ruby 2.3(rvm). hsbt (Hiroshi SHIBATA)
12:51 AM Revision 52acc428 (git): test/unit.rb: --subprocess-timeout-scale option
* test/lib/envutil.rb (EnvUtil#invoke_ruby): add subprocess
timeout scaling factor.
* test/lib/test/unit.rb (Test::Unit::SubprocessOption): add
--subprocess-timeout-scale option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57...
nobu (Nobuyoshi Nakada)
12:50 AM Revision 642b3a26 (git): test/unit.rb: --repeat-count option
* test/lib/test/unit.rb (Test::Unit::RepeatOption): --repeat-count
option to repeat COUNT times while success.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom