Project

General

Profile

This project is closed and read-only.

Actions

Backport #1001

closed

Interpreter-wide deadlock when native close() is called on fd which is currently being IO#select()ed

Backport #1001: Interpreter-wide deadlock when native close() is called on fd which is currently being IO#select()ed

Added by coderrr (coderrr .) over 17 years ago. Updated over 15 years ago.


Updated by coderrr (coderrr .) over 17 years ago Actions #1

=begin
any comments on this?
=end

Updated by rogerdpack (Roger Pack) over 17 years ago Actions #2

=begin
it might be nice to submit a patch which "fixes" this.

My question, however, is what is the right behavior when a bad socket is discovered? I believe Python raises on the thread that passed it in [not just ignore it], which seems reasonable.

Regardless, looks like a bug to me. Is it exhibited in 1.9?

Thoughts?
=end

Updated by ko1 (Koichi Sasada) over 17 years ago Actions #3

  • Assignee set to akr (Akira Tanaka)
  • ruby -v set to 1.8

=begin

=end

Updated by akr (Akira Tanaka) over 17 years ago Actions #4

  • Status changed from Open to Closed

=begin
Thank you for investigating the problem.

However the fix makes IO.select hang when the fd is closed.
I think it is not good behavior.
=end

Updated by shyouhei (Shyouhei Urabe) over 17 years ago Actions #5

  • Status changed from Closed to Open
  • Assignee changed from akr (Akira Tanaka) to shyouhei (Shyouhei Urabe)

=begin

=end

Updated by shyouhei (Shyouhei Urabe) over 17 years ago Actions #6

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r23577.
=end

Updated by shyouhei (Shyouhei Urabe) over 17 years ago Actions #7

  • Status changed from Closed to Open
  • Assignee changed from shyouhei (Shyouhei Urabe) to wyhaines (Kirk Haines)

=begin

=end

Updated by wyhaines (Kirk Haines) about 17 years ago Actions #8

  • Status changed from Open to Closed

=begin
Applied in r24600.
=end

Actions

Also available in: PDF Atom