From: john@semiosix.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:77038] [Ruby trunk Bug#12702] DRb client fails when calling out-of-process remote method with a block
Date: Wed, 24 Aug 2016 11:46:21 +0000 [thread overview]
Message-ID: <redmine.issue-12702.20160824114621.ae9ffa0434976933@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-12702.20160824114621@ruby-lang.org
Issue #12702 has been reported by John Anderson.
----------------------------------------
Bug #12702: DRb client fails when calling out-of-process remote method with a block
https://bugs.ruby-lang.org/issues/12702
* Author: John Anderson
* Status: Open
* Priority: Normal
* Assignee: Masatoshi Seki
* ruby -v: ruby 2.4.0dev (2016-08-24 trunk 55999) [x86_64-linux]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
See attached code for test case.
applies to ruby-2.3.1 and ruby-2.4.0dev (2016-08-24 trunk 55999)
The problem starts in DRbObject#method_missing where
the code following DRb.here? is used for the in-process case which works.
But the code in the block for
succ, result = self.class.with_friend(@uri) do
is used for the out-of-process case. Here, DrbMessage#send_request fails
because b is a Proc, and in DrbMessage#dump the call to make_proxy fails
because DRbObject.new(b) fails.
---Files--------------------------------
drb_block_error.rb (1.46 KB)
--
https://bugs.ruby-lang.org/
next parent reply other threads:[~2016-08-24 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <redmine.issue-12702.20160824114621@ruby-lang.org>
2016-08-24 11:46 ` john [this message]
2019-08-24 3:21 ` [ruby-core:94522] [Ruby master Bug#12702] DRb client fails when calling out-of-process remote method with a block merch-redmine
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.issue-12702.20160824114621.ae9ffa0434976933@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).