Project

General

Profile

Activity

From 11/14/2016 to 11/20/2016

11/20/2016

01:38 PM Feature #12957: A more OO way to create lambda Procs
Problem is, when you allow LambdaProc.new, that have to accept non-lambda procs, like LambdaProc.new(&nonlambda). This way, a proc would be converted from/between lambda and non-lambda.
This is not a good idea. Right now a lambda is...
shyouhei (Shyouhei Urabe)
10:52 AM Revision 2a546caa (git): proc.c: enable Proc#to_s rdoc
* proc.c (proc_to_s): move just after the rdoc comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:41 AM Revision 3a996e8a (git): proc.c: suppress warning
* proc.c (NO_CLOBBERED): suppress clobbered warning which appears
only on mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:11 AM Revision 714d72c9 (git): Remove an unused variable to suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
06:53 AM Revision 4ba97784 (git): win32ole.c: suppress warnings
* ext/win32ole/win32ole.c (g_ole_initialized): compare with 0
instead of cast to get rid of pointer-to-int-cast warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:19 AM Revision 935f8255 (git): get rid of test failures introduced at r56848
* ext/rubyvm/lib/forwardable/impl.rb: remove an unused variable definition to
get rid of a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:12 AM Bug #12938 (Closed): forwardable.rb is no longer compatible with any alternative implementation
Applied in changeset r56848.
----------
forwardable/impl.rb
* lib/forwardable/impl.rb (_valid_method?, _compile_method):
extract to separate implementation specific part.
[ruby-core:78138] [Bug #12938]
nobu (Nobuyoshi Nakada)
02:12 AM Revision 2283d14c (git): forwardable/impl.rb
* lib/forwardable/impl.rb (_valid_method?, _compile_method):
extract to separate implementation specific part.
[ruby-core:78138] [Bug #12938]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:49 AM Revision fb8628ec (git): remote_address should be called on @bare_sock.
Because @sock.remote_address fails if @sock is an SSLSocket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
01:47 AM Bug #12950: irb: 'input-method.rb:151: [BUG] Segmentation fault' / 'malloc(): smallbin double linked list corrupted'
dota? =op dota? =op wrote:
> ok i traced down the problem to this line on my .inputrc
> ...
I could reproduce it by the inputrc with recent 2.3 and trunk.
And libreadline7 seems same.
```
-- Machine register context --------------...
nobu (Nobuyoshi Nakada)
01:44 AM Revision f0dd33d5 (git): shutdown(2) should not be called for SSLSocket.
SSLSocket#stop is a private method and cannot be called, but explicit calls
are not necessary because SSL_shutdown() is called from SSLSocket#close.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56846 b2dd03c8-39d4-4d8f-98ff-823fe69...
shugo (Shugo Maeda)

11/19/2016

11:51 PM Bug #12959 (Closed): win32ole has a libgcc dll dependency when newer GCC version use
Applied in changeset r56844.
----------
* ext/win32ole/win32ole.c: independent of libgcc_s_seh-1.dll [Bug #12959]
Thanks to Tsuyoshi Morita for bug report.
suke (Masaki Suketa)
01:29 AM Bug #12959 (Closed): win32ole has a libgcc dll dependency when newer GCC version use
win32oleだけが、libgcc_s_seh-1.dllに依存してしまいます。
以下はMinGW-w64 の環境での確認結果です。
~~~~
tsuyoshi@jupiter MINGW64 ~/ruby24_build
$ find . \( -name "*.dll" -o -name "*.so" \) | while read -r f; do \
echo "Checking: $f"; \
objdump -x $f | eg...
moritat (Tsuyoshi Morita)
11:51 PM Revision 279deb60 (git): * 2016-11-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:51 PM Revision 173f7fdc (git): * ext/win32ole/win32ole.c: independent of libgcc_s_seh-1.dll [Bug #12959]
Thanks to Tsuyoshi Morita for bug report.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
suke (Masaki Suketa)
11:21 PM Bug #12950: irb: 'input-method.rb:151: [BUG] Segmentation fault' / 'malloc(): smallbin double linked list corrupted'
dota? =op dota? =op wrote:
> Nobuyoshi Nakada wrote:
> ...
it does happen on 2.3.2 too:
`ruby 2.3.2p217 (2016-11-15 revision 56796) [x86_64-linux]`
AYGHOR (pu pu)
11:09 PM Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
Robert A. Heiler wrote:
> The terminology is a bit peculiar - friendly modules? Do we have unfriendly modules as well?
> ...
It has slightly different semantics (more in line, IMO, with ruby's existing definitions of private & protecte...
matthewd (Matthew Draper)
05:34 PM Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
The terminology is a bit peculiar - friendly modules? Do we have unfriendly modules as well?
Is that a new terminology altogether? I never read friend-methods before.
However had, leaving aside the choice of names, I do not like synt...
shevegen (Robert A. Heiler)
01:18 PM Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
Draft implementation:
```diff
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 8776a59..fa5b1dc 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -588,6 +588,7 @@ VALUE rb_any_to_s(VALUE);
VALUE ...
matthewd (Matthew Draper)
01:15 PM Feature #12962 (Rejected): Feature Proposal: Extend 'protected' to support module friendship
When working on a larger library, with many classes that have both official API methods and internal supporting methods, it can be hard to distinguish between them.
In Rails, for example, we currently do this using `:nodoc:` -- if a m...
matthewd (Matthew Draper)
05:47 PM Bug #12954: valgrind shows memory leaks
I am not sure how easy it is for the ruby core team to reproduce it. shevegen (Robert A. Heiler)
05:46 PM Bug #12958: Breaking change in how `#round` works
Also see the discussion in https://bugs.ruby-lang.org/issues/12548 - ruby version changed
from 2.3.x to 2.4.x, so I think the change is fine. Default similar behaviour can be expected
e. g. from 2.3.1 to 2.3.9 and such. Otherwise you'...
shevegen (Robert A. Heiler)
12:20 PM Bug #12961 (Closed): Bad value for range using infinity for Date or Time
How to reproduce:
~~~ ruby
-Float::INFINITY...Float::INFINITY # works
Date.today...Float::INFINITY # works
-Float::INFINITY...Date.today # fails with "ArgumentError: bad value for range"
Time.now...Float::INFINITY #fails with "Arg...
loudandwicked (Damjan Cilenšek)
11:01 AM Revision 73199e1e (git): Use Socket instead of TCPSocket/TCPServer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
09:51 AM Feature #12960: [psych] new visitor class to generate custom object instead of Hash
makoto kuwata wrote:
> (I can't find any button to close this issue. Please close this.)
The status is already "Third Party's Issue". You can think about this as a subcategory of "Closed".
duerst (Martin Dürst)
08:38 AM Feature #12960: [psych] new visitor class to generate custom object instead of Hash
Nobuyoshi Nakada wrote:
> Please send to the [upstream](https://github.com/ruby/psych).
I understand. Thx.
(I can't find any button to close this issue. Please close this.)
kwatch (makoto kuwata)
04:02 AM Feature #12960 (Third Party's Issue): [psych] new visitor class to generate custom object instead of Hash
Please send to the [upstream](https://github.com/ruby/psych). nobu (Nobuyoshi Nakada)
03:39 AM Feature #12960 (Third Party's Issue): [psych] new visitor class to generate custom object instead of Hash
I create a patch to define new useful visitor class for Psych.
It generates custom object as mapping data instead of Hash.
Normally, you must access YAML document data like `ydoc["foo"]["bar"]["baz"]`.
Using this class, you can acce...
kwatch (makoto kuwata)
07:32 AM Bug #12956: require a native library that yields the error 'incompatiable library version' shuts down the interpreter fatally
Thanks Nobuyoshi Nakada.
That was really fast. Looking forward to the next release containing this patch :)
Do you have an eta for this?
gizmomogwai (Christian Köstlin)
01:16 AM Bug #12956 (Closed): require a native library that yields the error 'incompatiable library version' shuts down the interpreter fatally
Applied in changeset r56832.
----------
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]
nobu (Nobuyoshi Nakada)
01:16 AM Bug #12956: require a native library that yields the error 'incompatiable library version' shuts down the interpreter fatally
Thank you for heading up.
I found that it works on OS X El Capitan too.
It was OS X Yosemite when I added that line (May 2015), and probably `dlclose` was fixed in El Capitan.
nobu (Nobuyoshi Nakada)
07:02 AM Revision 77403c88 (git): Expand abbreviated option names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
06:24 AM Bug #12938: forwardable.rb is no longer compatible with any alternative implementation
This should be fixed before 2.4, so JRuby does not have to ship an old version of forwardable.rb. headius (Charles Nutter)
05:25 AM Bug #12927: SIGSEGV during GC marking of sym procs
I ask ko1 and nobu to review the pull request and there's no objection.
I've merged it into ruby_2_3 branch at r56841.
Emiliano, thank you for your report and investigations in detail.
nagachika (Tomoyuki Chikanaga)
05:18 AM Revision a5d754ac (git): * iseq.c (proc_dup): don't duplicate sym_procs. [Fix GH-1479]
[ruby-core:78100] [Bug #12927]
Based on the patch provided by Emiliano Ritiro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:32 AM Revision 6839d47e (git): ruby.h: rb_big_sign
* include/ruby/ruby.h (RBIGNUM_SIGN): use a wrapper function to
return the sign bit, instead of comparing with 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:19 AM Revision 5f03f753 (git): Shut down TLS connections gracefully.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
03:03 AM Bug #12943: Backport r56268 to Ruby 2.3
Backported r56267 and r56268 (based on a patch provided Aaron) into ruby_2_3 at r56838. nagachika (Tomoyuki Chikanaga)
03:02 AM Revision 6b636815 (git): merge revision(s) 56267,56268: [Backport #12943]
based on a patch provided by Aaron Patterson.
assertions.rb: success option
* test/lib/test/unit/assertions.rb (assert_in_out_err): add
success option to check the exit status.
* iseq.c (iseqw_s_compile_file):...
nagachika (Tomoyuki Chikanaga)
02:40 AM Revision b1bd36bf (git): Remove garbage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
02:37 AM Revision fc446ac0 (git): Move certificates to test/net/fixtures/.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
02:29 AM Revision 1029d32c (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:29 AM Revision eb8c73ad (git): Support TLS and hash styles options for Net::FTP.new.
If the :ssl options is specified, the control connection is protected with
TLS in the manner described in RFC 4217. Data connections are also
protected with TLS unless the :private_data_connection is set to false.
git-svn-id: svn+ssh:/...
shugo (Shugo Maeda)
01:55 AM Revision 378d0e6a (git): math.c: unused_obj
* math.c (exp1, exp2): use immediate 0 instead of rb_mMath, which
is never used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:16 AM Revision 5908268c (git): 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/trunk@56832 b2dd03c8-39d4-4d8f-98ff-823...
nobu (Nobuyoshi Nakada)
12:09 AM Feature #12901: Anonymous functions without scope lookup overhead
On 19/11/2016, justcolin@gmail.com <justcolin@gmail.com> wrote:
> Issue #12901 has been updated by Colin Fulton.
>
> This would be a fantastic feature. I second the idea of something like
> `function { }`, `func { }`, `<> { }`, `-->...
phluid61 (Matthew Kerwin)

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 <tsukasa.oishi@gmail.com>
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, zverok.offline@gmail.com 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 <vmakarov@redhat.com>
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 <vmakarov@redhat.com>
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
xiewenwei@gmail.com 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)
 

Also available in: Atom