Project

General

Profile

Activity

From 04/02/2018 to 04/08/2018

04/08/2018

07:39 PM Revision 784fdba3 (git): * 2018-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:39 PM Revision d33ddd63 (git): parse.y: fix docs for Ripper.dedent_string
* parse.y: [DOC] fix return type in call-seq of Ripper.dedent_string,
clarify the method's behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
stomar (Marcus Stollsteimer)
01:46 PM Bug #14668: Ruby2.6.0-preview1とtrunkでnmatrixがコンパイルできない
r61843 以降、ALLOCA_N マクロの中で(利用可能なときには) RUBY_ALIGNOF マクロを利用するようになったことがきっかけのようです。
ただこれはきっかけというだけで、どちらかというと RUBY_ALIGNOF マクロが config.h の中に `_Alignof` の形で定義されていて、nmatrix のように C++ のプログラム中で用いる場合にも `alignof` にはなってくれないことの方がより根本的な原因のように見えます。
wanabe (_ wanabe)
11:17 AM Revision 610dc339 (git): compile.c: disable debug prints on sparc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:12 AM Revision fda1837e (git): compile.c: fix an exception argument
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:11 AM Feature #14669: Regexp does not expose the amount of capture groups.
This information is available for named captures via Regexp#names and Regexp#named_captures, but it doesn't seem available for unnamed capture groups:
~~~ruby
[15] pry(main)> /(?<one>a)(?<two>b)(?<three>c)/.named_captures
=> {"one"=...
Eregon (Benoit Daloze)
07:26 AM Feature #14669: Regexp does not expose the amount of capture groups.
Can you give a few examples of how this may be used, and explain what's the purpose of getting the number of capture groups before actual matching?
Also, can you show an example what you think the actual interface (e.g. method name) w...
duerst (Martin Dürst)
04:26 AM Feature #14669: Regexp does not expose the amount of capture groups.
Should be added; may have just been forgotten if Onigmo already
supports that.
shevegen (Robert A. Heiler)
08:28 AM Revision a72a50b1 (git): compile.c: suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:20 AM Revision 0f8368ca (git): compile.c: align ibf_object_header
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:42 AM Revision 89a6a4ec (git): compile.c: debug prints in ibf_load_object
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:31 AM Revision 6ce79866 (git): [DOC] `*` in glob matches `\n` too [ci skip]
```
File.fnmatch("a*b", "a\nb") # => true
/\Aa.*b\z/x.match?("a\nb") # => false
/\Aa.*b\z/mx.match?("a\nb") # => true
```
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
05:22 AM Revision a38339d8 (git): * 2018-04-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:22 AM Revision b6185e17 (git): compile.c: align IBF dumped data
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:39 AM Bug #14670 (Closed): Objectで定義したmethod_missingでsuperが使えない
```ruby
class Object
def method_missing(name, *args, &block)
super
end
end
Object.new.foo
```
を実行すると, `SystemStackError` になってしまいます.
再定義する先が`Object`でなければ(`Object`のサブクラスなら)問題ないです.
keiju (Keiju Ishitsuka)

04/07/2018

11:15 PM Bug #14653 (Closed): Bootsnap gets segmentation fault
yahonda (Yasuo Honda) wrote:
> Thanks for the update. This issue does not reproduce anymore using ruby 2.6.0dev (2018-04-07 trunk 63108) [x86_64-linux]
I'm glad to hear that! Thank you to confirm.
wanabe (_ wanabe)
12:18 AM Bug #14653: Bootsnap gets segmentation fault
Thanks for the update. This issue does not reproduce anymore using ruby 2.6.0dev (2018-04-07 trunk 63108) [x86_64-linux]
~~~
$ bundle exec bin/testunit
/home/yahonda/.rbenv/versions/2.6.0-dev/lib/ruby/gems/2.6.0/gems/mocha-1.4.0/lib...
yahonda (Yasuo Honda)
10:52 PM Feature #14669 (Open): Regexp does not expose the amount of capture groups.
For a project we needed to know how many capture groups a Regex exposes (before actually matching it). The Onigmo regex library used by Ruby has this information, accessible with *onig_number_of_captures(const regex_t \*)*, but the Ruby ... xfbs (Patrick Elsen)
01:03 PM Revision 23228b6e (git): Remove outdated example from Numeric documentation
Since 2.5, Numeric instances can be cloned and duplicated.
[Fix GH-1850]
From: Miguel Landaeta <miguel@miguel.cc>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:44 AM Revision ba267bce (git): compile.c: refine debug prints
* compile.c (ibf_load_iseq_complete): use alternate hexadecimal
form for offset.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:48 AM Revision 2de68923 (git): test/ruby/test_iseq.rb: hexdump to diff
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:48 AM Revision eaf5e34b (git): Use assert_include
For better failure message:
- by assert_operator: Expected "X" to be include? "Y"
- by assert_include: Expected "X" to include "Y"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:09 AM Feature #12839: CSV - Give not nil but empty strings for empty fields
Thank you very much for fixing #11126.
But I think that the status of my ticket (#12839) should be not Closed but Rejected.
Because my hope is that the CSV parser gives empty strings for empty fields.
Using converters slows the sp...
5.5 (5 5)

04/06/2018

11:52 PM Bug #14667: Segmentation fault in Ruby during iOS automation
My automation tests are trying to install the iOS application-
ruby ~/path/to/install/script/install_ipa.rb <device udid> com.company.squared.sqbudev ~/path/to/ipa/WebExSquaredIntegrationTests.ipa
sankalp89 (Sankalp Anand)
12:58 PM Bug #14667 (Feedback): Segmentation fault in Ruby during iOS automation
```
-- C level backtrace information -------------------------------------------
0 ruby 0x00000001022a610b rb_vm_bugreport + 379
1 ruby 0x00000001021494ef rb_bug_contex...
nobu (Nobuyoshi Nakada)
07:21 AM Bug #14667: Segmentation fault in Ruby during iOS automation
This is the crash dump from /Library/Logs/CrashReporter/
~~~
Process: ruby [59453]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: 0
Code Type: X86-64 (Native...
sankalp89 (Sankalp Anand)
12:22 AM Bug #14667 (Closed): Segmentation fault in Ruby during iOS automation
Hello,
I'm using Calabash for iOS automation. My tests are crashing the ruby interpreter. Could you please help in finding out what the issue is?
Best,
Sankalp
~~~
[u"Running with options: '14e26a69f942dd7867bc33c547b89246...
sankalp89 (Sankalp Anand)
08:50 PM Revision 5506e9b1 (git): tool/ruby_vm/scripts/insns2vm.rb: fix typo in r62064
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e stomar (Marcus Stollsteimer)
08:04 PM Bug #14653: Bootsnap gets segmentation fault
I guess it is fixed at [Bug #14553] r63040.
(And it also needs [Bug #14660] r63103 to pass all tests, but although it is not directly related to this issue.)
Would you please retry with latest trunk ruby?
An Execution result of my...
wanabe (_ wanabe)
03:06 PM Revision edfd0632 (git): * 2018-04-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision f7faedc7 (git): Use assert_operator instead of assert
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:25 PM Revision 1289cc2d (git): * 2018-04-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:25 PM Revision d03fa8ca (git): symbol.h: remove stale symbol deleted at r47913
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:27 AM Feature #14666: nil.any?{} should return false
This could maybe be achieved in user code by adding some kind of Optional/Maybe construct, which could include Enumerable.
Then it would behave either as an empty Array or an Array of one element, based on whether it contains a value.
...
Eregon (Benoit Daloze)
02:24 AM Feature #14666: nil.any?{} should return false
I fully aggree with all the commenters.
It boils down to if nil should be Enumerable.
Obviously it should be not. because nil is special.
But then nil means "not in list" or the empty list or the not existing list?
I know this ...
eike.rb (Eike Dierks)
12:26 AM Feature #14666 (Rejected): nil.any?{} should return false
`any?`, `all?`, and the family can be defined only on container objects from the meanings.
`nil` is not a container object.
nobu (Nobuyoshi Nakada)
12:00 AM Feature #14666: nil.any?{} should return false
`.any?` only makes sense on `Enumerable`s. There is no end to the methods that we would need to define on `nil` if we went this route.
-1
Student (Nathan Zook)
07:27 AM Feature #5382 (Closed): %r{…} and similar delimited strings, arrays, and regexps aren’t highlighted in ruby-mode
According to nobu, this has been already fixed. Closing. mame (Yusuke Endoh)
05:28 AM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
現状の整理です。
```
Thread.new do
begin
sleep
ensure
sleep
end
end
```
もともとは上のコードで CPU 使用率 100% でフリーズしていたという問題でしたが、現状は次のようになってます。
* CPU 使用率 100 % は解決済
* Ctrl+C から 1 秒くらいで終了する
rb_thread_terminate_all は、永遠に待つのでは...
mame (Yusuke Endoh)
03:58 AM Bug #14668 (Closed): Ruby2.6.0-preview1とtrunkでnmatrixがコンパイルできない
https://github.com/SciRuby/nmatrix
Ruby2.5.1 まではコンパイルできたのですが、Ruby2.6.0-preview1 および trunk(r63103) でコンパイルできませんでした。
trunk を使ってビルドしたときのログです。
```
$ cd nmatrix
$ bundle exec rake compile:nmatrix
cd tmp/x86_64-linux/nmatrix/2.6.0
...
okkez (okkez _)
03:14 AM Bug #14387: Ruby 2.5 を Alpine Linux で実行すると比較的浅めで SystemStackError 例外になる
jottr (jottr -) wrote:
> I'd like to inquire on the progress of this issue. What is missing to get this resolved?
> ...
get_stack and get_main_stack needs platform dependent implementation.
In this context "platform" means libc (or l...
naruse (Yui NARUSE)
02:55 AM Bug #12181 (Closed): ブロックがたくさんあるファイルを編集するとruby-modeが重い
再度確認したら、特に問題なく使えるているみたいなので閉じます。 okkez (okkez _)

04/05/2018

11:06 PM Feature #14666 (Rejected): nil.any?{} should return false
Hi everyone at ruby/trunk
I encountered `nil.any?`
```
undefined method `any?' for nil:NilClass (NoMethodError)
```
I fully agree with all of yours,
that `nil` should be kept slim.
But than, on the other hand,
the existen...
eike.rb (Eike Dierks)
09:22 PM Bug #14664: After upgrade to 2.4.4: header field value cannot include CR/LF
naruse@airemix.jp wrote:
> It's from r61359 because HTTP doesn't allow CRLF in their header value.
> I think your application was silently broken from before.

CRLF followed by leading-whitespace (LWS) should be allowed

"Host:\r\...
normalperson (Eric Wong)
05:16 PM Bug #14387: Ruby 2.5 を Alpine Linux で実行すると比較的浅めで SystemStackError 例外になる
I'd like to inquire on the progress of this issue. What is missing to get this resolved?
It is affecting downstream users who deploy their ruby applications by means of alpine linux containers. The alpine linux ruby containers are cu...
jottr (jottr -)
05:12 PM Feature #14594: Rethink yield_self's name
My two cents:
This method acts like a **pipe operator**, it passes itself **through** the block and returns whatever the block returns.
The block execution maybe will change the value itself, maybe not. But `yield_self` proposes **ch...
americodls (Americo Duarte)
01:53 PM Bug #14662: Stack consistency error in 2.5.1
Thanks for the quick response! Here it is in trunk (commit ab73022cb2357db5e757aed6a7c2f0c4268aa7c7):
~~~
Failure/Error: <%= stylesheet_link_tag "stylist", media: "all" %>

fatal:
Stack consistency error (...
jacobevelyn (Jacob Evelyn)
01:13 PM Bug #14660 (Closed): RubyVM::InstructionSequence.load_from_binary(bin).eval may cause SEGV after r62856
Applied in changeset trunk|r63103.
----------
compile.c: fix positions encode
* compile.c (ibf_load_iseq_each): iseq_size necessary to encode
positions is set in ibf_load_code(). [Bug #14660]
nobu (Nobuyoshi Nakada)
01:13 PM Revision 7084c015 (git): compile.c: fix positions encode
* compile.c (ibf_load_iseq_each): iseq_size necessary to encode
positions is set in ibf_load_code(). [Bug #14660]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:46 PM Revision d1c9c0ad (git): compile.c: do not dump pointers
* compile.c (ibf_dump_iseq_each): ensure succ_index_table pointer
field to be 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:03 PM Revision e9c2fe4e (git): compile.c: clear padding
* compile.c (IBF_ZERO): clear padding of struct not to include
garbages in dumped binary data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:48 AM Revision 6bcfa848 (git): lib/rubygems/test_case.rb: take over @gem_prelude_index
Gem::TestCase normalizes each path in $LOAD_PATH, which deleted the flag
of @gem_prelude_index.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
07:05 AM Bug #14665 (Third Party's Issue): mailCatcher et ruby on rails
Seems an EventMachine's issue. nobu (Nobuyoshi Nakada)
07:04 AM Revision bc6e61f1 (git): compile.c: do not dump pointers
* compile.c (ibf_dump_iseq_each): do not dump succ_index_table
pointer. positions are dumped as integer arrays. pointer
values are meaningless outside the process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63099 b2dd03c8-3...
nobu (Nobuyoshi Nakada)
07:00 AM Revision 04dfc46a (git): compile.c: zero fill
* compile.c (ibf_dump_align): fill padding with zero, instead of
resizing only, not to leave garbages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:05 AM Revision 4a7bf2ef (git): `make test-all COVERAGE=true` supports directory-separated build
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)

04/04/2018

10:03 PM Bug #14663: getting "killed string.c" rdoc failed while trying to make ruby-2_5_1
I guess that the "Killed" message is from OOM Killer.
I want to confirm the message is from OOM Killer.
Please run the command below just after "Killed" message:
$ sudo cat /var/log/messages | grep Killed
aycabta (aycabta .)
11:20 AM Bug #14663: getting "killed string.c" rdoc failed while trying to make ruby-2_5_1
Seems as if rdoc has a problem. If you do not need local rdoc, perhap
you can use "--disable-install-rdoc", just to see if that would
finish the compilation for you there.
nobu probably has a much better idea how to avoid the above...
shevegen (Robert A. Heiler)
07:25 AM Bug #14663 (Closed): getting "killed string.c" rdoc failed while trying to make ruby-2_5_1

Sponsored by:
_____ _
|_ _| ___ ___ ___ _| | _ _ ___ ___
| | | -_|| _|| . || . || | || || -_|
|_| |___||_| |__,||___||_ ||_|_||___|
|___|
root@localhost:/sdcard/r...
bb426660 (Biswajit Biswas)
03:44 PM Revision 97d610be (git): * test/test_tempfile.rb (test_{new,create}_traversal_dir): should not assume `t`
is always set. if `t` is nil, `NoMethodError` will be raised and the real
cause will be hidden.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:26 PM Revision c7d4c598 (git): * 2018-04-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:26 PM Revision 2de0c729 (git): test/test_tempfile.rb: close a file object created by Tempfile.create
To stop a "Leaked file descriptor" warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
02:03 PM Bug #14637 (Closed): Rational#to_f returns a wrong result when denominator is big
Applied in changeset trunk|r63093.
----------
bignum.c: Bignum#fdiv avoids double division when divisor is bignum
`Rational(int, bignum).to_f` sometimes returned a wrong result because
`Bignum#div` casted its divisor to double. [Bug #...
mame (Yusuke Endoh)
02:02 PM Revision 85bcd2b3 (git): bignum.c: Bignum#fdiv avoids double division when divisor is bignum
`Rational(int, bignum).to_f` sometimes returned a wrong result because
`Bignum#div` casted its divisor to double. [Bug #14637] [ruby-core:86330]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
01:17 PM Revision ab73022c (git): mjit_compile.c: disable stack consistency check
This should be basically safe because VM already does this check.
I don't think JIT-ed code, which should be specially optimized, should
still do this.
* Benchmark
Calculating -------------------------------------
...
k0kubun (Takashi Kokubun)
11:15 AM Bug #14665: mailCatcher et ruby on rails
I don't really speak french but it seems to be about rails rather
than ruby?
shevegen (Robert A. Heiler)
10:02 AM Bug #14665 (Third Party's Issue): mailCatcher et ruby on rails
bonjour,
chaque fois que je lance mailcatcher et que je me rends sur la page : 127.0.0.0:1080, mailcatcher stop et me rapporte un bug.
Ci-joint, un fichier txt du rapport de bug.
Très cordialement,
lflapy
lflapy (Laurent Madeleine)
11:00 AM Revision c2007e19 (git): iseq.c: indent iseq dump
* iseq.c (rb_iseq_disasm): indent catch_table iseq entries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:05 AM Bug #14662: Stack consistency error in 2.5.1
Thank you for the report.
Could you try with the trunk, which would dump running instructions on the error?
nobu (Nobuyoshi Nakada)
09:13 AM Bug #14664: After upgrade to 2.4.4: header field value cannot include CR/LF
Upgrade google-api-client gem to 0.20.0.
cf. https://github.com/google/google-api-ruby-client/pull/648
Tietew (Toru Iwase)
08:58 AM Bug #14664 (Rejected): After upgrade to 2.4.4: header field value cannot include CR/LF
It's from r61359 because HTTP doesn't allow CRLF in their header value.
I think your application was silently broken from before.
naruse (Yui NARUSE)
08:22 AM Bug #14664 (Rejected): After upgrade to 2.4.4: header field value cannot include CR/LF
We are experiencing this issue after upgrading from ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux] to ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux]. Reverting back to 2.4.3 the code works.
~~~
header field valu...
davidhrbac (David Hrbáč)
08:19 AM Revision 51d227e3 (git): refactoring r63073.
* cont.c (root_fiber_alloc): call `ConvertThreadToFiber()` here.
`rb_fiber_t` for root_fiber is allocated before running Threads.
Fiber objects wrapping this rb_fiber_t for root_fiber are created
when root Fiber object is required...
ko1 (Koichi Sasada)
07:46 AM Revision 746a88e1 (git): gc.c: Fix a typo
Pointed by hkdnet <satoko.itse@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yui-knk (Kaneko Yuichiro)
06:53 AM Revision e440bfae (git): rexml: Fix a XPath bug of /child::node()
[Bug #14600]
* lib/rexml/xpath_parser.rb: Fix a bug that "/child::node()" returns
XML declaration and text nodes out of root element.
* test/rexml/test_jaxen.rb: Enable more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
Sutou Kouhei
06:51 AM Revision 478d3dff (git): rexml: Add codes for debugging XPath logic
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
06:36 AM Revision 1d6ca665 (git): rexml: Fix a XPath bug of function()/path
[Bug #14600]
* lib/rexml/functions.rb: Fix a bug that "function()/path" always returns
nothing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
05:00 AM Revision c5632105 (git): use Queue for inter-thread synchronization.
* test/ruby/test_bignum.rb (test_interrupt_during_to_s): should not use
"while" synchronization, but should use Queue.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
04:28 AM Revision 5ff72d05 (git): iseq.c: strip trailing spaces in dump
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:27 AM Revision b537823f (git): rexml: Fix a XPath bug of @attribute/parent
[Bug #14600]
* lib/rexml/functions.rb: Fix a bug that "@attribute/parent" doesn't
return element of its attribute.
* test/rexml/test_jaxen.rb: Enable more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63083 b2dd03c8-39d4...
Sutou Kouhei
03:26 AM Revision d050a28f (git): rexml: Fix a XPath bug of $variable
[Bug #14600]
* lib/rexml/functions.rb: Fix a bug that "$variable" returns
node instead of ndoe set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
01:26 AM Feature #14605: Remove `original_iseq` from `rb_iseq_constant_body`
On my comment, I want to make clear that is it a typo of "encoded" -> "decoded" or not.
> I don't understand why we would cache this in the struct besides performance?
Maybe it is a historical reason. Ruby 1.9 has an encoded iseq a...
ko1 (Koichi Sasada)

04/03/2018

11:29 PM Bug #14480 (Third Party's Issue): miniruby crashing when compiled with -O2 or -O1 on aarch64
GCC upstream changed aarch64 default behaviour on its revision 257984.
https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/common/config/aarch64/aarch64-common.c?r1=257984&r2=257983&pathrev=257984
Fundamental frame pointer corruption may be fi...
wanabe (_ wanabe)
09:54 PM Bug #14662 (Closed): Stack consistency error in 2.5.1
We've been trying to upgrade an app to Ruby 2.5 and are seeing interpreter crashes with `Stack consistency error` messages on both 2.5.0 and 2.5.1 when running our RSpec test suite. I've spent several days trying to pin this down but hav... jacobevelyn (Jacob Evelyn)
04:54 PM Revision c79307c0 (git): test_fiber.rb: fix test_create_fiber_in_new_thread
* test/ruby/test_fiber.rb (test_create_fiber_in_new_thread):
prefix to run, and get the result value not only waiting.
[Bug #14642]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:50 PM Revision 9ba849e6 (git): Fix typo
[Bug #14642]
[Fix GH-1855]
From: MSP-Greg <MSP-Greg@users.noreply.github.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:51 PM Revision c592ce40 (git): rexml: Fix a XPath bug of name(node-set)
[Bug #14600]
* lib/rexml/functions.rb: Fix a bug that "name(node-set)" returns
element instead of element name.
* test/rexml/test_jaxen.rb: Enable more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63079 b2dd03c8-39d4-4d...
Sutou Kouhei
03:42 PM Revision a03e6e5e (git): * 2018-04-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:42 PM Revision bc34d92f (git): mjit.c: add class serial of singleton class
for toplevel self.
Toplevel self's class is not `Object` but `#<Class:Object>`.
This commit allows to inline method call setup for toplevel methods.
I've thought r63053 works but it doesn't...
I actually want to add all singleton class...
k0kubun (Takashi Kokubun)
03:30 PM Bug #14642: Fiber make crash on Windows - webrick/httpproxy.rb ?
@ko1
Thanks for the work. The test is not being run as `assert_euqal` contains a small typo. See [GitHub PR 1855](https://github.com/ruby/ruby/pull/1855).
Greg
MSP-Greg (Greg L)
10:26 AM Bug #14642: Fiber make crash on Windows - webrick/httpproxy.rb ?
Sorry for late fixing.
The easy repro is here:
```
def assert_create_fiber_in_new_thread
ret = Thread.new{
Thread.new{
Fiber.new{Fiber.yield :ok}.resume
}.join
}.join
assert_euqal :ok, ret, ...
ko1 (Koichi Sasada)
10:21 AM Bug #14642 (Closed): Fiber make crash on Windows - webrick/httpproxy.rb ?
Applied in changeset trunk|r63073.
----------
Fix Fiber with Thread issue on Windows [Bug #14642]
* cont.c (rb_threadptr_root_fiber_setup): divide into two functions:
* rb_threadptr_root_fiber_setup_by_parent(): called by the parent ...
ko1 (Koichi Sasada)
08:02 AM Bug #14642: Fiber make crash on Windows - webrick/httpproxy.rb ?
I reverted r62966 and r62969 to keep CI green.
Could you re-commit them when you commit the fix?
naruse (Yui NARUSE)
11:32 AM Bug #14660 (Open): RubyVM::InstructionSequence.load_from_binary(bin).eval may cause SEGV after r62856
It's probably a bug of IBF, and has been revealed by [Feature#14370], I guess. nobu (Nobuyoshi Nakada)
10:50 AM Bug #14660 (Closed): RubyVM::InstructionSequence.load_from_binary(bin).eval may cause SEGV after r62856
Applied in changeset trunk|r63075.
----------
Reproducible test for [Feature#14370] @ [Bug #14660]
nobu (Nobuyoshi Nakada)
07:57 AM Bug #14660: RubyVM::InstructionSequence.load_from_binary(bin).eval may cause SEGV after r62856
It's since r62851. nobu (Nobuyoshi Nakada)
11:27 AM Revision 7f30b84c (git): adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:50 AM Revision 02df45c4 (git): Reproducible test for [Feature#14370] @ [Bug #14660]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:22 AM Revision 1751ea76 (git): repatch r62966 and r62969.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
10:21 AM Revision db3cc675 (git): Fix Fiber with Thread issue on Windows [Bug #14642]
* cont.c (rb_threadptr_root_fiber_setup): divide into two functions:
* rb_threadptr_root_fiber_setup_by_parent(): called by the parent thread.
* rb_threadptr_root_fiber_setup_by_child(): called by the created thread.
`rb_threadptr...
ko1 (Koichi Sasada)
08:29 AM Revision c3da1625 (git): Honor --silent option
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:29 AM Revision e8b536c7 (git): Fixed unmatched quotes and brackets
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:10 AM Revision f6877949 (git): adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:54 AM Revision 0c632c6f (git): Revert r62966 and r62969
It breaks mswin's test-all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:57 AM Bug #14658 (Closed): Kernel#singleton_method is incompatible with Module#prepend.
Applied in changeset trunk|r63067.
----------
Fix Kernel#singleton_method with Module#Prepend
* proc.c (rb_obj_singleton_method): search the method entry from
the origin class, for fix prepended modules. [Bug #14658]
From: Vasiliy ...
nobu (Nobuyoshi Nakada)
06:57 AM Revision 60f0e763 (git): proc.c: fix segfault when no singleton class
* proc.c (rb_obj_singleton_method): bail out if the receiver does
not have the singleton class without accessing the origin class
not to segfault. [Bug #14658]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63068 b2dd03c8-39d4-4...
nobu (Nobuyoshi Nakada)
06:57 AM Revision c7770f90 (git): Fix Kernel#singleton_method with Module#Prepend
* proc.c (rb_obj_singleton_method): search the method entry from
the origin class, for fix prepended modules. [Bug #14658]
From: Vasiliy Ermolovich <younash@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63067 b2dd03c8...
nobu (Nobuyoshi Nakada)
06:25 AM Revision 5bcb76eb (git): removed never used variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:56 AM Revision 577d258e (git): * 2018-04-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:56 AM Revision 375cd707 (git): Support upstream directory structure for ruby/csv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)

04/02/2018

11:50 PM Bug #14660 (Closed): RubyVM::InstructionSequence.load_from_binary(bin).eval may cause SEGV after r62856
A certain script can cause SEGV when ISeq#to_binary -> load_from_binary -> eval.
```
$ ./miniruby -ve 'str = "class P; def p; end; def q; end; E = \"\"; N = \"\#{E}\"; attr_reader :i; end"; iseq = RubyVM::InstructionSequence.compile(...
wanabe (_ wanabe)
04:34 PM Bug #14659 (Closed): segfault in ConditionVariable#broadcast and ConditionVariable#signal
I'm encountering a consistent segfault within a Rails application running Phusion Passenger on Ruby 2.5.0 and Ruby 2.5.1 when invoking either the #broadcast or #signal method on a ConditionVariable.
Here's what the code that interacts...
nbeyer@gmail.com (Nathan Beyer)
03:24 PM Bug #14658 (Closed): Kernel#singleton_method is incompatible with Module#prepend.
It's not possible to get singleton method using Kernel#singleton_method if singleton class was prepended with any module:
~~~ ruby
module Empty; end
class MyClass
singleton_class.prepend(Empty)
def self.foo; end
end
My...
nashby (Vasiliy Ermolovich)
01:13 PM Feature #14594: Rethink yield_self's name
bughit (bug hit) wrote:
> What about `tap!` - since tap is already in use, this won't be stealing another word, and it seems to make sense, it's a "dangerous" tap that alters the flow.
I think `tap!` is the best option currently bein...
cmoel (Christopher Moeller)
06:50 AM Feature #14594: Rethink yield_self's name
> I prefer `itself`
`itself` is already taken in block-less form.
It was my initial idea too (see links in the post for names discussion), but I am happy it was not accepted: iterator-returning block-less `yield_self` turns out to...
zverok (Victor Shepelev)
02:31 AM Feature #14594: Rethink yield_self's name
I agree that `yield_self` is not a great name. But `then` does not "say what it does" enough in my opinion. I prefer `itself`: this name has problems too, but it is more descriptive at least. jeromedalbert (Jerome Dalbert)
12:39 PM Revision 3be45505 (git): Win32API.rb: use uplevel option to warn
Also warns always regardless $VERBOSE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:39 AM Revision bae19b55 (git): error.c: prepend "warning: " always
* error.c (rb_warn_m): prepend the string "warning: " if uplevel
keyword is given, even if caller file and line information are
not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:33 AM Bug #14657: Fix build error with LibreSSL 2.7
Sorry for the noise... The Github repo is not very prominent on your website.
Updating our patch with upstream.
spil (Bernard Spil)
02:43 AM Bug #14657 (Assigned): Fix build error with LibreSSL 2.7
This issue was already handled at upstream: https://github.com/ruby/openssl/pull/193
hsbt (Hiroshi SHIBATA)
07:33 AM Bug #14634: Queue#push seems to crash after fork
Thanks. I suspected autoload was a problem; too :x I'll try to
take a look at it in the coming days (sorry, many things going
on...) If you can start with a small test case that would be
much appreciated. Thanks again.


But re...
normalperson (Eric Wong)
07:33 AM Misc #14632: [ANN] git.ruby-lang.org
hsbt@ruby-lang.org wrote:
> git.r-l.o only supports https protocol now. And I try to
> improve it clone speed.

If you haven't already, enable repack.writeBitmaps (and repack)
to speed up the counting objects phase.
normalperson (Eric Wong)
03:47 AM Misc #14632: [ANN] git.ruby-lang.org
Hi all.
I added git.ruby-lang.org to this redmine project.
You can refer git ref like https://bugs.ruby-lang.org/projects/ruby-trunk/repository/ruby-git/revisions/5896936f2ca0c16a68edb557a122125653fa89a7
Redmine expand `commit:rub...
hsbt (Hiroshi SHIBATA)
03:32 AM Misc #14632: [ANN] git.ruby-lang.org
>I could not connect using git protocol, but maybe it's normal and it
> ...
git.r-l.o only supports https protocol now. And I try to improve it clone speed.
hsbt (Hiroshi SHIBATA)
04:44 AM Feature #14656 (Closed): Improve mkmf error message when ruby.h is missing
Applied in changeset trunk|r63061.
----------
Improve mkmf error message
* lib/mkmf.rb: Improve the error message when ruby.h is missing,
to suggest installing separate packages. [Feature #14656]
nobu (Nobuyoshi Nakada)
04:40 AM Feature #14656: Improve mkmf error message when ruby.h is missing
"Development tools" sound like compiler toolchain or similar, as mkmf.rb raises `RuntimeError` with the message:
```
The compiler failed to generate an executable file.
You have to install development tools first.
```
nobu (Nobuyoshi Nakada)
04:44 AM Revision f961bad1 (git): Improve mkmf error message
* lib/mkmf.rb: Improve the error message when ruby.h is missing,
to suggest installing separate packages. [Feature #14656]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:20 AM Revision e6d7389c (git): Keep feature names loaded in the block
* lib/rubygems/test_case.rb (Gem::TestCase#save_loaded_features):
keep feature names for rubygem libraries loaded in the block.
c.f. rubygems/rubygems#2261
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63060 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
03:34 AM Feature #14022 (Rejected): String#surround
nobu (Nobuyoshi Nakada)
03:30 AM Revision 5c7e7846 (git): Fix typo on URI.hierarchical? [ci skip]
* lib/uri/generic.rb (hierarchical?): [DOC] Fix typo in the
description. [Fix GH-1851]
From: Harry Llewelyn <advocation@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:55 AM Bug #14651 (Closed): Building 2.5.1p57 with -flto fails on gcc 5.4.0
gcc v5.4.0 is the latest gcc in Ubuntu 16.04 LTS.
I've upgraded to Ubuntu 17.10 and there it is currently:
~~~
gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)
~~~
With this new gcc version, compiling with `-flto` works.
As the...
glebm (Gleb Mazovetskiy)
12:31 AM Bug #14600 (Closed): test-all & REXML - fixup
Applied in changeset commit:ruby-git|f0c734660faea02ce455b14e75e006bb4314e173.
----------
Start re-enabling Jaxen tests
[Bug #14600]
Reported by MSP-Greg. Thanks!!!
* lib/rexml/xpath_parser.rb: Fix a bug that "following_siblings::*[N]...
kou (Kouhei Sutou)
 

Also available in: Atom