Project

General

Profile

Activity

From 07/19/2017 to 07/25/2017

07/25/2017

07:39 PM Bug #13766 (Closed): Ruby 2.3.4 build problem with "-fstack-check"
usa (Usaku NAKAMURA)
11:16 AM Bug #13766: Ruby 2.3.4 build problem with "-fstack-check"
r57971 が既にupstreamにある以上、 http://mail-index.netbsd.org/pkgsrc-changes/2017/07/24/msg160523.html の変更をいれるより r57971 をバックポートしてしまった方が今後のバックポートが楽になる気がしました。 なので2.3ブランチメンテナに担当者を変更しました。 k0kubun (Takashi Kokubun)
03:51 AM Bug #13766 (Closed): Ruby 2.3.4 build problem with "-fstack-check"
pkgsrcで PKGSRC_USE_STACK_CHECK を yes に設定すると Ruby 2.3.4 のビルドに失敗します。
現象としては、tool/generic_erb.rb で encdb.h を生成する際に erb.rb でエラーとなります。
~~~
lib/erb.rb:654:in `block in compile': can't modify frozen String (RuntimeError)
~~~
調べたところ、作成した mi...
taca (Takahiro Kambe)
07:36 PM Feature #13765: Add Proc#bind
> I do not have any pro or con opinion per se; my slight worry is about the name "bind".
Yeah I share that concern. Ruby has a concept of bound methods which might get confused with this.
Lodash/Underscore refer to this as `partia...
davidcornu (David Cornu)
02:51 PM Feature #13765: Add Proc#bind
I do not have any pro or con opinion per se; my slight worry is about the name "bind".
When I read .bind, I wonder what is actually bound, and to what it is bound.
shevegen (Robert A. Heiler)
10:50 AM Feature #13765: Add Proc#bind
Could you show a real Ruby application or code which you can write more effectively if we have partial application? k0kubun (Takashi Kokubun)
07:15 PM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
Sure, faster glob could make a big difference in overall performance. It's a very good candidate for optimalization.
for Windows and maybe other case-insensitive FS that shares the same codepath we should
avoid (or cache) recurring t...
ahorek (Pavel Rosický)
04:33 PM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
pdahorek@seznam.cz wrote:
> Issue #13167 has been updated by ahorek (Pavel Rosický).
>
>
> https://github.com/ruby/ruby/pull/1669
>
> ~~~
> 2.1.9 1143000 i/s
> 2.4.1 39829 i/s
> 2.5.0 40730 i/s
> 2....
normalperson (Eric Wong)
11:37 AM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
https://github.com/ruby/ruby/pull/1669
~~~
2.1.9 1143000 i/s
2.4.1 39829 i/s
2.5.0 40730 i/s
2.5.0 + patch 936338 i/s
~~~
this patch is probably wrong, but it's a good place to start
@normalperson -...
ahorek (Pavel Rosický)
11:22 AM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
yes, it's on the same hardware and also with the same file path. I used Bash on Windows which could be slower then the native Windows app.
So I also compared it on a native Ubuntu and 2.4.1 is faster on it
~~~
2.1.9 695000 i/s
2.4....
ahorek (Pavel Rosický)
02:51 AM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
pdahorek@seznam.cz wrote:
> There isn't noticable difference on Linux, it's even slightly faster.

The problem isn't the noticeability in Linux. I suspect the
problem here is Linux hides performance problems with fast syscalls:

...
normalperson (Eric Wong)
04:29 PM Bug #13232: Comparing BigDecimal to float or Rational fails sometimes
Sorry if it is not the right place to ask this question, but is it possible to backport this fix in ruby 2.4 and 2.3 versions? This issue came to light for us when using ruby 2.4, as with 2.4 BigDecimal now throws an error when trying to... hrsht (Harshit Chopra)
03:56 PM Feature #13767 (Closed): add something like python's buffer protocol to share memory between different narray like classes
In order for ruby to be used in more scientific or machine learning applications, it will be necessary to be able to use more memory efficient data structures. Python has a concept called Buffer Protocol that allows different representa... dsisnero (Dominic Sisneros)
08:30 AM Revision f29e5013 (git): parse.y: limit codepoint length
* parse.y (parser_tokadd_codepoint): limit Unicode codepoint
length. too long codepoint has been split unexpectedly since
r57050.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:55 AM Revision 8e2d0deb (git): dir.c (ruby_brace_expand): RB_GC_GUARD safety
The lifetime of a String VALUE must match or exceed the lifetime
of its R*_PTR result; otherwise the GC can while reclaim the
VALUE while the R*_PTR result is in use.
* dir.c (ruby_brace_expand): add var parameter for GC guard
(ruby_b...
Eric Wong
04:03 AM Bug #13764 (Rejected): Ruby 2.3.4 build problem with "-fstack-check"
hsbt (Hiroshi SHIBATA)
03:53 AM Bug #13764: Ruby 2.3.4 build problem with "-fstack-check"
Please close this Issue since I posted to wrong language and I re-posted as Bug #13766. taca (Takahiro Kambe)
02:51 AM Feature #13637: [PATCH] tool/runruby.rb: test with smallest possible machine stack
Sorry, original patch was broken :x (yet "make exam" passed...)
(it leaked memory and used sizeof improperly)

Can you try the following, instead?

diff --git a/io.c b/io.c
index 60af120c18..0d5ca0d95b 100644
--- a/io.c
+++ b/io...
normalperson (Eric Wong)
01:08 AM Revision d822aa29 (git): * 2017-07-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:08 AM Revision 88a22cbc (git): socket: system getaddrinfo on Windows
* ext/socket/extconf.rb: use system getaddrinfo, getnameinfo, and
freeaddrinfo on Windows if they are provided. they conflict
with addrinfo.h and cannot compile. conftest.exe linked against
msvcr90.dll segfaults when invoked in e...
nobu (Nobuyoshi Nakada)
12:27 AM Bug #13716 (Open): Unexpected or undocumented (or maybe both) behaviour when mixing String#scan with named captures
akr (Akira Tanaka) wrote:
> When you use a named capture, parenthesises are not considered as a capture.
Where can I learn that restriction? I have never heard of such thing before.
shyouhei (Shyouhei Urabe)

07/24/2017

10:40 PM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
There isn't noticable difference on Linux, it's even slightly faster.
Linux
~~~
2.1.9 77991 i/s
2.4.1 78497 i/s
~~~
Windows
~~~
2.1.9 1143000 i/s
2.4.1 39829 i/s
~~~
https://github.com/ruby/ruby/blob/trunk/dir.c
ahorek (Pavel Rosický)
09:41 PM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
Eric Wong <normalperson@yhbt.net> wrote:
> $ strace -c -e getdents ruby --disable=gems -e 'Dir.glob("*/*.{flac}")'
> => 935 getdents calls
>
> $ strace -c -e getdents ruby --disable=gems -e 'Dir.glob("*/*.{flac,ogg}")'
> => 1870 g...
normalperson (Eric Wong)
08:32 PM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
pdahorek@seznam.cz wrote:
> Bug #13167: Dir.glob is 25x slower since Ruby 2.2
> https://bugs.ruby-lang.org/issues/13167#change-65905

I didn't see a difference in Linux between 2.1 and trunk;
but this seems wrong on Linux and could...
normalperson (Eric Wong)
07:42 PM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
I used Procmon.exe https://live.sysinternals.com to monitor system calls
and it looks like ruby 2.4.1 is traversing the whole directory tree over and over again for each {} matcher. This should be definitely avoided!
take a look, the...
ahorek (Pavel Rosický)
09:08 PM Feature #13637: [PATCH] tool/runruby.rb: test with smallest possible machine stack
Rei.Odaira@gmail.com wrote:
> Ruby CI on AIX have frequently hit SystemStackError since this change was introduced.
> http://rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/recent.html
> http://rubyci.s3.amazonaws.com/aix71_ppc/ruby-tru...
normalperson (Eric Wong)
08:28 PM Feature #13637: [PATCH] tool/runruby.rb: test with smallest possible machine stack
Ruby CI on AIX have frequently hit SystemStackError since this change was introduced.
http://rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/recent.html
http://rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20170723T103301Z.fail.html.gz...
ReiOdaira (Rei Odaira)
09:04 PM Feature #13765 (Open): Add Proc#bind
`Proc` has [`curry`](https://ruby-doc.org/core-2.4.1/Proc.html#method-i-curry) but no method to do [partial application](https://en.wikipedia.org/wiki/Partial_application). Something like `Proc#bind` might be handy.
A naive implementa...
davidcornu (David Cornu)
06:09 PM Feature #13763: Trigger "unused variable warning" for unused variables in parameter lists
I am indifferent, so neither pro or con. I can see both points, more warnings or "hints"
and less warnings. There may be a practical reason to not change towards this as it may
lead to many more warnings all of a sudden? I don't know, ...
shevegen (Robert A. Heiler)
04:25 PM Feature #13763: Trigger "unused variable warning" for unused variables in parameter lists
i am against this, becauese such functions could be used as hookups too for other functions to overwrite them.
like:
~~~ ruby
def xyz
do_something(temp)
end
def do_something(x)
end
~~~
then something else can overwrite...
Hanmac (Hans Mackowiak)
12:16 PM Feature #13763 (Open): Trigger "unused variable warning" for unused variables in parameter lists
Consider the following program nowa.rb:
~~~
def foo(a)
end
%w(x).each {|y|}
foo(1)
z=5
~~~
If I syntax-check it with *ruby -cw nowa.rb* I get the following warning:
~~~
nowa.rb:5: warning: assigned but unused variable - z...
rovf (Ronald Fischer)
02:04 PM Bug #13764 (Rejected): Ruby 2.3.4 build problem with "-fstack-check"
pkgsrcで PKGSRC_USE_STACK_CHECK を yes に設定すると Ruby 2.3.4 のビルドに失敗します。
現象としては、tool/generic_erb.rb で encdb.h を生成する際に erb.rb でエラーとなります。
~~~
lib/erb.rb:654:in `block in compile': can't modify frozen String (RuntimeError)
~~~
調べたところ、作成した mi...
taca (Takahiro Kambe)
05:31 AM Bug #13716 (Feedback): Unexpected or undocumented (or maybe both) behaviour when mixing String#scan with named captures
When you use a named capture, parenthesises are not considered as a capture.
So, you need to add name for all captures as:
```
% ruby -e 'p "1q2w3e4r".scan(/(?<bar>\w\d)(?<foo>foo){0}/)'
[["q2", nil], ["w3", nil], ["e4", nil]]
`...
akr (Akira Tanaka)
03:14 AM Bug #13150: TestMarshal failures on FreeBSD with gcc7 because of GC
Hiroshi,
Thank you for the patch. I just decided to start doing regular MinGW builds with ruby_2_3 & ruby_2_4. I also recently updated to gcc 7.1.0 from 6.3.0. With 7.1.0, ruby_2_4 was fine, but ruby_2_3 didn't get very far. Your ...
MSP-Greg (Greg L)
01:56 AM Revision 20da3e51 (git): * 2017-07-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:56 AM Revision 3fe5d355 (git): optparse.rb: case-sensitive candidate
* lib/optparse.rb (candidate): short options are case-sensitive by
the default, should not match case-different options..
https://github.com/mernen/completion-ruby/pull/9#issuecomment-317287946
git-svn-id: svn+ssh://ci.ruby-lang.org...
nobu (Nobuyoshi Nakada)
01:24 AM Bug #13742: SIGSEGV in parser_yyerror()
Note that this is not a vulnerability.
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-11465 is invalid.
nobu (Nobuyoshi Nakada)
01:17 AM Bug #13762 (Rejected): Change in `#==` in Ruby 2.4?
When you write your custom `method_missing`, you have to write your custom `respond_to_missing?` too. nobu (Nobuyoshi Nakada)
12:29 AM Bug #13762 (Rejected): Change in `#==` in Ruby 2.4?
Given this code:
```ruby
# frozen_string_literal: true
class MyProxy < BasicObject
def initialize(target)
@target = target
end
undef_method :==
def method_missing(method_name, *args, &block)
if target_res...
backus (John Backus)
12:26 AM Feature #13683: Add strict Enumerable#single
+1 to this proposal!! I have a `Util.one(...)` method in a half dozen or more projects. IMO `#one` is a nicer name than `#single`.
[ROM](https://github.com/rom-rb/rom/blob/6016d323ca0a2aa38167e84a4eb2da0384e75b13/core/lib/rom/relation...
backus (John Backus)

07/23/2017

09:44 AM Revision bb52d2be (git): * 2017-07-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:44 AM Revision 53737990 (git): sprintf.c: width too big
* sprintf.c (rb_str_format): explicitly reject too big negative
width, instead of an empty string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:59 AM Bug #13547: [].delete 1 { 'NG' }
ruby_2_4 r59409 merged revision(s) 58641. nagachika (Tomoyuki Chikanaga)
08:59 AM Revision fd2fca83 (git): merge revision(s) 58641: [Backport #13547]
parse.y: brace after literal arg
* parse.y (symbol, dsym, parser_set_number_literal, parser_yylex):
set state to END too not only ENDARG and after a literal, so
that a left brace after it should be a primary ...
nagachika (Tomoyuki Chikanaga)
08:49 AM Bug #13595: rb_alloc_tmp_buffer2 broken when: elsize % sizeof(VALUE) == 0
ruby_2_4 r59408 merged revision(s) 58902. nagachika (Tomoyuki Chikanaga)
08:49 AM Revision e7358e60 (git): merge revision(s) 58902: [Backport #13595]
attempt to fix rb_alloc_tmp_buffer2 for ALLOCV_N
This is a confusing function to my arithmetic-challenged mind,
but nobu seems alright with this. Anyways this lets me use
large values of elsize without segfaulti...
nagachika (Tomoyuki Chikanaga)
08:39 AM Bug #13358: OpenStruct overriding allocate
ruby_2_4 r59407 merged revision(s) 58077,58229. nagachika (Tomoyuki Chikanaga)
08:39 AM Revision 7867dbdd (git): merge revision(s) 58077,58229: [Backport #13358]
ostruct.rb: fix OpenStruct.allocate
* lib/ostruct.rb (OpenStruct.allocate): initialize an instance
variable directly, without calling `intialize` method which may
be overridden in a subclass. [ruby-core:8029...
nagachika (Tomoyuki Chikanaga)
08:22 AM Bug #13239: Bug with "special exceptions" when they are thrown in context of a rescue clause.
Backported into ruby_2_4 at r57939. nagachika (Tomoyuki Chikanaga)
08:16 AM Bug #11873: Syntax error and parse problem when calling a method without parentheses
ruby_2_4 r59406 merged revision(s) 58638,58640. nagachika (Tomoyuki Chikanaga)
08:15 AM Revision 524e628f (git): merge revision(s) 58638,58640: [Backport #11873]
test_syntax.rb: test_brace_after_local_variable
* test/ruby/test_syntax.rb (test_brace_after_local_variable):
another test using braces. [Bug #11873]
parse.y: do after cmdarg in paren
* parse.y (parse...
nagachika (Tomoyuki Chikanaga)
08:05 AM Bug #13284: IA64 ruby 2.4 miniruby segfault
ruby_2_4 r59405 merged revision(s) 59307. nagachika (Tomoyuki Chikanaga)
08:05 AM Revision 66163b77 (git): merge revision(s) 59307: [Backport #13284]
a64: fix crash on register stack mark/sweep pass
* thread_pthread.c: move 'register_stack_start' earlier.
[ruby-core:79928] [Bug #13284] [Fix GH-1625]
Author: Sergei Trofimovich <slyfox@gentoo.org>
git-sv...
nagachika (Tomoyuki Chikanaga)
07:50 AM Bug #13191: sample/pty/shl.rb がうまく動かない
ruby_2_4 r59404 merged revision(s) 57530. nagachika (Tomoyuki Chikanaga)
07:50 AM Revision fffc133d (git): merge revision(s) 57530: [Backport #13191]
sample/pty/shl.rb: update sample
* Specify frozen_string_literal: true.
* Fix TypeError of raise.
* Use a character literal instead of Integer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@59404...
nagachika (Tomoyuki Chikanaga)
07:48 AM Bug #13621: String#split returns an array longer than given limit, when passing a regexp with groups
ruby_2_4 r59403 merged revision(s) 59002. nagachika (Tomoyuki Chikanaga)
07:48 AM Revision 873c37ce (git): merge revision(s) 59002: [Backport #13621]
string.c: docs for String#split
* string.c: [DOC] clarify docs for String#split when called
with limit and capture groups.
Reported by Cichol Tsai. [ruby-core:81505] [Bug #13621]
git-svn-id: svn+ssh://ci.ru...
nagachika (Tomoyuki Chikanaga)
07:46 AM Bug #13413: --with-static-linked-ext doesn't install extension files on `make install`
ruby_2_4 r59402 merged revision(s) 57446. nagachika (Tomoyuki Chikanaga)
07:46 AM Revision b1b4772f (git): merge revision(s) 57446: [Backport #13413]
mkmf.rb: fix script installation
* lib/mkmf.rb (MakeMakefile): fix condition to install script
files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@59402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
07:45 AM Bug #13672: Garbage input hangs ruby (not responding ^C)
ruby_2_4 r59401 merged revision(s) 59161. nagachika (Tomoyuki Chikanaga)
07:44 AM Revision e9ef3cfd (git): merge revision(s) 59161: [Backport #13672]
parse.y: check multibyte char
* parse.y (parser_precise_mbclen): check invalid multibyte char at
skipping strings following `?x` literal string, not to stuck in
a infinite loop. [ruby-core:81746] [Bug #13672...
nagachika (Tomoyuki Chikanaga)
07:36 AM Bug #13515: Pathname#join doesn't add separator on UNC paths
ruby_2_4 r59400 merged revision(s) 59102. nagachika (Tomoyuki Chikanaga)
07:36 AM Revision e52f95a6 (git): merge revision(s) 59102: [Backport #13515]
pathname.rb: UNC root pathname needs a separator
* ext/pathname/lib/pathname.rb (Pathname#plus): UNC root pathname
needs a separator. File.basename returns "/" on UNC root, as
well as sole drive letter, even...
nagachika (Tomoyuki Chikanaga)
07:33 AM Bug #13636: REXML::Document.parse_stream doesn't handle when closing tag not provided
ruby_2_4 r59399 merged revision(s) 59033,59034. nagachika (Tomoyuki Chikanaga)
07:33 AM Revision 3fd2cbec (git): merge revision(s) 59033,59034: [Backport #13636]
rexml: add close tag check on end of document to StreamParser
[ruby-core:81593] [Bug #13636]
Reported by Anton Sivakov. Thanks!!!
* properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@593...
nagachika (Tomoyuki Chikanaga)
07:30 AM Bug #13558: Array#insert does not typecheck the position argument if it's the only argument
ruby_2_4 r59398 merged revision(s) 58693. nagachika (Tomoyuki Chikanaga)
07:30 AM Revision acfaa331 (git): merge revision(s) 58693: [Backport #13558]
array.c: check position to insert
* array.c (rb_ary_insert): check position to insert even if no
elements to be inserted. [ruby-core:81125] [Bug #13558]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@5...
nagachika (Tomoyuki Chikanaga)
07:21 AM Bug #13231: DateTime.strftime("%Z") does not return time zone abbreviation, returns hour and minute offset from UTC with colon
ruby_2_4 r59397 merged revision(s) 58643. nagachika (Tomoyuki Chikanaga)
07:21 AM Revision 731b534e (git): merge revision(s) 58643: [Backport #13231]
date_core.c: fix docs for %Z format
* ext/date/date_core.c: [DOC] fix documentation for %Z format
of {Date,DateTime}.strftime.
Reported by Damon Timm. Based on a patch by nano.
[ruby-core:79602] [...
nagachika (Tomoyuki Chikanaga)
07:20 AM Bug #13531: RSS: a feed with empty channel description has completely empty '#to_xml' conversion
ruby_2_4 r59396 merged revision(s) 58552. nagachika (Tomoyuki Chikanaga)
07:20 AM Revision 5beaa53a (git): merge revision(s) 58552: [Backport #13531]
rss: Accept empty text element as valid element
Parser has been accepted it but XML serializer wasn't accepted.
Reported by stefano frabetti. Thanks!!!
[ruby-core:80965] [Bug #13531]
git-svn-id: svn+ssh://ci....
nagachika (Tomoyuki Chikanaga)
07:02 AM Bug #13656: Method#super_method returns incorrect result dependent on unrelated module
ruby_2_4 r59395 merged revision(s) 59080,59082. nagachika (Tomoyuki Chikanaga)
07:02 AM Revision c358595a (git): merge revision(s) 59080,59082: [Backport #13656]
proc.c: skip prepended modules
* proc.c (method_super_method): skip prepended modules and
continue from the super class of the original class.
[ruby-core:81666] [Bug #13656]
test/ruby/test_method.rb: ...
nagachika (Tomoyuki Chikanaga)
06:47 AM Bug #13720 (Closed): appveyor.yml nmake arguments - not *nix style
nobu (Nobuyoshi Nakada)

07/22/2017

12:26 PM Revision 151c1704 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:26 PM Revision b44a588e (git): Add Doxygen comments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yugui (Yuki Sonoda)
08:07 AM Revision 1782a2cf (git): Fix documents
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
08:07 AM Revision 135204eb (git): Fix typos and indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:30 AM Revision 22224a45 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:30 AM Revision 7b19e6f3 (git): Add documents
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yugui (Yuki Sonoda)
06:01 AM Revision 52bb1dad (git): compile.c: COMPILE_ERROR
* compile.c: raise COMPILE_ERROR instead of compile_bug which is
very rarely (or never, actually) useful to debug instruction
sequence. COMPILE_ERROR is usually SyntaxError, or fatal error
if compile_debug is enabled,
git-svn-id:...
nobu (Nobuyoshi Nakada)

07/21/2017

10:45 PM Revision 86dc8c81 (git): compile.c: dump iseq at adjust bug
* compile.c (fix_sp_depth): dump instructions at adjust bug too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:06 PM Revision f0f7098c (git): * 2017-07-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:06 PM Revision 17bf0c00 (git): NEWS: add entries for thread_sync.c changes
I'm slightly worried about some external code subclassing
ConditionVariable, Queue, and SizedQueue and relying on them
being Structs. However, they only started being Structs with
Ruby 2.1, and were implemented in pure Ruby before that;...
Eric Wong
01:41 PM Bug #13759: SEGV in StringScanner
A bug since 2.1. nobu (Nobuyoshi Nakada)
01:30 PM Bug #13759 (Closed): SEGV in StringScanner
Applied in changeset trunk|r59384.
----------
strscan.c: fix segfault in aref
* ext/strscan/strscan.c (strscan_aref): fix segfault after
get_byte or getch which do not apply regexp.
[ruby-core:82116] [Bug #13759]
nobu (Nobuyoshi Nakada)
01:30 PM Revision 90311f37 (git): strscan.c: fix segfault in aref
* ext/strscan/strscan.c (strscan_aref): fix segfault after
get_byte or getch which do not apply regexp.
[ruby-core:82116] [Bug #13759]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:03 AM Bug #13760 (Closed): Another iseq_set_sequence: adjust bug 1 < 2
nobu (Nobuyoshi Nakada)
02:51 AM Bug #13760: Another iseq_set_sequence: adjust bug 1 < 2
Seems a duplicate of #13755. nobu (Nobuyoshi Nakada)
02:14 AM Bug #13760 (Feedback): Another iseq_set_sequence: adjust bug 1 < 2
Can't reproduce on `ruby 2.5.0dev (2017-07-21 trunk 59374) [x86_64-darwin15]`. Maybe fixed already. Would you mind trying a recent trunk? shyouhei (Shyouhei Urabe)
08:31 AM Revision 5f534b7d (git): optparse.rb: [DOC] fix keys
* lib/optparse.rb (getopts): [DOC] parameter keys are strings, not
symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:30 AM Feature #12387: ripper: new parser event for kwrest parameter
nobu (Nobuyoshi Nakada) wrote:
> Seems OK.
Thanks, committed as r59382.
rhenium (Kazuki Yamaguchi)
04:29 AM Feature #12387 (Closed): ripper: new parser event for kwrest parameter
Applied in changeset trunk|r59382.
----------
ripper: add kwrest_param parser event
* parse.y (f_kwrest): Dispatch kwrest_param event. This is especially
useful for unnamed kwrest parameter for which we expose the internal
ID curre...
Anonymous
04:29 AM Revision c4dfd0cc (git): ripper: add kwrest_param parser event
* parse.y (f_kwrest): Dispatch kwrest_param event. This is especially
useful for unnamed kwrest parameter for which we expose the internal
ID currently. [ruby-core:75528] [Feature #12387]
* test/ripper/dummyparser.rb (on_kwrest_par...
rhenium (Kazuki Yamaguchi)
02:47 AM Bug #13728 (Rejected): How to design websites?
nobu (Nobuyoshi Nakada)

07/20/2017

11:34 PM Revision 0055f09b (git): Use `unpack1` instead of `unpack` and `[0]`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:06 PM Bug #13761 (Closed): incomplete format specifier
No, it's not a bug. Use "%0.0f%%" (double %) instead.
Matz
matz (Yukihiro Matsumoto)
08:49 PM Bug #13761 (Closed): incomplete format specifier
is it a bug?
```
'%0.0f%' % 45
expected
ruby 2.4.1 => '45%'
actual
ruby trunk => ArgumentError: incomplete format specifier
```
workaround
```
'%0.0f%s' % [45, '%']
=> '45%'
```
```
ruby -v
ruby 2.5.0dev (...
ahorek (Pavel Rosický)
04:47 PM Revision 93fe0ff2 (git): logger.rb: Fix handling progname
Because progname was memoized with ||= a logger call that involved
outputting false would be nil. Example code:
logger = Logger.new(STDOUT)
logger.info(false) # => nil
Perform an explicit nil check instead of ||= so that false wil...
sonots (Naotoshi Seo)
04:29 PM Feature #13665 (Closed): String#delete_suffix
Applied in changeset trunk|r59377.
----------
string.c: add String#delete_suffix and String#delete_suffix!
to remove trailing suffix [Feature #13665] [Fix GH-1661]
* string.c (rb_str_delete_suffix_bang): add a new method
to remove su...
sonots (Naotoshi Seo)
04:29 PM Revision 1da64831 (git): NEWS: Add String#delete_suffix and String#delete_suffix!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e sonots (Naotoshi Seo)
04:29 PM Revision 3f919fec (git): * 2017-07-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:29 PM Revision 510957df (git): string.c: add String#delete_suffix and String#delete_suffix!
to remove trailing suffix [Feature #13665] [Fix GH-1661]
* string.c (rb_str_delete_suffix_bang): add a new method
to remove suffix destuctively.
* string.c (rb_str_delete_suffix): add a new method
to remove suffix non-destuctively....
sonots (Naotoshi Seo)
04:25 PM Bug #13760 (Closed): Another iseq_set_sequence: adjust bug 1 < 2
After some fuzz testing I found a crashing test case.
To reproduce: miniruby ruby_iseq_set_sequence
Context:
~~~
ruby_iseq_set_sequence:3: [BUG] iseq_set_sequence: adjust bug 1 < 2
ruby 2.5.0dev (2017-07-11 trunk 59311) [x86_6...
fumfel (Kamil Frankowicz)
04:08 PM Bug #13759 (Closed): SEGV in StringScanner
ruby -rstrscan -e 's=StringScanner.new("a"); s.getbyte; s[:c]'
Eregon (Benoit Daloze)
02:56 PM Bug #13758 (Closed): TestRubyOptions#test_segv_setproctitle segfaults on AARCH64
Or may be does not segfault properly?
~~~
1) Failure:
TestRubyOptions#test_segv_setproctitle [/builddir/build/BUILD/ruby-2.5.0-r59376/test/ruby/test_rubyoptions.rb:633]:
1. [2/2] Assertion for "stderr"
| Expected /
| ...
vo.x (Vit Ondruch)
02:53 PM Bug #13757 (Closed): TestBacktrace#test_caller_lev segaults on PPC
~~~
[ 3279/17009] TestAutoload#test_threaded_accessing_inner_constant = 0.52 s
[ 3280/17009] TestBacktrace#test_argument_error_backtrace_locations = 0.00 s
[ 3281/17009] TestBacktrace#test_caller_lev/builddir/build/BUILD/ruby-2.5.0-r5...
vo.x (Vit Ondruch)
11:00 AM Revision 515ac69f (git): Remove dead code
* eval.c (errinfo_setter): dead for 10 years since r13091.
(rb_rubylevel_errinfo): not used and not exported.
usually removed or hidden by linker.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59376 b2dd03c8-39d4-4d8f-98ff-823fe...
yugui (Yuki Sonoda)
05:48 AM Bug #13756 (Closed): tDSTAR inside of defined causes [BUG]
Applied in changeset trunk|r59375.
----------
parse.y: empty hash in defined
* parse.y (command): NODE_ARRAY with NULL is invalid. traversal
in defined_expr0 is simplified than iseq_compile_each0.
[ruby-core:82113] [Bug #13756]
nobu (Nobuyoshi Nakada)
04:05 AM Bug #13756 (Closed): tDSTAR inside of defined causes [BUG]
Attached script dumps core. shyouhei (Shyouhei Urabe)
05:48 AM Revision 19e687ff (git): parse.y: empty hash in defined
* parse.y (command): NODE_ARRAY with NULL is invalid. traversal
in defined_expr0 is simplified than iseq_compile_each0.
[ruby-core:82113] [Bug #13756]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59375 b2dd03c8-39d4-4d8f-98ff-...
nobu (Nobuyoshi Nakada)
02:51 AM Bug #13746: windows-pr gemのRuby 2.4 32bit版でのSEGV
gdbを使ってスタックトレースを取ったところ、以下のスタックトレースが採取できました。
test/tc_segv.rb
```ruby
require 'windows/msvcrt/directory'
class Test
include Windows::MSVCRT::Directory
def test
chdir('..')
end
end
t = Test.new
t.test
```
...
cosmo0920 (Hiroshi Hatake)
02:43 AM Bug #13755 (Closed): Null pointer dereference in hash_table_index()
Applied in changeset trunk|r59374.
----------
compile.c: restore stack at return
* compile.c (iseq_compile_each0): restore the stack depth after
return to the previous depth, to fix the stack depth at
returning from rescue iseq. [...
nobu (Nobuyoshi Nakada)
02:43 AM Revision 8c5e7c59 (git): compile.c: restore stack at return
* compile.c (iseq_compile_each0): restore the stack depth after
return to the previous depth, to fix the stack depth at
returning from rescue iseq. [ruby-core:82108] [Bug #13755]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59...
nobu (Nobuyoshi Nakada)

07/19/2017

11:39 PM Feature #13389: [PATCH] POP3 support timeout for TLS handshake
naruse (Yui NARUSE) wrote:
> @shugo Could you review this patch?
I've tested and have merged the patch.
Thanks.
shugo (Shugo Maeda)
11:38 PM Feature #13389 (Closed): [PATCH] POP3 support timeout for TLS handshake
Applied in changeset trunk|r59373.
----------
lib/net/pop.rb: support timeout for TLS handshake
Patch by ahorek (Pavel Rosický). [ruby-core:80490] [Feature #13389]
shugo (Shugo Maeda)
11:38 PM Revision ece6c674 (git): lib/net/pop.rb: support timeout for TLS handshake
Patch by ahorek (Pavel Rosický). [ruby-core:80490] [Feature #13389]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
11:08 PM Bug #13649 (Closed): Net::IMAP doesn't support response from a Microsoft Exchange server (which is not compliant with RFC standards)
Applied in changeset trunk|r59372.
----------
lib/net/imap.rb: Ignore trailing space for Microsoft Exchange Server
Based on the patch by keysen (Jérémy Carlier).
[ruby-core:81641] [Bug #13649]
shugo (Shugo Maeda)
11:08 PM Revision 01658682 (git): lib/net/imap.rb: Ignore trailing space for Microsoft Exchange Server
Based on the patch by keysen (Jérémy Carlier).
[ruby-core:81641] [Bug #13649]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
09:59 PM Bug #13280 (Rejected): net/ftp: Putbinaryfile (on Windows) requires blocksize equal to file size
MarkDBlackwell (Mark D Blackwell) wrote:
> Just now, I returned to my client's site. I couldn't reproduce the problematic reported behavior, either. (And the Windows and Ruby versions remain unchanged.)
> ...
So I close this issue. Th...
shugo (Shugo Maeda)
09:54 PM Feature #10119 (Assigned): [PATCH] [net/imap] Add CHANGEDSINCE FETCH modifier + complementary add MODSEQ Message Data Item in FETCH Command
shugo (Shugo Maeda)
09:53 PM Feature #13721 (Assigned): [PATCH] net/imap: dedupe attr keys in Net::IMAP::FetchData
shugo (Shugo Maeda)
09:27 PM Feature #12733: Bundle bundler to ruby core
> I added test-bundler task to my experimental branch.
Thank you for your work on this. Please contact me in the Bundler slack if you have any questions or would like any help with this. I am happy to help fix the tests.
indirect (André Arko)
03:01 PM Revision 02d1c089 (git): * 2017-07-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:01 PM Revision 29029217 (git): Sort entries [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:59 PM Revision ae1c9f13 (git): NEWS: Add Hash#transform_keys and Hash#transform_keys!
[Feature #13583] [ruby-core:81290] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
10:17 AM Bug #13755 (Closed): Null pointer dereference in hash_table_index()
After some fuzz testing I found a crashing test case.
To reproduce: miniruby ruby_null_ptr_hash_table_index
Valgrind Context:
~~~
==945== Memcheck, a memory error detector
==945== Copyright (C) 2002-2015, and GNU GPL'd, by Jul...
fumfel (Kamil Frankowicz)
09:50 AM Bug #13754 (Third Party's Issue): bigdecimal with lower precision that Float
Hello,
I'm not sure if I've misunderstood the bigdecimal class but in the following example, I only get 12 significant digits using bigdecimal while using Float, I get a correct value with 17 significant digits.
~~~ ruby
# using f...
lionel_perrin (Lionel PERRIN)
03:17 AM Bug #13753 (Closed): Segfault when calling `Random::DEFAULT.rand` in forked child
Applied in changeset trunk|r59368.
----------
random.c: ensure initialized
* random.c (get_rnd, try_get_rnd): ensure initialized to get rid
of crash in forked processes. [ruby-core:82100] [Bug #13753]
nobu (Nobuyoshi Nakada)
03:16 AM Revision a14cb8ad (git): random.c: ensure initialized
* random.c (get_rnd, try_get_rnd): ensure initialized to get rid
of crash in forked processes. [ruby-core:82100] [Bug #13753]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:16 AM Revision 77f1277e (git): test_rand.rb: improved assert_fork_status
* test/ruby/test_rand.rb (assert_fork_status): deal with errors
from children.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:04 AM Bug #13150: TestMarshal failures on FreeBSD with gcc7 because of GC
> usa
I got a report for this issue about ruby-build repository.
https://github.com/rbenv/ruby-build/issues/1115
I created a patch for ruby_2_3 branch with gcc7. this patch contains r54158, r57410, r57631 and r57954.
hsbt (Hiroshi SHIBATA)
02:28 AM Revision 2cc3946d (git): st.c: adjust style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:35 AM Revision 8c57548d (git): * 2017-07-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:35 AM Revision 0493b1ce (git): revert r59359, r59356, r59355, r59354
These caused numerous CI failures I haven't been able to
reproduce [ruby-core:82102]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
 

Also available in: Atom