Project

General

Profile

This project is closed and read-only.

Actions

Backport #5593

closed

Windows上で \\.\ から始まるデバイスをopenするとクラッシュ

Backport #5593: Windows上で \\.\ から始まるデバイスをopenするとクラッシュ

Added by dearblue (宗介 相良) almost 15 years ago. Updated over 14 years ago.

Status:
Closed
Assignee:
-
[ruby-dev:44837]

Description

Windows 上で \.\ から始まるデバイスを open すると ruby がクラッシュします。

ruby -e "open('//./c:', 'rb:binary')"
-e:1: [BUG] rb_update_max_fd: invalid fd (3) given.
.... なんたらかんたら ....

原因は io.c の rb_update_max_fd で呼ばれる fstat が、デバイス fd を与えると常に失敗するためのようです。

対応をお願いします。


Related issues 1 (0 open1 closed)

Related to Ruby - Bug #5591: Windows bug when using "shortcut" syntax with output redirectionClosedActions

Updated by usa (Usaku NAKAMURA) almost 15 years ago Actions #1 [ruby-dev:44843]

  • Category set to core
  • Status changed from Open to Assigned
  • Assignee set to usa (Usaku NAKAMURA)

Updated by usa (Usaku NAKAMURA) almost 15 years ago Actions #2 [ruby-dev:44844]

正当なfdなんだけどfstat()できないものもあるという事態なんですが、
どーすればいいでしょうか?>arkさん

Updated by usa (Usaku NAKAMURA) almost 15 years ago Actions #3 [ruby-dev:44845]

  • ruby -v changed from ruby 1.9.3p0 (2011-10-30) [i386-mingw32] to -

こんにちは、なかむら(う)です。

In message "[ruby-dev:44844] [ruby-trunk - Bug #5593] Windows上で \.\ から始まるデバイスをopenするとクラッシュ"
on Nov.09,2011 16:48:02, wrote:

正当なfdなんだけどfstat()できないものもあるという事態なんですが、
どーすればいいでしょうか?>arkさん

大変失礼しました。akrさん宛です。

それでは。

U.Nakamura

Updated by nobu (Nobuyoshi Nakada) almost 15 years ago Actions #4

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

This issue was solved with changeset r33692.
宗介, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


Updated by usa (Usaku NAKAMURA) almost 15 years ago Actions #5

  • Tracker changed from Bug to Backport
  • Project changed from Ruby to 13
  • Category deleted (core)
  • Status changed from Closed to Open
  • Assignee deleted (usa (Usaku NAKAMURA))
  • Target version deleted (1.9.3)

Updated by kosaki (Motohiro KOSAKI) over 14 years ago Actions #6 [ruby-dev:45078]

Usaさん、

redmineに記録されてるコミットはr33692だけですが、これはコードを一行も変えてないので、
backport requestは r33691 と r33692 の2コミットに対してなされていると推測していますが
あっていますか?勝手に推測して間違っていると目も当てられないのでお手数ですが確認お願い出来ますでしょうか。

Updated by usa (Usaku NAKAMURA) over 14 years ago Actions #7

  • Status changed from Open to Closed

This issue was solved with changeset r34437.
宗介, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 33691,33692

[Backport #5593]

Actions

Also available in: PDF Atom