Project

General

Profile

Actions

Bug #2718

closed

DRb mixing up function return values between PIDs after fork()

Added by rhythmx (Sean Bradly) about 14 years ago. Updated over 4 years ago.

Status:
Closed
Target version:
-
ruby -v:
1.9.1,1.8.7
[ruby-core:28089]

Description

=begin
The precise details are in the attached test case, but the basic version goes as such: Child pid 1 calls method_a() but gets the return value of method_b() that was called from child pid 2. This only happens if the parent process makes any remote DRb calls before the fork.

This issue showed up for me in 1.9.1 as well as 1.8.7 on x86, but not in x86_64.
=end


Files

drb_test_case.rb (1.48 KB) drb_test_case.rb rhythmx (Sean Bradly), 02/07/2010 03:52 AM
drb-handle-fork-2718.patch (1.73 KB) drb-handle-fork-2718.patch jeremyevans0 (Jeremy Evans), 08/27/2019 06:40 PM

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #14471: DRb mixing up function return values between PIDs after fork()ClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0