Project

General

Profile

Activity

From 07/10/2017 to 07/16/2017

07/16/2017

11:45 PM Revision b17efb68 (git): parse.y: refine invalid Unicode escape message
* parse.y (literal_flush): rename from numeric_literal_flush, as
it is not just for numerics now.
* parse.y (parser_tokadd_codepoint): show invalid character
position, but not the start of Unicode escape.
git-svn-id: svn+ssh://ci.r...
nobu (Nobuyoshi Nakada)
11:43 PM Bug #13556: MinGW readline Alt / Meta keys
Re-addressing this with a current build, the same issue exists. As mentioned previously, this issue will only exhibit itself when used with a MinGW build that uses the MSYS2/MinGW `readline` package. `readline` has been problematic in ... MSP-Greg (Greg L)
11:27 PM Bug #13569: Windows - TestRubyOptions#test_search - append to paths instead of replacing
Decided to re-run this test, as it's been a while. I've been applying the patch before my normal test runs, so I haven't checked for its (continued) failure for a while. Given that my test results have been consistent across all test s... MSP-Greg (Greg L)
05:55 PM Bug #13749 (Closed): Encountered a bug in the Ruby interpreter or extension libraries.
Hi,
I am using a Mac OSX 10.6.8 (Snow Leopard).
I am trying to use vagrant along with virtual box.
I have ruby v.1.9.2 and jruby installed. However, after typing Vagrant into the command line I get the following error/crash (se...
MoRubyGems (mo noorani)
03:28 PM Revision 26888a8e (git): * 2017-07-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:28 PM Revision e5b6c9c5 (git): assertions.rb: frozen string buffer
* test/lib/test/unit/assertions.rb (assert_pattern_list): make
frozen string literals modifiable as buffers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:32 PM Revision 360f85eb (git): parse.y (numeric_literal_flush): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:39 PM Bug #13742 (Closed): SIGSEGV in parser_yyerror()
Applied in changeset trunk|r59344.
----------
parse.y: utf-8 codepoints
* parse.y (parser_tokadd_utf8): skip spaces in the current line,
without advancing the line, to get rid of dangling pointer.
[ruby-core:82029] [Bug #13742]
nobu (Nobuyoshi Nakada)
01:39 PM Revision 80d502b8 (git): parse.y: utf-8 codepoints
* parse.y (parser_tokadd_utf8): skip spaces in the current line,
without advancing the line, to get rid of dangling pointer.
[ruby-core:82029] [Bug #13742]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59344 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
11:35 AM Revision f01f98f0 (git): * 2017-07-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:35 AM Revision 019f21e5 (git): Use assert_syntax_error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

07/15/2017

09:13 PM Bug #13501: Process.kill behaviour for negative pid is not documented and may be wrong
What do you think about intercepting negative pid and also using it to set `negative`, so that behaviour is consistent on ruby side and `killpg` is used when needed? toy (Ivan Kuchin)
11:24 AM Bug #13501: Process.kill behaviour for negative pid is not documented and may be wrong
We looked at this issue at yesterday's developer meeting and agreed that the acceptance of negative pid shall be documented.
But killing other process is ultimately dome by the platform. It seems not possible to completely remove pla...
shyouhei (Shyouhei Urabe)
04:15 PM Bug #13748: [PATCH] Fix mul overflow detection for LLP64 arch.
Just updated to gcc 7.1.0, and built trunk `ruby 2.5.0dev (2017-07-15 trunk 59341) [x64-mingw32]` with Lars' patch, and **all tests results were as expected**.
Build/test logs are at Bintray - [z_logs_2017-07-15_59341.7z](https://dl.b...
MSP-Greg (Greg L)
01:36 PM Bug #13748 (Closed): [PATCH] Fix mul overflow detection for LLP64 arch.
FIXNUMs are expected to fit into a long type, but the test in MUL_OVERFLOW_FIXNUM_P() is about the VALUE type. Since long is smaller than VALUE on LLP64, the overflow is not detected. As an exemplary result "2**31" evaluates to "-2147483... larskanis (Lars Kanis)
11:25 AM Bug #13513 (Assigned): Resolv::DNS::Message.decode hangs after detecting truncation in UDP messages
shyouhei (Shyouhei Urabe)
08:29 AM Revision 70af8d3c (git): parse.y: refine error messages
* parse.y (parser_read_escape, parser_tok_hex): refine error
messages. point from the backslash up to the invalid char.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:24 AM Revision a7452a8f (git): test_lexer.rb: require ripper directly
* test/ripper/test_lexer.rb: This file does not use
DummyParser, so requiring ripper directly instead of
requiring dummyparser.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yui-knk (Kaneko Yuichiro)
04:35 AM Revision 3cfbd610 (git): * 2017-07-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:35 AM Revision 40dad62c (git): Fix warning: shadowing outer local variable - a
[ci skip][Fix GH-1628]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
03:08 AM Bug #13586 (Assigned): Ruby hangs when accessing array which is modified in instance_eval after Coverage.start
shyouhei (Shyouhei Urabe)
03:07 AM Bug #13631 (Assigned): Cannot disable site and vendor directories
shyouhei (Shyouhei Urabe)
02:24 AM Bug #13655 (Assigned): external encoding named "-" (doc issue or…?)
We looked at this issue at yesterday's developer meeting and none of attendees remembered there has been any plans to have this feature. It seems to be a doc issue. Please delete this part. shyouhei (Shyouhei Urabe)
02:22 AM Bug #13660: rb_str_hash_m discards bits from the hash
We looked at this issue at yesterday's developer meeting.
The attendees agree that current behaviour is intentional. Because creating Bignums every time is too slow for this experiential hot spot, we want to avoid such thing and stic...
shyouhei (Shyouhei Urabe)

07/14/2017

05:17 PM Bug #13745: How to download latest build package for Windows 32/64?
Do also note that there is a *nix "subsystem" on Win10 since a while. I tried it and you can currently run ubuntu there or a ubuntu-like system.
This is of course not 100% the same as an .exe but my point is that you can actually use...
shevegen (Robert A. Heiler)
11:03 AM Bug #13745: How to download latest build package for Windows 32/64?
The most common binary package for Windows is the RubyInstaller. Stable releases are provided in the download section of https://rubyinstaller.org . Daily development snapshots can be downloaded as build artefacts from appveyor: https://... larskanis (Lars Kanis)
07:02 AM Bug #13745 (Closed): How to download latest build package for Windows 32/64?
As far as Ruby CI and CRuby development, we don't provide binary package.
It just build and trash away the package built in the instruction.
I don't know RubyInstaller CI and it is not handled here.
naruse (Yui NARUSE)
02:18 AM Bug #13745 (Rejected): How to download latest build package for Windows 32/64?
This is my first question, it look like not much for the dev group.
I need to download latest build package for Windows 32/64 but not able to find out. I see Ruby has 2 ci/ build server.
+ Ruby CI
+ RubyInstaller CI
I try to ac...
hellio6 (Luc Vu)
03:59 PM Misc #13747 (Closed): MinGW trunk build available on Appveyor
As many of you know, I have been building MinGW for quite a while, and posting results at [Ruby MinGW Test Results](https://msp-greg.github.io/file.mingw_test-all.html).
I recently added a 64-bit build to [BinTray](https://dl.bintray....
MSP-Greg (Greg L)
01:50 PM Revision 5d6c1f42 (git): zlib.c: fix unnormalized Fixnum
* ext/zlib/zlib.c (rb_gzfile_total_out): cast to long not to
result in an unsigned long to normalized to Fixnum on LLP64
platforms. [ruby-core:81488]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59337 b2dd03c8-39d4-4d8f-98ff-8...
nobu (Nobuyoshi Nakada)
10:53 AM Bug #13350 (Closed): File.read :newline option not respected on Linux
Applied in changeset trunk|r59336.
----------
io.c: textmode if newline decorator
* io.c (validate_enc_binmode): newline decorator implies text mode
now. [ruby-core:80270] [Bug #13350]
nobu (Nobuyoshi Nakada)
08:35 AM Bug #13350 (Assigned): File.read :newline option not respected on Linux
hsbt (Hiroshi SHIBATA)
08:25 AM Bug #13350: File.read :newline option not respected on Linux
It seems to be a nice idea to turn text-mode on with `newline` option.
Matz.
matz (Yukihiro Matsumoto)
10:53 AM Revision 57464618 (git): io.c: textmode if newline decorator
* io.c (validate_enc_binmode): newline decorator implies text mode
now. [ruby-core:80270] [Bug #13350]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:31 AM Revision f7ef047f (git): VPATH for ripper
* common.mk (ripper.c): pass the build directory path for id.h
which may be generated there.
* ext/ripper/depend (ripper.y): search the top build directory and
the top source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
nobu (Nobuyoshi Nakada)
09:51 AM Bug #13671: Regexp with lookbehind and case-insensitivity raises RegexpError only on strings with certain characters
I created a ticket in upstream: https://github.com/k-takata/Onigmo/issues/92 naruse (Yui NARUSE)
09:41 AM Revision 677751e1 (git): hash.c: fix possible crash in Hash#transform_keys!
Fix up r59328. It is possible that the given block abuses
ObjectSpace.each_object to shrink the temporary array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
rhenium (Kazuki Yamaguchi)
09:28 AM Bug #13654 (Assigned): irb save-history extension is not concurrency-safe
naruse (Yui NARUSE)
09:26 AM Bug #13649 (Assigned): Net::IMAP doesn't support response from a Microsoft Exchange server (which is not compliant with RFC standards)
naruse (Yui NARUSE)
09:20 AM Bug #13564: Exception message management
Now we have Exception#cause.
Therefore it should be
```ruby
begin
raise 'foo'
ensure
raise 'bar'
end
```
naruse (Yui NARUSE)
09:01 AM Bug #13564: Exception message management
I understand the principle. But I think it's a programmer's fault to modify the string.
I don't think it's worth prohibiting (and making implementation more complex).
Matz.
matz (Yukihiro Matsumoto)
09:18 AM Bug #13616 (Closed): Zlib::GzipReader#pos underflows after calling #ungetbyte or #ungetc at start of file
Applied in changeset trunk|r59333.
----------
Zlib::GzipReader#pos underflows after calling #ungetbyte or #ungetc at start of file [Bug #13616]
patched by Andrew Haines <andrew@haines.org.nz> [ruby-core:81488]
naruse (Yui NARUSE)
09:17 AM Revision 7c9c2bc1 (git): Zlib::GzipReader#pos underflows after calling #ungetbyte or #ungetc at start of file [Bug #13616]
patched by Andrew Haines <andrew@haines.org.nz> [ruby-core:81488]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:17 AM Bug #13593 (Feedback): Addrinfo#== behaves oddly
It is difficult compare Addrinfo objects precisely if not impossible.
Using Addrinfo#inspect as addrinfo_eql.diff is fragile.
Addrinfo is basically struct addrinfo which contains struct sockaddr.
Byte-to-byte comparison may not wo...
akr (Akira Tanaka)
09:01 AM Feature #13731 (Assigned): inode for Windows on ReFS
naruse (Yui NARUSE)
08:51 AM Feature #10674 (Assigned): Net::HTTP retries idempotent requests once after a timeout, but its not configurable
naruse (Yui NARUSE)
08:48 AM Bug #13521 (Third Party's Issue): [PATCH] Add fallback for DNS resolver registry key on Wine
As far as I understand this is Wine's issue.
Wine should have the registry key.
naruse (Yui NARUSE)
08:46 AM Feature #13676 (Closed): to_s method is not overriden for Set
Applied in changeset trunk|r59332.
----------
Alias Set#to_s to #inspect [ruby-core:81753] [Feature #13676]
knu (Akinori MUSHA)
08:19 AM Feature #13676 (Assigned): to_s method is not overriden for Set
Makes sense. I'll add to_s as an alias to inspect. knu (Akinori MUSHA)
08:46 AM Revision d893c123 (git): Alias Set#to_s to #inspect [ruby-core:81753] [Feature #13676]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
08:46 AM Revision cb1d634d (git): Make tests for Set#inspect more straightforward
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
08:34 AM Bug #13429 (Assigned): Net::SMTP has no read timeout when connexion over TLS
hsbt (Hiroshi SHIBATA)
08:33 AM Bug #13391 (Assigned): wrong number of arguments error for Hash#map when lambda given
>ko1
Please review https://github.com/ruby/ruby/compare/trunk...nobu:bug/13391-map-arity
hsbt (Hiroshi SHIBATA)
08:32 AM Bug #13404 (Rejected): Hash#any? yields arguments to lambdas with proc semantics
We continues to discuss #13391 hsbt (Hiroshi SHIBATA)
08:26 AM Feature #13389 (Assigned): [PATCH] POP3 support timeout for TLS handshake
@shugo Could you review this patch? naruse (Yui NARUSE)
08:21 AM Bug #13735 (Assigned): Initialization-error of sortedset
knu (Akinori MUSHA)
07:47 AM Revision 7eb444d9 (git): Update gemspec for standalone gem that is ruby/date repository.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
07:35 AM Bug #13535: Installing Ruby2.4.1 on Solaris 10
確かに頑張ってGNU makeを指定すると言う方向性もなくはないのですが、基本的にはCRuby添付のlibffiはlibffiパッケージが提供されていない環境、
具体的にはWindowsのVisual C++環境を想定してのものなので、Rubyインストール前にlibffiをインストールして頂けますか。
Solarisではパッケージで提供されているはずです。
なお、configureに--without-fiddleを指定してそもそもfiddleをビルドしないと...
naruse (Yui NARUSE)
07:13 AM Revision 507d295b (git): Fixup r59327. Forgot to update version number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
06:44 AM Feature #13583 (Closed): Adding `Hash#transform_keys` method
Applied in changeset trunk|r59328.
----------
hash.c: Add Hash#transform_keys and Hash#transform_keys!
* hash.c (transform_keys_i, rb_hash_transform_keys): Add Hash#transform_keys.
[Feature #13583] [ruby-core:81290]
* hash.c (rb_has...
mrkn (Kenta Murata)
05:33 AM Feature #13583: Adding `Hash#transform_keys` method
Looks good to me.
Matz.
matz (Yukihiro Matsumoto)
06:44 AM Revision 14051117 (git): hash.c: Add Hash#transform_keys and Hash#transform_keys!
* hash.c (transform_keys_i, rb_hash_transform_keys): Add Hash#transform_keys.
[Feature #13583] [ruby-core:81290]
* hash.c (rb_hash_transform_keys_bang): Add Hash#transform_keys!.
[Feature #13583] [ruby-core:81290]
* test/ruby/test_...
Kenta Murata
06:39 AM Feature #13743 (Rejected): Support linking of files opened with O_TMPFILE
This API is pretty simple but only works on Linux. I am not positive to add platform-specific features to the language core. I'd rather recommend considering making it a gem.
Matz.
matz (Yukihiro Matsumoto)
06:28 AM Feature #13743: Support linking of files opened with O_TMPFILE
I feel this is too Linux and environment specific.
For example, it depends /proc/fd.
I think that it is better to provide linkat(2) directly.
(Extend File.link or add File.linkat.)
akr (Akira Tanaka)
01:46 AM Feature #13743: Support linking of files opened with O_TMPFILE
normalperson (Eric Wong) wrote:
> However, `PATH_MAX` (4096 on Linux) is excessive use of stack.
> ...
```c
static const char self_fd[] = "/proc/self/fd/%d";
char from_path[sizeof(self_fd) - 2 + DECIMAL_SIZE_OF_BITS(sizeof(int))];
```
nobu (Nobuyoshi Nakada)
06:38 AM Bug #13746 (Closed): windows-pr gemのRuby 2.4 32bit版でのSEGV
windows-pr gemのCI対象にRuby 2.4 32/64bit版の両方を加えてAppVeyorにてCIを走らせたところ、SEGVが発生しました。
このSEGVはRuby 2.4の64bit版(ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32])では発生しません。
windows-prのリポジトリは https://github.com/cosmo0920/windows-pr です。
g...
cosmo0920 (Hiroshi Hatake)
06:15 AM Revision 0b396d58 (git): Merge psych-3.0.0.beta3 from ruby/psych.
* Rely on encoding tags to determine if string should be dumped as binary.
https://github.com/ruby/psych/commit/8949a47b8cee31e03e21608406ba116adcf74054
* Specify "frozen_string_literal: true".
* Support to binary release for min...
hsbt (Hiroshi SHIBATA)
06:12 AM Feature #13666 (Closed): Development: Writing test code for new features/bug fixes can be done as specs under spec/rubyspec instead of tests under test/
We discussed this this issue at today's Ruby Committer meeting.
We agreed that the new setup makes it easier to write specs. It is no longer necessary to also write tests for MRI.
We noted that different developers may be more or l...
duerst (Martin Dürst)
06:07 AM Feature #13665: String#delete_suffix
Looks good to me.
Matz.
matz (Yukihiro Matsumoto)
05:44 AM Feature #13729: PATCH: Add Server Name Indication (SNI) support to WEBrick
ごめんなさい。前回送ったパッチですが、不完全でした。正しくContextを返していませんでした。
テスト時に大ぽかしてSAN証明書を参照していたため、見誤っていました。
そこの修正と、正しい証明書が提示されたことを確認するテストを追加したパッチを追加します。
Tietew (Toru Iwase)
05:33 AM Revision e870af88 (git): Added psych entry to package table and fixed sync instructions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
04:43 AM Revision 1e84c834 (git): process.c: null bytes
* process.c (rlimit_type_by_sym): prohibit null bytes in key
names. [ruby-core:82033] [Bug #13744]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

07/13/2017

11:55 PM Revision a39ad0f0 (git): Use tr! instead of gsub!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:32 PM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
ko1@atdot.net wrote:
> sorry for long absent about this topic. it is hard task (hard
> to start writing up because of problem difficulties and my
> English skil ;p ) to summarize about this topic.

No problem, thank you for summari...
normalperson (Eric Wong)
08:37 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
sorry for long absent about this topic. it is hard task (hard to start writing up because of problem difficulties and my English skil ;p ) to summarize about this topic.
I try to write step by step.
----
# Discussion at last dev...
ko1 (Koichi Sasada)
09:16 PM Bug #13744 (Closed): Spawn doesn't work with options of symbol keys generated dynamically
reclosing to trigger backport request
normalperson (Eric Wong)
09:15 PM Bug #13744 (Open): Spawn doesn't work with options of symbol keys generated dynamically
fixed in r59322, will need backports
normalperson (Eric Wong)
08:47 PM Bug #13744 (Closed): Spawn doesn't work with options of symbol keys generated dynamically
Applied in changeset trunk|r59322.
----------
process.c: handle dynamic :rlimit_* symbols in spawn execopts
* process.c (rb_execarg_addopt_rlimit): hoist out of rb_execarg_addopt
(rlimit_type_by_sym): new wrapper for dynamic symbol
...
Anonymous
08:02 PM Bug #13744: Spawn doesn't work with options of symbol keys generated dynamically
satoryu.1981@gmail.com wrote:
> But spawn fails when generating symbol from a String:
>
> ~~~
> $ ruby -e 'spawn("ls", "rlimit_cpu".to_sym => 100)'
> -e:1:in `spawn': wrong exec option symbol: rlimit_cpu (ArgumentError)
> ...
normalperson (Eric Wong)
01:14 PM Bug #13744: Spawn doesn't work with options of symbol keys generated dynamically

hm on my windows machine:
~~~
ruby -e 'spawn("ls", :rlimit_cpu => 100)'
~~~
causes a syntax error
PS:
i did install ruby in my mingw (ruby 2.3.3p222), there i get similar problem like yours:
~~~
$ ruby -e 'spawn("ls", :...
Hanmac (Hans Mackowiak)
12:31 PM Bug #13744: Spawn doesn't work with options of symbol keys generated dynamically
Very interesting behaviour. I would have assumed for both to behave the same in the above case. shevegen (Robert A. Heiler)
11:44 AM Bug #13744 (Closed): Spawn doesn't work with options of symbol keys generated dynamically
spawn works when giving options whose key is symbol literal:
~~~
$ ruby -e 'spawn("ls", :rlimit_cpu => 100)'
~~~
But spawn fails when generating symbol from a String:
~~~
$ ruby -e 'spawn("ls", "rlimit_cpu".to_sym => 100)'
...
satoryu (Tatsuya Sato)
09:08 PM Feature #13743: Support linking of files opened with O_TMPFILE
glass.saga@gmail.com wrote:
> Feature #13743: Support linking of files opened with O_TMPFILE
> https://bugs.ruby-lang.org/issues/13743

I like this feature.

> patch.diff (2.44 KB)
> ```diff
> + if (!NIL_P(tmp) && f...
normalperson (Eric Wong)
11:33 AM Feature #13743: Support linking of files opened with O_TMPFILE
Extension of `File.link`, but not `File#link`? nobu (Nobuyoshi Nakada)
11:18 AM Feature #13743 (Rejected): Support linking of files opened with O_TMPFILE
This patch enables linking of files opened with O_TMPFILE into file system.
Users can make a temporary file persistent as named file.
```ruby
File.open(".", IO::WRONLY|IO::TMPFILE) do |f|
f.write("content")
f.chmod(0600)
Fi...
Glass_saga (Masaki Matsushita)
08:47 PM Revision 24e4a877 (git): * 2017-07-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:47 PM Revision 5c4db58b (git): process.c: handle dynamic :rlimit_* symbols in spawn execopts
* process.c (rb_execarg_addopt_rlimit): hoist out of rb_execarg_addopt
(rlimit_type_by_sym): new wrapper for dynamic symbol
(rb_execarg_addopt): check for dsym via rlimit_type_by_sym
* test/ruby/test_process.rb (test_execopts_rlimit)...
Eric Wong
11:01 AM Feature #13696: Add exchange and noreplace options to File.rename
I think atomicity is important. If the kernel doesn't support atomic exchange, File.exchange should raise NotImplementedError and users can handle it properly.
```ruby
begin
File.exchange("hoge", "fuga")
rescue NotImplementedErro...
Glass_saga (Masaki Matsushita)
10:20 AM Bug #13742 (Closed): SIGSEGV in parser_yyerror()
After some fuzz testing I found a crashing test case.
To reproduce: miniruby ruby_sigsegv_parser_yyerror
Valgrind Context:
```
==20061== Memcheck, a memory error detector
==20061== Copyright (C) 2002-2017, and GNU GPL'd, by Ju...
fumfel (Kamil Frankowicz)
09:46 AM Revision 24873d1a (git): Use Test::Unit::TestCase instead of MiniTest::Unit::TestCase. Because
tests of fiddle already used customized assertions of ruby core.
* test/fiddle/helper.rb: Use Test::Unit::TestCase for base class of
testcase.
* test/fiddle/test_*.rb: Use assert_raise instead of assert_raises.
Remove needle...
hsbt (Hiroshi SHIBATA)
08:11 AM Feature #13715: [PATCH] avoid garbage from Symbol#to_s in interpolation
ko1@atdot.net wrote:
> > VALUE rb_vm_call0_body(rb_thread_t *th, struct rb_calling_info *calling,
>
> You don't need to expose `vm_call0_body()` because ` vm_eval.c` and ` vm_insnhelper.c` are included in `vm.c`.

Ah, thanks. I j...
normalperson (Eric Wong)
02:48 AM Feature #13715: [PATCH] avoid garbage from Symbol#to_s in interpolation
> VALUE rb_vm_call0_body(rb_thread_t *th, struct rb_calling_info *calling,
You don't need to expose `vm_call0_body()` because ` vm_eval.c` and ` vm_insnhelper.c` are included in `vm.c`.
```
if (RB_TYPE_P(recv, T_SYMBOL)) {
v...
ko1 (Koichi Sasada)
07:41 AM Feature #13434: better method definition in C API
ko1@atdot.net wrote:
> I wrote the following sentences in hastily so sorry if it has
> English grammar problems.

<snip> no problem.

> normalperson (Eric Wong) wrote:
> > Yes, that would be great. However, we will take ...
normalperson (Eric Wong)
04:29 AM Feature #13434: better method definition in C API
I wrote the following sentences in hastily so sorry if it has English grammar problems.
normalperson (Eric Wong) wrote:
> Sorry, I wasn't sure what you wanted the last time this came up.
> ...
Yes. and I understand.
> Yes, that...
ko1 (Koichi Sasada)
07:00 AM Revision 52e8254b (git): parse.y: flush debug output
* parse.y (parser_compile_error): flush debug output before
compile error message, to keep the order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:32 AM Bug #13737: "can't modify frozen String" when installing bundled gems
ko1@atdot.net wrote:
> Thank you for survey.

No problem :)

> normalperson (Eric Wong) wrote:
> > > I think we don't need to prepare frozen string table for tainted string because most of people don't use tainted strings. We nee...
normalperson (Eric Wong)
05:46 AM Bug #13737: "can't modify frozen String" when installing bundled gems
Thank you for survey.
normalperson (Eric Wong) wrote:
> > I think we don't need to prepare frozen string table for tainted string because most of people don't use tainted strings. We need to measure the counts of that before commit ...
ko1 (Koichi Sasada)
03:41 AM Bug #13737: "can't modify frozen String" when installing bundled gems
ko1@atdot.net wrote:
> Sorry for late response
> (because of my health problem and so on...)

No problem, I hope you feel better, soon. Thank you for any
response you give :)

> I think we don't need to prepare frozen string tab...
normalperson (Eric Wong)
02:01 AM Bug #13737: "can't modify frozen String" when installing bundled gems
Sorry for late response
(because of my health problem and so on...)
I think we don't need to prepare frozen string table for tainted string because most of people don't use tainted strings. We need to measure the counts of that befor...
ko1 (Koichi Sasada)
04:21 AM Feature #13740: [PATCH] doc/extension.rdoc: start entries for threading and IO
ko1@atdot.net wrote:
> > void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1, rb_unblock_function_t *ubf, void *data2) ::
>
> You need to mention that `func` is not allowed to call any
> `rb_` functions (there are ...
normalperson (Eric Wong)
02:31 AM Feature #13740: [PATCH] doc/extension.rdoc: start entries for threading and IO
> void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1, rb_unblock_function_t *ubf, void *data2) ::
You need to mention that `func` is not allowed to call any `rb_` functions (there are exceptions but it should be used ...
ko1 (Koichi Sasada)
01:11 AM Feature #13740: [PATCH] doc/extension.rdoc: start entries for threading and IO
shevegen@gmail.com wrote:
> Looks ok to me - at the least I could not spot grammatical
> errors or typo glancing through it 1-2 times. I have of course
> no idea about threads themselves really so perhaps someone
> should also look ...
normalperson (Eric Wong)
12:11 AM Feature #13740: [PATCH] doc/extension.rdoc: start entries for threading and IO
Looks ok to me - at the least I could not spot grammatical errors or typos glancing through it 1-2 times. I have of course no idea about threads themselves really so perhaps someone should also look through who actually knows that stuff ... shevegen (Robert A. Heiler)
03:28 AM Feature #9323: IO#writev
> It would be great if #write could take an array, and if possible, call writev.
That's would be nice.
```
File.open("test", "w") do |f|
f.write("foo", "bar", "baz") # use writev(2) if possible
end
```
Glass_saga (Masaki Matsushita)
03:17 AM Bug #13741 (Closed): A documentation bug of IO#putc
The documentation of IO#putc says:
```
* call-seq:
* ios.putc(obj) -> obj
*
* If <i>obj</i> is
shugo (Shugo Maeda)

07/12/2017

10:41 PM Bug #13737: "can't modify frozen String" when installing bundled gems
Eric Wong <normalperson@yhbt.net> wrote:
> nobu@ruby-lang.org wrote:
> > Or should `fstring_cmp` consider also tainted flags?
>
> I considered doing that, but it may not be optimal since I want
> to share heap allocations with the...
normalperson (Eric Wong)
07:08 AM Bug #13737: "can't modify frozen String" when installing bundled gems
nobu@ruby-lang.org wrote:
> Or should `fstring_cmp` consider also tainted flags?

I considered doing that, but it may not be optimal since I want
to share heap allocations with the non-tainted version via
rb_str_dup.
normalperson (Eric Wong)
05:59 AM Bug #13737: "can't modify frozen String" when installing bundled gems
Or should `fstring_cmp` consider also tainted flags? nobu (Nobuyoshi Nakada)
01:11 AM Bug #13737: "can't modify frozen String" when installing bundled gems
Eric Wong <normalperson@yhbt.net> wrote:
> ko1@atdot.net wrote:
> ...
Maybe the following works (barely tested, but I have to go...)
```diff
---
hash.c | 23 +----------
internal.h | ...
normalperson (Eric Wong)
09:53 PM Feature #13740 (Closed): [PATCH] doc/extension.rdoc: start entries for threading and IO
Some of it derived from existing documentation in thread.c,
and some of it original. It seems extension.rdoc is getting
large, so maybe it is better broken up into separate manpages
(section "3ruby", maybe?)
Anybody care to revi...
normalperson (Eric Wong)
06:31 PM Revision d15cc7a6 (git): doc/extension.rdoc: update wikipedia link to HTTPS
Avoid the latency for HTTP -> HTTPS redirect
* doc/extension.rdoc: update wikipedia link to HTTPS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
03:02 PM Revision 98f0a528 (git): * 2017-07-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:02 PM Revision b25b9d45 (git): Fix indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:06 PM Bug #13739: Backport r59312
ruby_2_4 r59316 merged revision(s) 59312. nagachika (Tomoyuki Chikanaga)
12:35 PM Bug #13739 (Closed): Backport r59312
バックポート管理用チケットです。 nagachika (Tomoyuki Chikanaga)
02:06 PM Revision f1306d42 (git): merge revision(s) 59312: [Backport #13739]
optparse.rb: get rid of eval
* lib/optparse.rb: try Float() and Integer() instead of eval,
which does too much things.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@59316 b2dd03c8-39d4-4d8f-98ff-823fe6...
nagachika (Tomoyuki Chikanaga)
01:38 PM Bug #13727: Not able to set program_name for new Syslog::Logger
Thank you!
Sorry, I haven't noticed this documentation.
printercu (Max Melentiev)
10:29 AM Bug #13738: Active Scaffold image upload using CarrierWave gem
karanamsandhya (Karanam Sandhya) wrote:
> getting Encoding::UndefinedConversionError ("\xFF" from ASCII-8BIT to UTF-8): this error while uploding the image.
There's definitely no error in Ruby itself, in the encoding "ASCII-8BIT", on...
duerst (Martin Dürst)
10:00 AM Bug #13738 (Third Party's Issue): Active Scaffold image upload using CarrierWave gem
Did you see https://github.com/carrierwaveuploader/carrierwave/issues/1404?
As far as I can see from your description, it's unlikely to be a bug in Ruby-side. Please confirm the issue and then could you report it to carrierwave or Rails?
k0kubun (Takashi Kokubun)
07:45 AM Bug #13738 (Third Party's Issue): Active Scaffold image upload using CarrierWave gem
getting Encoding::UndefinedConversionError ("\xFF" from ASCII-8BIT to UTF-8): this error while uploding the image. and image params are like this:
"photo"=>#<ActionDispatch::Http::UploadedFile:0x007fbcc2925c80 @tempfile=#<Tempfile:/tm...
karanamsandhya (Karanam Sandhya)
09:44 AM Revision b226a8b0 (git): disable r59314 on mswin
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:30 AM Revision 5bdb4e05 (git): gc.c: restrict RGENGC_DEBUG
* gc.c (RGENGC_DEBUG_ENABLED): restrict runtime ruby_rgengc_debug
level up to -RGENGC_DEBUG, to reduce runtime branches in inner
loops.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:49 AM Revision 5235446a (git): * 2017-07-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:49 AM Revision 89bf90a3 (git): optparse.rb: get rid of eval
* lib/optparse.rb: try Float() and Integer() instead of eval,
which does too much things.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

07/11/2017

08:22 PM Bug #13737: "can't modify frozen String" when installing bundled gems
ko1@atdot.net wrote:
> Not sure why but r59310 will fix it (at least on my
> environment). To complete it i think we need to dig into
> rubygems deeply....

It seems Psych is correct to be tainting keys with YAML.load.
Perhaps the...
normalperson (Eric Wong)
08:51 AM Bug #13737: "can't modify frozen String" when installing bundled gems
ko1 (Koichi Sasada) wrote:
> Not sure why but r59310 will fix it (at least on my environment). To complete it i think we need to dig into rubygems deeply....
I got virtually the same error message on cygwin (with context just in case...
duerst (Martin Dürst)
07:51 AM Bug #13737: "can't modify frozen String" when installing bundled gems
ko1@atdot.net wrote:
> Not sure why but r59310 will fix it (at least on my
> ...
Thank you. I think there may also be an old bug at early
initializtion when rb_cString == 0 causing unfrozen string keys
form hash_aset instead of hash...
normalperson (Eric Wong)
07:45 AM Bug #13737: "can't modify frozen String" when installing bundled gems
Not sure why but r59310 will fix it (at least on my environment). To complete it i think we need to dig into rubygems deeply....
ko1 (Koichi Sasada)
06:55 AM Bug #13737 (Closed): "can't modify frozen String" when installing bundled gems
After committed r59304, mswin CI often (but not always) reports errors when installing bundled gems.
For example, http://mswinci.japaneast.cloudapp.azure.com/vc12-x64/ruby-trunk/log/20170710T020413Z.fail.html.gz
I've not investigated...
usa (Usaku NAKAMURA)
02:43 PM Feature #13726: PATCH: Windows builds - fractional second file times
While running tests today on `ruby 2.5.0dev (2017-07-11 trunk 59311) [x64-mingw32]`, I had an error in [spec/rubyspec/core/file/utime_spec](https://github.com/ruby/ruby/blob/561c253512eb83dba822d50ccc95a90187ab945e/spec/rubyspec/core/fil... MSP-Greg (Greg L)
07:42 AM Revision 561c2535 (git): * 2017-07-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:42 AM Revision 5168fb54 (git): tainted string should be tainted.
* hash.c (hash_aset_str): create frozen string for tainted objects.
(should not use fsting table on this case).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:11 AM Bug #5497: Math.log10(10_000) error on HP-UX/PA
Please try more precision.
The default precision doesn't seem enough.
```c
#include <math.h>
#include <stdio.h>
int main(void) {
printf("%.19f\n", log10(10000));
return 0;
}
```
nobu (Nobuyoshi Nakada)
03:34 AM Feature #12733: Bundle bundler to ruby core
I added `test-bundler` task to my experimental branch.
https://github.com/ruby/ruby/pull/1536/commits/5aa6d9a4340f8e6a54c9411e56c835c7f026abe3
It install rspec under the $(srcdir)/.bundle directory and use it by bundler test.
Bu...
hsbt (Hiroshi SHIBATA)

07/10/2017

05:02 PM Bug #13730: Parallel ext configuration has broken `make install` for static-linked-ext builds
Can confirm this fixes it for me - thanks! mistydemeo (Misty De Meo)
11:42 AM Revision d2dd18ed (git): compile.c: simplify defined_expr0
* compile.c (defined_expr0): exapnd defined_expr macro.
* compile.c (defined_expr0): reduce duplicate code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:41 AM Bug #13736: ruby -00 should be the same as setting $/=""
```diff
diff --git i/ruby.c w/ruby.c
index b2b2c690ff..4497331d48 100644
--- i/ruby.c
+++ w/ruby.c
@@ -1162,7 +1162,7 @@ proc_options(long argc, char **argv, ruby_cmdline_options_t *opt, int envopt)
if (v > 0377)
rb_rs =...
nobu (Nobuyoshi Nakada)
06:29 AM Bug #13736 (Assigned): ruby -00 should be the same as setting $/=""
I agree that it's a bug because ruby.1 states `-00 turns Ruby into paragraph mode.`
I'm uncertain the reason though, this behavior has been there since 0.95 at least, but 0.49 behaved same as perl.
nobu (Nobuyoshi Nakada)
05:08 AM Bug #13736: ruby -00 should be the same as setting $/=""
Please see Stackoverflow https://stackoverflow.com/q/44999907/298607 for a better / more complete description. dawg (Andrew Dumke)
05:06 AM Bug #13736 (Closed): ruby -00 should be the same as setting $/=""
Suppose you have blocks of text separated by 2 or more \n. A typical text file with records defined by a black line.
Given:
```
$ cat lines
f1, r1
f2, r1 then 2 \n:
f1, r2 then 3 \n:
f1,r3
f2,r3 then 4 \n:
f1, r...
dawg (Andrew Dumke)
07:37 AM Revision 5ed1d88e (git): test_rubyoptions.rb: assert -00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:57 AM Bug #13284 (Closed): IA64 ruby 2.4 miniruby segfault
Applied in changeset trunk|r59307.
----------
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 <slyf...
takano32 (Mitsuhiro TAKANO)
06:57 AM Revision 7aa74a0d (git): 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-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59307 b2dd03c8-39d4-4d8f-98ff-...
takano32 (Mitsuhiro TAKANO)
02:24 AM Feature #13712: String#start_with? with regexp
Shyouhei Urabe) wrote:
> +1 for start_with? but I have no practical usage of end_with? so a bit negative about
> ...
I do not know if the use case frequency is the same. Perhaps you are right that anchoring
or .start_with? is more f...
shevegen (Robert A. Heiler)
01:18 AM Bug #13735 (Closed): Initialization-error of sortedset
When we use multithreading environment, sortedset-initialization always fails.
Reproducible programs and the logs are below.
~~~ ruby
$ cat sortedset-test.rb
require "set"
def func1
set = SortedSet.new([2, 1, 5, 6, 4, 5, ...
junjihashimoto (Junji Hashimoto)
12:41 AM Revision f1fe99b1 (git): hash.c: prefer value cast to pointer cast
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
 

Also available in: Atom