[#78949] [Ruby trunk Feature#13095] [PATCH] io.c (rb_f_syscall): remove deprecation notice — kosaki.motohiro@...
Issue #13095 has been updated by Motohiro KOSAKI.
3 messages
2017/01/03
[#78997] [Ruby trunk Bug#13110] Byte-based operations for String — shugo@...
SXNzdWUgIzEzMTEwIGhhcyBiZWVuIHVwZGF0ZWQgYnkgU2h1Z28gTWFlZGEuCgoKTGV0IG1lIHNo
3 messages
2017/01/06
[#79228] Re: [ruby-cvs:64576] naruse:r57410 (trunk): Prevent GC by volatile [Bug #13150] — Eric Wong <normalperson@...>
naruse@ruby-lang.org wrote:
5 messages
2017/01/23
[#79511] Re: [ruby-cvs:64576] naruse:r57410 (trunk): Prevent GC by volatile [Bug #13150]
— Eric Wong <normalperson@...>
2017/02/13
Eric Wong <normalperson@yhbt.net> wrote:
[#79518] Re: [ruby-cvs:64576] naruse:r57410 (trunk): Prevent GC by volatile [Bug #13150]
— Nobuyoshi Nakada <nobu@...>
2017/02/13
On 2017/02/13 10:04, Eric Wong wrote:
[#79298] [Ruby trunk Bug#13085][Assigned] io.c io_fwrite creates garbage — nobu@...
Issue #13085 has been updated by Nobuyoshi Nakada.
3 messages
2017/01/29
[#79337] Re: [ruby-changes:45397] normal:r57469 (trunk): io.c: recycle garbage on write — SASADA Koichi <ko1@...>
Eric:
4 messages
2017/01/31
[#79352] Re: [ruby-changes:45397] normal:r57469 (trunk): io.c: recycle garbage on write
— Eric Wong <normalperson@...>
2017/01/31
SASADA Koichi <ko1@atdot.net> wrote:
[ruby-core:79030] [Ruby trunk Bug#13107] def_delegators causes random errors in MRI 2.4.0
From:
twalpole@...
Date:
2017-01-09 21:47:31 UTC
List:
ruby-core #79030
Issue #13107 has been updated by Thomas Walpole.
This appears to fixed in latest trunk now. Is there any info on when a 2.4.1 will be released - seems like a pretty serious issue.
----------------------------------------
Bug #13107: def_delegators causes random errors in MRI 2.4.0
https://bugs.ruby-lang.org/issues/13107#change-62437
* Author: Thomas Walpole
* Status: Closed
* Priority: Normal
* Assignee:
* Target version:
* ruby -v:
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
In the Capybara project we use the rack_test gem which uses `def_delegators` to forward `flast_reponse` to `@rack_mock_session` - https://github.com/brynary/rack-test/blob/master/lib/rack/test.rb#L29
When running the Capybara test test suite calling last_reponse on a rack_test Session object will sporadically result in a `TypeError` from forwardable.rb
```
TypeError:
wrong argument type Integer (expected Proc)
```
Patching around the delegator with
```ruby
class Rack::Test::Session
def last_response
@rack_mock_session.last_response
end
end
```
stops the error from occurring, so it appears that something `def_delegators` is doing is causing problems. Unfortunately I have not yet been able to establish exactly what causes the issues to produce a simple test case.
---Files--------------------------------
0001-forwardable.rb-use-public_send-to-call-method.patch (789 Bytes)
0001-forwardable-impl.rb-include-trace-instruction.patch (773 Bytes)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>