Project

General

Profile

Actions

Bug #2714

closed

Interpreter deadlock when using ::Socket.pair

Added by sf (s f) about 14 years ago. Updated over 4 years ago.

Status:
Closed
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175)
[ruby-core:28066]

Description

=begin
Hello,

I have come across a deadlock situation (of the entire ruby interpreter) when using ::Socket.pair.

I have attached a simple example script to trigger the issue (Using mutex's to synchronize the read/writes does not help).

I am using ruby 1.9.1p243 (2009-07-16 revision 24175) on Windows 32bit.

Thanks.
=end


Files

deadlock.rb (787 Bytes) deadlock.rb A simple script to trigger the deadlock. sf (s f), 02/06/2010 12:43 AM
Actions #1

Updated by rogerdpack (Roger Pack) about 14 years ago

=begin
with mingw, I get

c:\dev_old\digitalarchive_trunk>ruby -v bad.rb
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mingw32]
bad.rb:7:in pair': pair() function is unimplemented on this machine (NotImplementedError) from bad.rb:7:in '

Anybody know why that would be?
=end

Actions #2

Updated by sf (s f) about 14 years ago

=begin
Narrowed this issue down to the cygwin build.

Works correctly on the following:
* ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
* ruby 1.9.0 (2008-06-20 revision 17482) [i486-linux]
* ruby 1.9.1p243 (2009-07-16 revision 24175) [i486-linux]

Deadlocks on the following:
* ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-cygwin]

AFAIK Ruby on Windows doesn't support ::Socket.pair (Hence the NotImplementedError), I forgot I was using the cygwin build.
=end

Actions #3

Updated by naruse (Yui NARUSE) about 14 years ago

  • Status changed from Open to Assigned
  • Assignee set to nobu (Nobuyoshi Nakada)

=begin

=end

Actions #4

Updated by rogerdpack (Roger Pack) about 14 years ago

=begin
seemed to work ok for me with cygwin 1.8.7 (if that's helpful)
=end

Actions #5

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Description updated (diff)
  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0