Project

General

Profile

Actions

Backport #5593

closed

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

Added by dearblue (宗介 相良) over 12 years ago. Updated about 12 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 master - Bug #5591: Windows bug when using "shortcut" syntax with output redirectionClosed11/08/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0