Project

General

Profile

Activity

From 11/12/2016 to 11/18/2016

11/18/2016

11:53 PM Bug #12955 (Third Party's Issue): BigDecimal::INFINITY and BigDecimal::NAN to_json and as_json should error out similar to Float::INFINITY and Float::NAN
Please report it to the [upstream](https://github.com/flori/json). nobu (Nobuyoshi Nakada)
03:31 PM Bug #12955 (Third Party's Issue): BigDecimal::INFINITY and BigDecimal::NAN to_json and as_json should error out similar to Float::INFINITY and Float::NAN
Currently, `Float::INFINITY` and `Float::NAN` error out when we try to convert them into JSON representation using `as_json` or `to_json` based on the following code from /ruby/ext/json/generator.c
~~~ c
if (!allow_nan) {
...
cha1tanya (Prathamesh Sonpatki)
09:53 PM Bug #12958: Breaking change in how `#round` works
Thank you for the links. While I agree with the reasoning in #12438, I believe changing the default behavior is dangerous in a minor version.
The downside of changing the default behavior is that now applications using `round` without...
rafaelfranca (Rafael França)
08:43 PM Bug #12958: Breaking change in how `#round` works
This is an intended change, see #12548 and
https://github.com/ruby/ruby/blob/8d7c380216809ba5bd4a3eec41d7dda61f825ffa/NEWS#L73-L74
Eregon (Benoit Daloze)
08:32 PM Bug #12958 (Closed): Breaking change in how `#round` works
We noticed in the Rails test suite that there is a breaking change in how `#round` works between 2.3 and 2.4
https://github.com/rails/rails/pull/27091
Is that desirable?
I think it is may cause a lot of problem if the behavior o...
rafaelfranca (Rafael França)
07:09 PM Feature #12957 (Feedback): A more OO way to create lambda Procs
Currently to create a lambda Proc one has to use `lambda { }` or `-> { }`. For doing metaprogramming it would be nice to have a more OO way to generate them. Something like `LambdaProc.new`. That way one could write:
```ruby
class Me...
justcolin (Colin Fulton)
07:00 PM Feature #12901: Anonymous functions without scope lookup overhead
This would be a fantastic feature. I second the idea of something like `function { }`, `func { }`, `<> { }`, `--> { }`, `->> { }`, or `<-> { }`.
Would these behave like regular Procs or lambda Procs when it comes to return semantics a...
justcolin (Colin Fulton)
07:00 PM Bug #12956 (Closed): require a native library that yields the error 'incompatiable library version' shuts down the interpreter fatally
I would like to rescue from this in ruby-code.
Looking at the source in dln.c around line 1334 shows, that there is a special APPLE define with a comment that suggests, that properly cleaning up with dlclose crashes.
Disabling the spec...
gizmomogwai (Christian Köstlin)
03:46 PM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
I refactored the last version, prime_division9, to make it simpler, which
also makes it a litlle faster. I put the base_primes factors testing in a
new int_generator2 version, which DRYs out that process into one place.
init_genera...
jzakiya (Jabari Zakiya)
03:43 PM Bug #12950: irb: 'input-method.rb:151: [BUG] Segmentation fault' / 'malloc(): smallbin double linked list corrupted'
Nobuyoshi Nakada wrote:
> I can't reproduce it with recent 2.3 and libreadline6-6.3-8ubuntu8.
> ...
in a few days, yes
AYGHOR (pu pu)
03:41 PM Bug #12950: irb: 'input-method.rb:151: [BUG] Segmentation fault' / 'malloc(): smallbin double linked list corrupted'
ok i traced down the problem to this line on my .inputrc
```
set enable-keypad on
```
i couldnt reproduce the issue after commenting it out. tested about ten tiems commenting/uncommenting and it was consistent.
inputrc attached.
AYGHOR (pu pu)
02:32 AM Bug #12950 (Feedback): irb: 'input-method.rb:151: [BUG] Segmentation fault' / 'malloc(): smallbin double linked list corrupted'
I can't reproduce it with recent 2.3 and libreadline6-6.3-8ubuntu8.
Could you try 2.3.2?
nobu (Nobuyoshi Nakada)
03:31 PM Revision 8d7c3802 (git): * NEWS: Added entry for optimized Rational. [Feature #12484] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tad (Tadashi Saito)
03:17 PM Revision c151aa88 (git): complex.c: optimize f_negate
* complex.c (f_negate): optimize for special numeric types.
* complex.c (nucomp_expt): use rb_int_uminus instead of f_negate for
fixnum value.
* internal.h (rb_float_uminus, rb_rational_uminus): exported.
* numeric.c (rb_float_uminu...
Kenta Murata
03:04 PM Revision 63262273 (git): * 2016-11-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:04 PM Revision 608c44e0 (git): rational.c: optimization and refactoring
* rational.c (nurat_s_new_bang, nurat_canonicalize): small optimization
by using rb_int_uminus instead of f_negate.
* rational.c (nurat_canonicalize): add assertions for parameters.
* rational.c (f_negate, id_negate): removed.
git-s...
Kenta Murata
02:51 PM Bug #12954 (Closed): valgrind shows memory leaks
I found that ruby itself is leaking plenty memory
in ruby2.2, ruby2.1 and ruby1.9
The only version without such leakage was ruby1.8.
Steps To Reproduce on openSUSE Tumbleweed:
zypper mr -e repo-debug
zypper in --no-recommends valg...
bmwiedemann (Bernhard M. Wiedemann)
02:24 PM Revision a94b625f (git): complex.c: refactoring
* complex.c (nucomp_abs): use rb_math_hypot directly.
* complex.c (nucomp_arg): use rb_math_atan2 directly.
* complex.c (imp2, m_{atan2,hypot}_bang, m_hypot): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56827 b2dd03c8-3...
Kenta Murata
11:05 AM Revision d723bfc0 (git): objspace.c:: indent [ci skip]
* ext/objspace/objspace.c (memsize_of_m): adjust indent of comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yui-knk (Kaneko Yuichiro)
10:58 AM Revision 59b9f54f (git): * NEWS: Fix class name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yui-knk (Kaneko Yuichiro)
07:20 AM Bug #12951 (Third Party's Issue): JSON.parse allows invalid string escapes
It is a very delicate question if this is a bug. According to RFC7159 section 9 https://tools.ietf.org/html/rfc7159#section-9, a JSON parser is explicitly allowed to extend JSON. So this could perhaps be an extension made by the JSON p... shyouhei (Shyouhei Urabe)
04:42 AM Bug #12951 (Third Party's Issue): JSON.parse allows invalid string escapes
According to jq and jsonlint, the following JSON is invalid:
~~~
{"x":"\$"}
~~~
but JSON.parse will parse it without complaint:
~~~
irb(main):002:0> JSON.parse('{"x":"\$"}')
=> {"x"=>"$"}
~~~
mmb (Matthew Boedicker)
07:16 AM Feature #12953: (Float, Integer, Rational)#round(half: :down)
https://github.com/ruby/ruby/compare/trunk...nobu:feature/round-down nobu (Nobuyoshi Nakada)
07:02 AM Feature #12953 (Closed): (Float, Integer, Rational)#round(half: :down)
I learned that The Japanese Ministry of Health, Labor and Welfare requires that the insured burden amount of employment insurance be calculated in round half down mode. Details: http://www.mhlw.go.jp/topics/2005/04/tp0425-2.html
Give...
shyouhei (Shyouhei Urabe)
06:41 AM Bug #12952 (Closed): Incompatibility of a method signature between `Float#round` and `BigDecimal#round`
We can not call `BigDecimal("0.5").round(half: :up)`.
This prevents us from duck typing Float objects and BigDecimal objects.
```ruby
irb(main):001:0> require "bigdecimal"
=> true
irb(main):002:0> 0.5.round(half: :up)
=> 1
irb(m...
yui-knk (Kaneko Yuichiro)
06:29 AM Revision 81ec47ea (git): internal.h: round macros
* internal.h (ROUND_FUNC, ROUND_CALL): macros wrapping round
functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:34 AM Revision d9035a8f (git): * 2016-11-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:34 AM Revision 5bb84ec7 (git): extmk.rb: removed compiled? method [ci skip]
* ext/extmk.rb (compiled?): removed.
* ext/win32/extconf.rb: try to install libraries regardless
fiddle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

11/17/2016

09:38 PM Bug #12950: irb: 'input-method.rb:151: [BUG] Segmentation fault' / 'malloc(): smallbin double linked list corrupted'
Copy of actually i just got:
```
*** Error in `irb': malloc(): smallbin double linked list corrupted: 0x0000556762bac3d0 ***
```
on plain irb, no rails. log attached
AYGHOR (pu pu)
09:33 PM Bug #12950: irb: 'input-method.rb:151: [BUG] Segmentation fault' / 'malloc(): smallbin double linked list corrupted'
actually i just got:
```
*** Error in `/usr/bin/ruby': malloc(): smallbin double linked list corrupted: 0x0000560f0e10b090 ***
```
from just hitting CTRL+C a few tiems on rails console. could reproduce too, log attached.
AYGHOR (pu pu)
09:14 PM Bug #12950: irb: 'input-method.rb:151: [BUG] Segmentation fault' / 'malloc(): smallbin double linked list corrupted'
oh yea, my readline version: `readline-6.3.008` AYGHOR (pu pu)
08:50 PM Bug #12950 (Third Party's Issue): irb: 'input-method.rb:151: [BUG] Segmentation fault' / 'malloc(): smallbin double linked list corrupted'
i'm getting stuff liek this:
```
/usr/lib/ruby/2.3.0/irb/input-method.rb:151: [BUG] Segmentation fault at 0x00000000000000
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
```
and this:
```
*** Error in `/usr/bin/ruby': m...
AYGHOR (pu pu)
06:11 PM Bug #9822: Ruby doesn't respect system OpenSSL configuration
much needed patch, I often used gost-crypt wolfer (Sergey Fedosov)
01:05 PM Revision 53ca8de3 (git): Remove webhook notification to Travis CI [skip ci]
As travis-rubies now uses 3 Mac jobs to create archives for various OS
releases.
This is a bit wasteful if multiple builds pass in a short period.
Instead, Travis CI is now running a nightly build of ruby-head
(around 22:30 UTC...
hsbt (Hiroshi SHIBATA)
11:52 AM Revision d3d9903d (git): readline.c: str_subpos
* ext/readline/readline.c (str_subpos): make string instance only
if necessary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:50 AM Revision 998d1c6c (git): numeric.c: get rid of a compile error on mingw64
* numeric.c (rb_fix2str): typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:27 AM Bug #12949: Loading rbconfig.rb fails if it contains non-ASCII characters and -K is specified
ASCII-8BIT is suggested by naruse-san.
shugo (Shugo Maeda)
07:19 AM Bug #12949 (Closed): Loading rbconfig.rb fails if it contains non-ASCII characters and -K is specified
Applied in changeset r56817.
----------
mkconfig.rb: add a magic comment to rbconfig.rb
* tool/mkconfig.rb: add a magic comment to rbconfig.rb in case the command
line option -K is specified. [ruby-core:78181] [Bug #12949]
shugo (Shugo Maeda)
04:24 AM Bug #12949 (Closed): Loading rbconfig.rb fails if it contains non-ASCII characters and -K is specified
TestRubyOptions#test_kanji fails on icc-x64 chkbuild.
From http://rubyci.org/logs/rubyci.s3.amazonaws.com/icc-x64/ruby-trunk/log/20161117T010002Z.fail.html.gz:
```
1) Failure:
TestRubyOptions#test_kanji [/home/chkbuild/chkbuild...
shugo (Shugo Maeda)
07:19 AM Revision b53bebab (git): * 2016-11-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:19 AM Revision 56a3c923 (git): mkconfig.rb: add a magic comment to rbconfig.rb
* tool/mkconfig.rb: add a magic comment to rbconfig.rb in case the command
line option -K is specified. [ruby-core:78181] [Bug #12949]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
02:12 AM Feature #12919: Net::FTP does not have a default open_timeout
Attila Györffy wrote:
> I'm opening this issue for further discussion. In my honest opinion, a reasonable default (not nil) would be a good idea to have so that we can make sure processes won't hang.
I have the following concerns:
...
shugo (Shugo Maeda)

11/16/2016

11:33 PM Bug #12946 (Closed): net-http is breaking valid http headers like HTTP2-Settings
Tiago Cardoso wrote:
> I guess we can close this.
Done.
duerst (Martin Dürst)
09:51 PM Bug #12946: net-http is breaking valid http headers like HTTP2-Settings
You are right. I just tried with http://nghttp2.org, which supports upgrade-to-http2 http1 requests, and it worked well also with "Http2-Settings". I guess we can close this. chucke (Tiago Cardoso)
08:28 AM Bug #12946: net-http is breaking valid http headers like HTTP2-Settings
Tiago Cardoso wrote:
> It breaks because it sends the wrong-cased http header over the wire. From plaintext upgrade-to-http2:
> ...
No they won't. From [RFC 7231](https://tools.ietf.org/html/rfc7230#section-3.2) (i.e. HTTP/1.1):
> ...
phluid61 (Matthew Kerwin)
07:33 AM Bug #12946: net-http is breaking valid http headers like HTTP2-Settings
It breaks because it sends the wrong-cased http header over the wire. From plaintext upgrade-to-http2:
https://hpbn.co/http2/#upgrading-to-http2
If you tcpdump the sent payload from a net-http client, it is sending "Http2-Settings"...
chucke (Tiago Cardoso)
06:40 PM Bug #12943: Backport r56268 to Ruby 2.3
No problem! I wasn't sure about how to open backports, so I just created a ticket. :) tenderlovemaking (Aaron Patterson)
05:48 AM Bug #12943 (Closed): Backport r56268 to Ruby 2.3
Thank you for your report!
I'll check r56268 later.
I close this ticket but it's because we (stable maintainers) track closed tickets with Backport REQUIRED field. Please don't worry.
nagachika (Tomoyuki Chikanaga)
04:54 PM Feature #12928: Use socket conect_timeout in net stdlib for open_timeout
I got it. It is not simple to fix as I expected before. Thank you. xiewenwei (xie wenwei)
03:06 PM Feature #11665: Support nested functions for better code organization
Yukihiro Matsumoto wrote:
> But at least, the current behavior of nested method definition is useless. It should be made obsolete to open up the future possibility (I'd vote for warning).
~~~ ruby
# nested methods allow enforcing ...
zotherstupidguy (mohamed fouad)
02:41 PM Bug #12920: Strange NoMethodError in Time.now
ruby_2_3 r56816 merged revision(s) 56694,56698. nagachika (Tomoyuki Chikanaga)
02:30 PM Bug #12920: Strange NoMethodError in Time.now
OMG I've confirmed with the script in the description (prepend and using with Integer) and it cannot reproduce NoMethodError on 2.3.2. But it's because Time.now doesn't use Integer#+ but Fixnum#+.
I've confirmed https://bugs.ruby-lang.o...
nagachika (Tomoyuki Chikanaga)
02:41 PM Revision 9b5c2baa (git): merge revision(s) 56694,56698: [Backport #12920]
vm_eval.c: fix refined method when prepended
* vm_eval.c (vm_call0_body): refined module should not be skipped
as prepended. [ruby-core:78073] [Bug #12920]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56816 ...
nagachika (Tomoyuki Chikanaga)
02:21 PM Feature #12921: Retrieve user and password for proxy from env
> You have to understand that environment variables are in fact insecure. It is a very bad idea to store passwords there. Surprising or not, insecure is insecure. We shall not introduce this.

Well, less point this to me. Since r5...
kosaki (Motohiro KOSAKI)
11:48 AM Feature #12921: Retrieve user and password for proxy from env
You have to understand that environment variables are in fact insecure. It is a very bad idea to store passwords there. Surprising or not, insecure is insecure. We shall not introduce this. shyouhei (Shyouhei Urabe)
08:41 AM Misc #12935: Webrick: Update HTTP Status codes, share them
> Can you point to some of these examples? If there is actual use of this code in a somewhat uniform way, then it should be possible to register it. Also, if there are other, similar codes, then the same applies.
Well, except for Goog...
zverok (Victor Shepelev)
08:19 AM Bug #11831: Undefined behavior issues
It looks like the issue popped up again.
Both ruby-2.3.2 and ruby-2.2.6 defined PLATFORM_UNALIGNED_WORD_ACCESS
unconditionally on __x86_64__.
This is wrong and invokes undefined behavior.
octoploid (octoploid octoploid)
06:59 AM Bug #12948 (Closed): Logger does not rotate even if there is a past file to rotate.
Applied in changeset r56815.
----------
logger.rb: fix next rotate time
* lib/logger.rb (Logger::LogDevice#initialize): calculate next
rotate time based on the mtime of the last existing file.
[ruby-dev:49881] [Bug #12948]
Author:...
nobu (Nobuyoshi Nakada)
06:02 AM Bug #12948 (Closed): Logger does not rotate even if there is a past file to rotate.
Logger shift_age is "daily".
"log" file's timestamp is yesterday or earlier.
Logger does not rotate the file.
Ruby version is 2.1 or older, Logger rotates the file.
~~~ruby
require 'time'
require 'logger'
File.open("log", "w...
tsukasa.oishi (Tsukasa Oishi)
06:59 AM Revision f6e77b9d (git): logger.rb: fix next rotate time
* lib/logger.rb (Logger::LogDevice#initialize): calculate next
rotate time based on the mtime of the last existing file.
[ruby-dev:49881] [Bug #12948]
Author: Tsukasa Oishi <[email protected]>
git-svn-id: svn+ssh://ci.ruby-la...
nobu (Nobuyoshi Nakada)
06:59 AM Revision 2b80941e (git): test/logger/test_logdevice.rb: heredoc styles
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:59 AM Revision 508fb9fb (git): ruby-additional.el: unquoted code block
* misc/ruby-additional.el (ruby-insert-heredoc-code-block): make
code between "begin;" and "end;" unquoted. still quotable
before "begin;".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:08 AM Bug #12934 (Closed): Make compressed debug section optional
Applied in changeset r56812.
----------
configure.in: compressed debug section option
* configure.in: make compressed debug section optional.
[ruby-core:78121] [Bug #12934]
nobu (Nobuyoshi Nakada)
06:07 AM Revision 708f1e74 (git): configure.in: compressed debug section option
* configure.in: make compressed debug section optional.
[ruby-core:78121] [Bug #12934]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:25 AM Bug #12947 (Closed): Multiline if statements behave differently than inline if statements for flip flop
Applied in changeset r56811.
----------
test_flip.rb: r56316
* test/ruby/test_flip.rb (test_input_line_number_range): test for
r56316. [ruby-core:78162] [Bug #12947]
nobu (Nobuyoshi Nakada)
05:25 AM Revision 13969a2b (git): test_flip.rb: r56316
* test/ruby/test_flip.rb (test_input_line_number_range): test for
r56316. [ruby-core:78162] [Bug #12947]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:25 AM Revision 558c362f (git): math.c: remove needless ifdef clause
* math.c (ifdef M_PI): M_PI is eventually defined in missing.h even if math.h
doesn't supply it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
04:25 AM Revision affa0f84 (git): complex.c: optimize Numeric#polar and Numeric#arg
* complex.c (numeric_polar): optimize for Integer, Float, and Rational.
* complex.c (numeric_arg): directly create the value of pi.
* complex.c (f_negative_p): optimize for Integer, Float, and Rational.
* rational.c (INT_NEGATIVE_P): ...
Kenta Murata
04:25 AM Revision ab9b7890 (git): rational.c: optimize Rational#abs
* rational.c (rb_rational_abs): optimize Rational#abs with the
specialized implementation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
03:02 AM Revision b252126d (git): Fix a typo.
https://github.com/ruby/psych/commit/18d13b1df09504548feb4cb9b259fed552d6a4d5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
02:51 AM Revision f5046e7b (git): Fixed regression of typo fix.
Picked from upstream: https://github.com/ruby/psych/commit/66fb7fb77533d0606748940288858794752d95cb
[ci skip][ruby-dev:49879][Bug #12942]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)

11/15/2016

11:35 PM Bug #12947: Multiline if statements behave differently than inline if statements for flip flop
s/it behaves like a regex/it behaves like a range/ josh.cheek (Josh Cheek)
11:31 PM Bug #12947 (Closed): Multiline if statements behave differently than inline if statements for flip flop
For an inline if statement, a numerical range literal in a conditional behaves like flip flop matching against `$.`
Parsed [here](https://github.com/ruby/ruby/blob/0fe793cf9d400fdcc1f904e59d39c9b030758f42/parse.y#L1229-L1237).
```
...
josh.cheek (Josh Cheek)
11:29 PM Bug #12946: net-http is breaking valid http headers like HTTP2-Settings
Tiago Cardoso wrote:
> The Net::HTTPHeader can't process the `HTTP2-Settings` header, which is a valid header destined to pass base64-encoded settings to a soon-to-be-upgraded-to-http2 connection.
Aren't HTTP header names case-insens...
phluid61 (Matthew Kerwin)
09:56 PM Bug #12946 (Closed): net-http is breaking valid http headers like HTTP2-Settings
The Net::HTTPHeader can't process the `HTTP2-Settings` header, which is a valid header destined to pass base64-encoded settings to a soon-to-be-upgraded-to-http2 connection.
~~~ruby
req=Net::HTTP::Get.new
req["Upgrade"] = "h2c"
re...
chucke (Tiago Cardoso)
10:28 PM Bug #11531: IPAddr#== implements wrong logic
> it does not consider a difference in netmasks as significant
IPAddr.new isn't consistent with this principle:
```ruby
IPAddr.new("1.2.3.4/24") == IPAddr.new("1.2.3.4/32") # => false
```
1.2.3.4/24 is valid notation for a hos...
bjmllr (Ben Miller)
10:27 PM Bug #12942 (Third Party's Issue): about psych 2.2.0
>README.rdoc も README.md もないようですが、良いのでしょうか?
default gem なのでそういうものだと思います。
> ...
upstream の問題なので https://github.com/ruby/psych/ で対応後に ruby にマージします。
hsbt (Hiroshi SHIBATA)
03:14 PM Bug #12942 (Third Party's Issue): about psych 2.2.0
r56773 https://github.com/ruby/ruby/commit/4e70bae2bc9253fb91ae6c95bbe8e01e38d8d3df の ext/psych/psych.gemspec の差分には README.rdoc から README.md への変更が含まれていますが、 ext/psych 以下には README.rdoc も README.md もないようですが、良いのでしょうか?
typo 修正が戻ってしまっているっぽい...
znz (Kazuhiro NISHIYAMA)
09:21 PM Misc #12935: Webrick: Update HTTP Status codes, share them
Thoroughness aside, what would be the best approach? Having it in a gem is the easiest way, but it's an extra dependency to resolve (unless it's bundled with ruby, like openssl or net-telnet). I'd aim at availability, as this is a common... chucke (Tiago Cardoso)
05:39 AM Misc #12935: Webrick: Update HTTP Status codes, share them
Martin Dürst wrote:
>
> ...
I know, and I guess you also know, that "418 I'm a Teapot" comes from traditional April 1 RFCs:
* https://tools.ietf.org/html/rfc2324#section-2.3.2
* https://tools.ietf.org/html/rfc7168#section-2.3.3
...
phluid61 (Matthew Kerwin)
04:21 AM Misc #12935: Webrick: Update HTTP Status codes, share them
On 2016/11/15 04:03, [email protected] wrote:
> Issue #12935 has been updated by Victor Shepelev.

> * Now, what would be an authoritative source? http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml (like...
duerst (Martin Dürst)
08:31 PM Bug #12945 (Closed): Use-after-free in vm_trace.c
When running ruby 2.4's tests on OpenBSD amd64, I've been getting occasional bus errors. I've only been getting them when running the full test suite, and they don't happen every time, and lowering the optimization level and adding debu... jeremyevans0 (Jeremy Evans)
08:14 PM Feature #12944 (Closed): Change Kernel#warn to call Warning.warn
Currently, Kernel#warn is basically the same as $stderr.puts. With the new Warning.warn support in ruby 2.4, it makes sense for Kernel#warn to call Warning.warn, otherwise you will not be able to use Warning.warn to filter/process warni... jeremyevans0 (Jeremy Evans)
05:56 PM Feature #12928: Use socket conect_timeout in net stdlib for open_timeout

I changed the codes. Removed TCPSocket.for_fd and used socket directly now.
But I am no idea for DNS resolution timeout. How to fix it?
xiewenwei (xie wenwei)
05:25 PM Bug #12943 (Closed): Backport r56268 to Ruby 2.3
r56268 fixes a bug in the way `RubyVM::InstructionSequence.compile_file(path)` deals with syntax errors. I'm trying to use the Yomikomu gem with Ruby 2.3, but running in to this bug. I've attached a patch that backports the commit (wit... tenderlovemaking (Aaron Patterson)
03:04 PM Revision 0fe793cf (git): * 2016-11-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:04 PM Revision 9f350bd7 (git): Fix regexp and typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:47 PM Feature #12898: String#match? method in addition to Regexp#match?
I just opened a pull request to add this behaviour: https://github.com/ruby/ruby/pull/1483
It surprised me that his behaviour wasn't implemented.
herwin (Herwin W)
01:41 PM Bug #12920: Strange NoMethodError in Time.now
This problem happens with Ruby 2.3.2.
~~~
% cat a.rb
Fixnum.prepend(Module.new)
Module.new do
refine Fixnum do
define_method(:+) {}
end
end
Time.now
~~~
~~~
% ruby -v a.rb
ruby 2.3.2p217 (2016-11-15 revision 5679...
kyanagi (Kouhei Yanagita)
01:41 PM Revision acec934e (git): * version.h: Bump up version to 2.2.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
12:44 PM Feature #12515: Create "Boolean" superclass of TrueClass / FalseClass
Samuel Williams wrote:
> If that's the only issue holding back this feature.
Sadly no. The reason why this is not accepted is matz do not like the idea. You have to persuade him.
> ...
What's wrong with a gem, in that case? Rai...
shyouhei (Shyouhei Urabe)
12:43 PM Revision c3d5ab8f (git): * version.h: Bump up version to 2.3.3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
12:42 PM Revision ed83af60 (git): Use rb_mod_name instead of classname
classname() is static function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:17 AM Bug #12940 (Rejected): MAC OS Sierra - RUBY RVM not working
You mixed Ruby 2.0.0 and 2.3.0. Do check your environment with rvm. hsbt (Hiroshi SHIBATA)
08:07 AM Bug #12940 (Rejected): MAC OS Sierra - RUBY RVM not working
Its very critical I am to work with any gems in my mac.
**Below is the terminal error:**
-- Control frame information -----------------------------------------------
[13:30:49] c:0139 p:-17528882266936 s:0610 e:000609 TOP ...
masoomulhaqs (Masoom S)
10:19 AM Bug #12941 (Closed): malloc: *** error for object 0x7fb4a88d2320: pointer being freed was not allocated
I am _occasionally_ seeing issues like this:
~~~
ruby /Users/plundberg/.rvm/gems/ruby-2.3.1/bin/rspec(63837,0x7fffd90c33c0) malloc: *** error for object 0x7fb4a88d2320: pointer being freed was not allocated
*** set a breakpoint in m...
perlun (Per Lundberg)
08:16 AM Revision af36e316 (git): ftp.rb: use Addrinfo interfaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
06:33 AM Bug #11810: [PATCH] OpenSSL::SSL::SSLcontext#{alpn,npn}_select_cb= does not work properly
ruby_2_2 r56798 merged revision(s) 53064. usa (Usaku NAKAMURA)
06:33 AM Revision 30238f96 (git): merge revision(s) 53064: [Backport #11810]
* ext/openssl/ossl_ssl.c (ssl_npn_select_cb_common): fix parsing
protocol list.
The protocol list from OpenSSL is not null-terminated.
patched by Kazuki Yamaguchi [Bug #11810] [ruby-core:72082]
git-svn-id:...
U.Nakamura
06:28 AM Revision c4e66045 (git): complex.c: purge id_eqeq_p and limit return value
* complex.c (f_eqeq_p): use rb_equal.
* complex.c (nucomp_eqeq_p): limit return value to true or false,
instead of the result of the other as-is.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56797 b2dd03c8-39d4-4d8f-98ff-823fe69...
nobu (Nobuyoshi Nakada)
06:16 AM Feature #12929 (Assigned): ternary should look ahead w/in a block (and not care about newlines)
It is not a bug, and easy to extend the parser to allow that syntax, but doesn't look nice to me.
nobu (Nobuyoshi Nakada)
05:55 AM Feature #12931: Add support for Binding#instance_eval
Nobuyoshi Nakada wrote:
> Since local variables and constants depend on the context, it won't be able to be "cached," as a `Proc` compiled other place.
> ...
That makes sense.
So, to clarify, you are saying that there is no way to r...
ioquatix (Samuel Williams)
01:39 AM Revision 6394b63d (git): socket.rb: remove closed checks
* ext/socket/lib/socket.rb: remove unnecessary closed checks,
close on closed socket no longer raises an exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:39 AM Revision 9d6569ff (git): ftp.rb: use Addrinfo
* lib/net/ftp.rb (sendport, makeport, makepasv, BufferedSocket):
use Addrinfo interfaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:36 AM Bug #12939: MRI crashes when a hash table becomes huge
Thanks, committed as r56793 normalperson (Eric Wong)
12:27 AM Bug #12939 (Closed): MRI crashes when a hash table becomes huge
Applied in changeset r56793.
----------
st.c: fix crashes on huge hash tables
From: Vladimir Makarov <[email protected]>
By Vladimir's estimation, this requires at least 64 GB of memory
to reproduce this bug due to the hash sizes re...
Anonymous
12:27 AM Revision f46a43fc (git): st.c: fix crashes on huge hash tables
From: Vladimir Makarov <[email protected]>
By Vladimir's estimation, this requires at least 64 GB of memory
to reproduce this bug due to the hash sizes required. So there
is no new test case (and I am unable to test it, myself).
* s...
Eric Wong

11/14/2016

11:03 PM Bug #12939 (Closed): MRI crashes when a hash table becomes huge
Checking huge hash tables on the trunk, I found a bug in my code.
Here is the test case:
```
h = {}; 0x100000000.times{|i| h[i] = i}
```
MRI diagnostics for the test case is at the report end.
You need a machine with huge mem...
vmakarov (Vladimir Makarov)
09:31 PM Bug #12938 (Closed): forwardable.rb is no longer compatible with any alternative implementation
The following commits have made forwardable.rb unusable on any implementation except MRI, because they use YARV-specific RubyVM module and features. I believe all of these changes were done by nobu.
These introduce uses of RubyVM::Ins...
headius (Charles Nutter)
09:00 PM Misc #12937 (Closed): [PATCH] webrick/server: simplify Daemon.start
Process.daemon exists since Ruby 1.9.1 and does most of what we need.
* lib/webrick/server.rb (Daemon.start): simplify
Just a cleanup patch, will commit in a few days/weeks.
normalperson (Eric Wong)
08:41 PM Feature #12928: Use socket conect_timeout in net stdlib for open_timeout
[email protected] wrote:
> net/http, net/pop, net/smtp and net/ftp use `Timeout.timeout` to calculate connect_timeout.
> Timeout.timeout is slow. It creates and destroys a thread every time.
> Timeout.timeout is also dangerous. see...
normalperson (Eric Wong)
05:20 PM Feature #12928: Use socket conect_timeout in net stdlib for open_timeout
The codes are updated. I use Socket.tcp now. Socket.tcp returns Socket instance. So I need to convert it to TCPSocket instance using TCPSocket.for_fd. xiewenwei (xie wenwei)
07:39 PM Revision 30dcac04 (git): * test/thread/test_queue.rb: Give up to ten seconds for threads to
reach expected state before proceeding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
headius (Charles Nutter)
07:27 PM Revision 20ea1279 (git): * 2016-11-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:27 PM Revision c56fa0e2 (git): * test/ruby/test_module.rb: Method tables are not guaranteed to be
ordered.
* test/ruby/test_struct.rb: Ditto.
* test/ruby/test_thread.rb: Thread locals are not guaranteed to be
ordered.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
headius (Charles Nutter)
07:03 PM Misc #12935: Webrick: Update HTTP Status codes, share them
My 5c:
* It seems really reasonable to have centralized repo of status codes;
* I am not sure it should be in stdlib, why we not just do a gem?.. (With, probably, _automatic_ update from an _authorative_ source);
* Now, what would b...
zverok (Victor Shepelev)
05:21 PM Misc #12935 (Closed): Webrick: Update HTTP Status codes, share them
I was looking for a common source of http status-to-reason map in ruby, and I've found many sources that address the same, some of them overlapping, most of them clearly copy-pasting from each other. In the process, I also found that the... chucke (Tiago Cardoso)
06:58 PM Bug #12903: TestFile#test_stat fails on FreeBSD 11.0
ruby_2_2 r56789 merged revision(s) 56559,56582,56584,56585. usa (Usaku NAKAMURA)
06:16 PM Bug #12903: TestFile#test_stat fails on FreeBSD 11.0
ruby_2_3 r56785 merged revision(s) 56559,56582,56584,56585. nagachika (Tomoyuki Chikanaga)
06:58 PM Revision 3c61aab9 (git): merge revision(s) 56559,56582,56584,56585: [Backport #12903]
* test/ruby/test_file.rb (TestFile#test_stat): fix noatime case.
[ruby-core:77943] [Bug #12903]
* ext/-test/file/fs.c (get_atime_p): Updating of file access times
is enabled or not.
git-svn-id: svn+ssh://ci...
U.Nakamura
06:54 PM Bug #12936: backport r56625 (skip if IPv6 multicast address is not available)
ruby_2_2 r56788 merged revision(s) 56625. usa (Usaku NAKAMURA)
06:10 PM Bug #12936: backport r56625 (skip if IPv6 multicast address is not available)
ruby_2_3 r56784 merged revision(s) 56625. nagachika (Tomoyuki Chikanaga)
06:08 PM Bug #12936 (Closed): backport r56625 (skip if IPv6 multicast address is not available)
バックポート管理用のチケットです。
FreeBSD 11.0 での Rinda のテストの失敗の修正です。
nagachika (Tomoyuki Chikanaga)
06:54 PM Revision 49e1e456 (git): merge revision(s) 56625: [Backport #12936]
* test/rinda/test_rinda.rb (test_make_socket_ipv6_multicast,
test_make_socket_ipv6_multicast_hops): skip if IPv6 multicast
address is not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@5678...
U.Nakamura
06:40 PM Bug #12890: Net::HTTP should treat unexpected 1XX responses as non-final.
ruby_2_2 r56787 merged revision(s) 56596. usa (Usaku NAKAMURA)
05:48 PM Bug #12890: Net::HTTP should treat unexpected 1XX responses as non-final.
ruby_2_3 r56782 merged revision(s) 56596. nagachika (Tomoyuki Chikanaga)
06:40 PM Revision bb5114bc (git): merge revision(s) 56596: [Backport #12890]
* lib/net/http.rb (transport_request): other than HTTPContinue
in 1xx (HTTPInformation) also needs to continue. [Bug #12890]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56787 b2dd03c8-39d4-4d8f-98ff-823fe69b...
U.Nakamura
06:37 PM Bug #12925: terminated by signal SIGSEGV (Address boundary error)
ruby_2_2 r56786 merged revision(s) 56766,56767. usa (Usaku NAKAMURA)
05:36 PM Bug #12925: terminated by signal SIGSEGV (Address boundary error)
ruby_2_3 r56781 merged revision(s) 56766,56767. nagachika (Tomoyuki Chikanaga)
02:32 AM Bug #12925: terminated by signal SIGSEGV (Address boundary error)
Refinements and aliases are red herring.
All versions have this bug.
```
$ ruby1.9 -e 'class Exception; undef backtrace; end' -e 'raise "hello"'
Illegal instruction: 4
$ ruby2.0 -e 'class Exception; undef backtrace; end' -e 'raise...
nobu (Nobuyoshi Nakada)
06:37 PM Revision 6140b395 (git): merge revision(s) 56766,56767: [Backport #12925]
error.c: rb_get_backtrace
* error.c (rb_get_backtrace): move from eval_error.c to call
exc_backtrace directly. [ruby-core:78097] [Bug #12925]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56786 b2dd03c8-39d4-...
U.Nakamura
06:15 PM Revision 6b241785 (git): merge revision(s) 56559,56582,56584,56585: [Backport #12903]
* test/ruby/test_file.rb (TestFile#test_stat): fix noatime case.
[ruby-core:77943] [Bug #12903]
* ext/-test/file/fs.c (get_atime_p): Updating of file access times
is enabled or not.
git-svn-id: svn+ssh://ci...
nagachika (Tomoyuki Chikanaga)
06:10 PM Revision 49b15b21 (git): merge revision(s) 56625: [Backport #12936]
* test/rinda/test_rinda.rb (test_make_socket_ipv6_multicast,
test_make_socket_ipv6_multicast_hops): skip if IPv6 multicast
address is not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@5678...
nagachika (Tomoyuki Chikanaga)
05:59 PM Bug #12876: Calling new hangs Ruby when class prepends an empty module and makes initialize method public
ruby_2_3 r56783 merged revision(s) 56520. nagachika (Tomoyuki Chikanaga)
05:59 PM Revision 639eff2e (git): merge revision(s) 56520: [Backport #12876]
* vm_eval.c (vm_call0_body): follow the original class, not to
loop the prepended module. [ruby-core:77784] [Bug #12876]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:48 PM Revision edf505a7 (git): merge revision(s) 56596: [Backport #12890]
* lib/net/http.rb (transport_request): other than HTTPContinue
in 1xx (HTTPInformation) also needs to continue. [Bug #12890]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56782 b2dd03c8-39d4-4d8f-98ff-823fe69b...
nagachika (Tomoyuki Chikanaga)
05:36 PM Revision 61b9d4a2 (git): merge revision(s) 56766,56767: [Backport #12925]
error.c: rb_get_backtrace
* error.c (rb_get_backtrace): move from eval_error.c to call
exc_backtrace directly. [ruby-core:78097] [Bug #12925]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56781 b2dd03c8-39d4-...
nagachika (Tomoyuki Chikanaga)
03:37 PM Bug #12934: Make compressed debug section optional
I am just extracting some bits of discussion in the RPM [1] ticket:
```
--- Additional comment from Mark Wielaard on 2016-11-14 13:36:50 CET ---
--compress-debug-sections=zlib doesn't really make sense when using dwz. And various ...
vo.x (Vit Ondruch)
01:00 PM Bug #12934: Make compressed debug section optional
Forgot to link the RPM ticket: https://bugzilla.redhat.com/show_bug.cgi?id=1394759 vo.x (Vit Ondruch)
12:37 PM Bug #12934 (Closed): Make compressed debug section optional
r56445 introduces "--compress-debug-sections=zlib" flag to compress the debug section. Unfortunately, it seems that the compressed sections are not well handled by RPM. Ruby package build log now contains plenty of messages such as:
`...
vo.x (Vit Ondruch)
12:44 PM Bug #12927: SIGSEGV during GC marking of sym procs
I think r55766 introduces too big changes and I cannot backport it to the stable branches.
https://github.com/ruby/ruby/pull/1479/files seems reasonable to me. ko1 san, nakada san, What do you think of the patch?
nagachika (Tomoyuki Chikanaga)
09:30 AM Feature #12929: ternary should look ahead w/in a block (and not care about newlines)
Martin Dürst wrote:
> In Ruby, all operators have to be written at the end of the line to make it possible to distinguish between complete statements (with a missing semicolon) and continuations.
> ...
I think that this is what he mean...
mutantkeyboard (Antonio Nesic)
04:39 AM Feature #12929: ternary should look ahead w/in a block (and not care about newlines)
In Ruby, all operators have to be written at the end of the line to make it possible to distinguish between complete statements (with a missing semicolon) and continuations.
The only exception is the '.' operator, which is allowed to ...
duerst (Martin Dürst)
07:59 AM Revision 9ec0f8b7 (git): net/ftp.rb: kwargs
* lib/net/ftp.rb (Net::FTP#open_socket): use keyword argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:53 AM Revision dad23822 (git): net/protocol.rb: kwargs
* lib/net/protocol.rb (Net::BufferedIO#initialize): add keyword
arguments for initial attributes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:53 AM Revision bfcb3fb3 (git): socket.rb: kwargs
* ext/socket/lib/socket.rb (connect_{from,to}, connect): let use
keyword arguments.
* ext/socket/lib/socket.rb (Socket.tcp): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:19 AM Feature #12933: Add Some and Optional
Change to feature from bug saveav (Adam Pahlevi Baihaqi)
06:18 AM Feature #12933 (Closed): Add Some and Optional
What if we have Optional and None as a class, and which we can use like this:
```ruby
have_data = Optional(5).get # returns 5
have_data = Some(nil) # raise error
have_data = Some(operation).expect("cannot be nil") # raise cannot be...
saveav (Adam Pahlevi Baihaqi)
06:16 AM Bug #12932 (Third Party's Issue): [BUG] Segmentation fault at 0x00000000000078
After runing Sidekiq and Elasticsearch-rb in 10 threads, I got this page
~~~
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Log...
NaixSpirit (Naix Spirit)
05:18 AM Bug #12930 (Closed): instance_eval, instance_exec raises TypeError on a frozen String
Applied in changeset r56777.
----------
vm_eval.c: fstring instance_eval
* vm_eval.c (singleton_class_for_eval): enable fstring singleton
class for instance_eval. [ruby-core:78116] [Bug #12930]
nobu (Nobuyoshi Nakada)
05:05 AM Bug #12930 (Assigned): instance_eval, instance_exec raises TypeError on a frozen String
A string literal with `.freeze` reveals the object in the shared frozen string literal pool.
I think that shared objects should not be modified, like `Integer` and `Float`.
Any idea?
nobu (Nobuyoshi Nakada)
05:17 AM Revision 8bc277f1 (git): vm_eval.c: fstring instance_eval
* vm_eval.c (singleton_class_for_eval): enable fstring singleton
class for instance_eval. [ruby-core:78116] [Bug #12930]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:58 AM Feature #12931: Add support for Binding#instance_eval
Since local variables and constants depend on the context, it won't be able to be "cached," as a `Proc` compiled other place.
So I think it isn't worth.
nobu (Nobuyoshi Nakada)
03:30 AM Feature #12931 (Rejected): Add support for Binding#instance_eval
Many people would probably like to use `binding.instance_eval` when executing templates. The reason for this is because `binding.eval` is slow.
The use case is template rendering, e.g. systems like ERB.
In my template renderer, I d...
ioquatix (Samuel Williams)
04:06 AM Revision c0af2a16 (git): complex.c: optimize
* complex.c (f_negative_p): use rb_num_negative_p instead of funcall.
* complex.c (f_kind_of_p, f_numeric_p): cast down to int because
rb_obj_is_kind_of is safe.
* complex.c (f_signbit, f_tpositive_p): remove f_boolcast.
git-svn-id:...
nobu (Nobuyoshi Nakada)
04:02 AM Revision 608ad215 (git): rational.c: cast to int
* rational.c (f_kind_of_p): rb_obj_is_kind_of returns Qtrue or
Qfalse always, and is safe to cast down to int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:36 AM Feature #12515: Create "Boolean" superclass of TrueClass / FalseClass
Nobu, thanks for that clarification. I was not aware of that.
If that's the only issue holding back this feature, I'm sure a workaround can be found that works appropriately.
It might be as simple as going with the more common opti...
ioquatix (Samuel Williams)
12:40 AM Revision ce48ef2b (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:40 AM Revision 4e70bae2 (git): Update bundled psych to 2.2.0.
* Merge libyaml-0.1.7 for bundled-libyaml option.
* Update canonical url to https://github.com/ruby/psych.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)

11/13/2016

09:43 PM Bug #12930 (Closed): instance_eval, instance_exec raises TypeError on a frozen String
~~~
% ruby -ve 'p "".freeze.instance_eval "size"'
ruby 2.4.0dev (2016-11-13 trunk 56767) [x86_64-darwin15]
-e:1:in `instance_eval': can't define singleton (TypeError)
~~~
since 56747
matsuda (Akira Matsuda)
04:43 PM Revision 975e0ef8 (git): complex.c: refactoring
* complex.c (f_zero_p): return int rather than VALUE.
* complex.c (rb_complex_mul): remove needless negate operations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
04:22 PM Revision 7c451099 (git): complex.c: refactoring
* complex.c (f_one_p): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
04:22 PM Revision 91285734 (git): complex.c: refactoring and small optimization
* complex.c (nucomp_expt): optimize the access to the numerator and
denominator of a rational number.
* complex.c (k_rational_p): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
04:21 PM Revision 9b7d28af (git): * 2016-11-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:21 PM Revision 9e20ee90 (git): complex.c: refactoring
* complex.c (f_addsub, k_complex_p, k_float_p): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
03:32 PM Bug #12927: SIGSEGV during GC marking of sym procs
Hello Nobuyoshi Nakada,
I see you changed the backport:
But the only affected version is 2.3
Are we going to patch 2.3 or we have to wait for 2.4?
Thanks.
eritiro (Emiliano Ritiro)
02:28 AM Bug #12927 (Closed): SIGSEGV during GC marking of sym procs
Seems already fixed in the trunk in a different way. nobu (Nobuyoshi Nakada)
03:14 PM Feature #12929 (Rejected): ternary should look ahead w/in a block (and not care about newlines)
```ruby
foo = (bar ? 0 : 1) # works
foo = (bar ?
0 : 1) # works
foo = (bar
? 0
: 1) # doesn't work
```
ag4ve (shawn wilson)
10:32 AM Feature #12928 (Open): Use socket conect_timeout in net stdlib for open_timeout

Current net/http and net/pop use Timeout.timeout to tigger open_timeout event.
Timeout.timeout is slow. It will create and destroy a thread every time.
Timeout.timeout is also dangerous. see [[http://www.mikeperham.com/2015/05/08/tim...
xiewenwei (xie wenwei)
10:05 AM Feature #12484: Optimizing Rational
Thank you very much, muraken! tad (Tadashi Saito)
09:02 AM Feature #12912: An endless range `(1..)`
JFYI I found a log of IRC conversation about this topic in Japanese, done 6 years ago: http://naruse.hateblo.jp/entry/20100907/1283848281
I think Yusuke was in the IRC channel back then.
shyouhei (Shyouhei Urabe)
05:25 AM Bug #12925 (Closed): terminated by signal SIGSEGV (Address boundary error)
Applied in changeset r56766.
----------
error.c: rb_get_backtrace
* error.c (rb_get_backtrace): move from eval_error.c to call
exc_backtrace directly. [ruby-core:78097] [Bug #12925]
nobu (Nobuyoshi Nakada)
05:25 AM Revision 7ab8dceb (git): error.c: redefined backtrace
* error.c (rb_get_backtrace): honor redefined Exception#backtrace
method. [ruby-core:78097] [Bug #12925]
* eval.c (setup_exception): rescue exceptions during backtrace
setup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56767...
nobu (Nobuyoshi Nakada)
05:25 AM Revision d432839c (git): error.c: rb_get_backtrace
* error.c (rb_get_backtrace): move from eval_error.c to call
exc_backtrace directly. [ruby-core:78097] [Bug #12925]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:11 AM Revision 48d5a921 (git): readline: remove dependency on internal.h
* ext/readline/depend: remove dependency on internal.h.
* ext/readline/readline.c (readline_s_delete_text): use
rb_enc_str_new_static instead of rb_setup_fake_str not to depend
on internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/...
nobu (Nobuyoshi Nakada)
02:04 AM Revision ffa371d9 (git): numeric.c: limit return value
* numeric.c (num_equal): limit return value to true or false,
instead of the result of the other as-is.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:51 AM Revision 97803e22 (git): purge id_eqeq_p
* rational.c (f_{eqeq,zero,one,minus_one}_p, nurat_eqeq_p): use
rb_equal. this function returns Qtrue or Qfalse always, so it
is safe to cast down to int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56763 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)

11/12/2016

10:24 PM Bug #12927: SIGSEGV during GC marking of sym procs
I created a PR with a proposed solution:
https://github.com/ruby/ruby/pull/1479
eritiro (Emiliano Ritiro)
10:16 PM Bug #12927 (Closed): SIGSEGV during GC marking of sym procs
After we migrated from Ruby 2.2.4 to Ruby 2.3.1 we started seeing a Segmentation Fault. This happens when the GC calls proc_mark() during the marking phase.
The proc tries to mark the block.ep[1] which contains an invalid VALUE.
I at...
eritiro (Emiliano Ritiro)
08:30 PM Feature #12926 (Closed): -l flag for line end processing should use chomp! instead of chop!
Using `chop!` can mess up the final line of input because it may not end in a line-end character.
```
printf a\\nb\\nc | ruby -lne 'p $_'
"a"
"b"
""
$ printf a\\nb\\nc\\n | ruby -lne 'p $_'
"a"
"b"
"c"
```
Using `cho...
josh.cheek (Josh Cheek)
06:42 PM Revision b027b019 (git): complex.c: refactoring
* complex.c: refactor to use some specific macros and
to reduce needless conversion by FIX2LONG.
* complex.c (k_fixnum_p, k_bignum_p): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
04:43 PM Feature #12484 (Closed): Optimizing Rational
I've merged all of your commits into trunk with some modifications.
The commits exist between r56695 and r56761.
mrkn (Kenta Murata)
04:29 PM Revision b5be78c6 (git): rational.c: refactoring
* rational.c: use RB_INTEGER_TYPE_P, RB_FLOAT_TYPE_P, and FIXNUM_ZERO_P.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
03:43 PM Revision e7a75830 (git): rational.c: remove f_negative_p
* rational.c (f_negative_p): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
03:43 PM Revision bdd18a2c (git): rational.c: optimize Integer#lcm
* rational.c (f_div, f_mul, f_abs): optimize Integer#lcm
Author: Tadashi Saito <[email protected]>
* numeric.c (rb_int_abs): rename from int_abs to be exported.
* internal.h (rb_int_div, rb_int_abs): exported.
git-svn-id: svn+s...
Kenta Murata
03:43 PM Revision edfa67c2 (git): rational.c: optimize (-rational).rationalize(some)
* rational.c (nurat_rationalize): optimize (-rational).rationalize(some).
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
03:36 PM Bug #12924 (Third Party's Issue): Fiddle::TestFunction#test_nogvl_poll fails on macOS 10.12-10.12.1 Sierra
znz (Kazuhiro NISHIYAMA)
01:04 AM Bug #12924: Fiddle::TestFunction#test_nogvl_poll fails on macOS 10.12-10.12.1 Sierra
@hsbtさんから教えてもらったのですが、10.12.2 betaで直っているようです。
私の手元でも確認しました。
Third Party's Issueで閉じてもらってもよいでしょうか。
~~~
% sw_vers
ProductName: Mac OS X
ProductVersion: 10.12.2
BuildVersion: 16C41b
% ruby2.4 poll_sierra.rb
ruby 2.4.0preview3 (20...
kimuraw (Wataru Kimura)
03:07 PM Revision f3364f71 (git): * 2016-11-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:07 PM Revision a36d273e (git): rational.c: define Rational#{negative?,positive?}
* rational.c (nurat_{negative,positive}_p): define Rational#negative?
and Rational#positive?, respectively.
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56756 b2dd03c8-39d4-4d8f-98...
Kenta Murata
02:54 PM Revision 189ba5e0 (git): rational.c: refactoring
* rational.c (id_expt, id_fdiv, f_expt, f_fdiv, f_positive_p): removed.
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
01:24 PM Bug #12923 (Closed): Accessing singleton_class of fstring cause assertion failure
Applied in changeset r56754.
----------
test_fstring.rb: fix exception
* test/-ext-/string/test_fstring.rb (test_singleton_class): fix
expected exception class. [ruby-dev:49867] [Bug #12923]
nobu (Nobuyoshi Nakada)
09:44 AM Bug #12923 (Assigned): Accessing singleton_class of fstring cause assertion failure
ひとまずSEGVはしないようにfstringはsingleton classを作れないようにします。
笹田さんと話したのですが、frozen object全般でsingleton classの追加を禁止したほうがよさそうという結論になりました。
まつもとさんはどうでしょうか。
nobu (Nobuyoshi Nakada)
09:43 AM Bug #12923 (Closed): Accessing singleton_class of fstring cause assertion failure
Applied in changeset r56747.
----------
class.c: no fstring singleton class
* class.c (singleton_class_of): prohibit fstrings from creating
singleton classes.
temporary measure for [ruby-dev:49867] [Bug #12923]
nobu (Nobuyoshi Nakada)
05:14 AM Bug #12923: Accessing singleton_class of fstring cause assertion failure
`RBASIC_CLASS`を`rb_obj_class`にしてassertionを緩めましょうか。 nobu (Nobuyoshi Nakada)
01:24 PM Revision c62ab010 (git): test_fstring.rb: fix exception
* test/-ext-/string/test_fstring.rb (test_singleton_class): fix
expected exception class. [ruby-dev:49867] [Bug #12923]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:16 PM Revision cc376ee2 (git): raitonal.c: remove needless macro
* rational.c (id_lshift, f_lshift): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
12:14 PM Revision bdfd436f (git): rational.c: optimize Float#rationalize
* rational.c (rb_flt_rationalize{,_with_prec},float_rationalize):
optimize Float#rationalize.
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
11:52 AM Revision 81f16bf3 (git): rational.c: use rb_num_zerodiv instead of rb_raise_zerodiv
* rational.c (rb_raize_zerodiv): replace by rb_num_zerodiv.
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
11:52 AM Revision f40607d1 (git): rational.c: optimize Float#to_r
* rational.c (float_to_r): optimize Float#to_r.
* numeric.c (rb_int_lshift): exported.
* internal.h (rb_int_lshift): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
11:51 AM Revision ffa2b006 (git): rational.c: optimize Float#{numerator,denominator}
* rational.c (float_{numerator,denominator}): optimize
Float#{numerator,denominator}.
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
11:51 AM Revision ea5b76a0 (git): rational.c: optimize Numeric#quo
* rational.c (numeric_quo): optimize Numeric#quo.
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
09:43 AM Revision ee160e68 (git): class.c: no fstring singleton class
* class.c (singleton_class_of): prohibit fstrings from creating
singleton classes.
temporary measure for [ruby-dev:49867] [Bug #12923]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:16 AM Revision 2c0d3e2a (git): symbol/noninterned_name.rb
* test/-ext-/symbol/noninterned_name.rb: split from
test_inadvertent_creation.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:54 AM Bug #12925 (Closed): terminated by signal SIGSEGV (Address boundary error)
When I run this code
```ruby
module SafeException
refine Exception do
alias message message
alias backtrace backtrace
end
end
class Exception
undef message
undef backtrace # <-- comment this line out to se...
josh.cheek (Josh Cheek)
07:32 AM Revision 04e83c53 (git): rational.c: refactor by removing needless ID vars
* rational.c (id_cmp, id_trunate): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
07:28 AM Revision af070554 (git): rational.c: optimize Rational#fdiv
* rational.c (nurat_fdiv): optimize Rational#fdiv.
Author: Tadashi Saito <[email protected]>
* rational.c (f_to_f, id_to_f): removed.
* rational.c (f_expt): only used when FLT_RADIX is not 2.
git-svn-id: svn+ssh://ci.ruby-lang....
Kenta Murata
06:58 AM Revision 05ff2fe4 (git): rational.c: optimize Rational#to_i
* rational.c (nurat_truncate): optimize Rational#to_i.
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
06:45 AM Revision 9bb30224 (git): rational.c: optimize Rational#{floor,ceil,round,truncate}
* rational.c (f_{expt10,round_common},nurat_{floor,ceil,round_half_{up,even}}):
optimize Rational#{floor,ceil,round,truncate}.
Author: Tadashi Saito <[email protected]>
* numeric.c (rb_int_divmod): rename from int_divmod to be ...
Kenta Murata
06:17 AM Revision a5160c50 (git): rational.c: optimize rational.coerce(float) and float [+-*/] rational
* rational.c (nurat_coerce): optimize rational.coerce(float).
note that this makes `float [+-*/] rational` faster
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56741 b2dd03c8-39d4-4...
Kenta Murata
06:12 AM Revision 0913d67f (git): pack.c: simplify
* pack.c (str_associate): remove unnecessary branch.
the argument must be a plain vanilla string object.
* pack.c (str_associated): use rb_ivar_lookup to give the
undefined value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5...
nobu (Nobuyoshi Nakada)
06:12 AM Revision 4e414678 (git): class.c: trivial optimization
* class.c (singleton_class_of): just copy FROZEN flag without
conditions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:12 AM Revision c937bd4a (git): .gdbinit: improve rp [ci skip]
* .gdbinit (rp): improve T_OBJECT dump. show the contents of the
instance variables table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:07 AM Revision 7e7778f8 (git): rational.c: optimize construction of Rational
* rational.c (nurat_{s_new_bang,canonicalize,f_rational,s_convert}):
optimize construction of Rational from numbers.
Author: Tadashi Saito <[email protected]>
* rational.c (read_{num,rat_nos}): optimize construction of Rational...
Kenta Murata
06:07 AM Revision e5aa5906 (git): rational.c: purge f_cmp
* rational.c (f_cmp, nurat_expt): purge f_cmp.
Author: Tadashi Saito <[email protected]>
* rational.c (INT_POSITIVE_P): added.
* numeric.c (FIXNUM_POSITIVE_P): move the definition into internal.h.
* internal.h (FIXNUM_POSITIVE_...
Kenta Murata
06:07 AM Revision 2e9357e7 (git): rational.c: optimize Rational#-@
* rational.c (nurat_negate): introduced to optimize Rational#-@.
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
02:24 AM Revision d611a7c7 (git): rational.c: optimize Rational#==
* rational.c (nurat_eqeq_p): optimize Rational#==.
Author: Tadashi Saito <[email protected]>
* numeric.c (rb_int_equal): rename from int_equal and remove static
to be exported.
* internal.h (rb_int_equal): exported.
git-svn-i...
Kenta Murata
01:29 AM Revision fb40c377 (git): rational.c: optimize Rational#<=>
* rational.c (nurat_cmp): optimize Rational#<=>.
Author: Tadashi Saito <[email protected]>
* numeric.c (rb_int_cmp): rename from int_cmp and remove static
to be exported.
* internal.h (rb_int_cmp): exported.
git-svn-id: svn+s...
Kenta Murata
12:10 AM Feature #12902 (Rejected): How about Enumerable#sum uses initial value rather than 0 as default?
Jeremy Daer wrote:
> If we treated the first argument to `#sum` as the additive identity instead of "initial element," then it'd be very clear what to expect:
I like current behavior than yours because the behavior can be explained s...
akr (Akira Tanaka)
 

Also available in: Atom