[#44586] [Ruby 1.9 - Bug #5423][Open] readlineの入力待機中に端末のウィンドウサイズ変更すると入力内容が乱れる — Takuto Matsuu <matsuu@...>

8 messages 2011/10/08

[#44589] [Ruby 1.9 - Bug #5429][Open] 64ビットなFreeBSDのioctlでビット31が1なリクエストの時の不具合 — Makoto Kishimoto <redmine@...>

21 messages 2011/10/09

[#44604] Ruby 2.0 release plan — "NARUSE, Yui" <naruse@...>

ささださんが既にいくつか 2.0 関連のメールを投げていらっしゃいますが、

75 messages 2011/10/18
[#44607] Re: Ruby 2.0 release plan — Yukihiro Matsumoto <matz@...> 2011/10/18

まつもと ゆきひろです

[#44618] Re: Ruby 2.0 release plan — "NARUSE, Yui" <naruse@...> 2011/10/18

(2011/10/18 16:15), Yukihiro Matsumoto wrote:

[#44619] Re: Ruby 2.0 release plan — Yukihiro Matsumoto <matz@...> 2011/10/18

まつもと ゆきひろです

[#44627] Re: Ruby 2.0 release plan — Urabe Shyouhei <shyouhei@...> 2011/10/19

On 10/18/2011 10:16 PM, Yukihiro Matsumoto wrote:

[#44629] Re: Ruby 2.0 release plan — Yukihiro Matsumoto <matz@...> 2011/10/19

まつもと ゆきひろです

[#44631] Re: Ruby 2.0 release plan — Urabe Shyouhei <shyouhei@...> 2011/10/19

たとえば2.0の次のバージョン番号はどうしますか?

[#44633] Re: Ruby 2.0 release plan — "NARUSE, Yui" <naruse@...> 2011/10/20

2011年10月20日3:31 Urabe Shyouhei <[email protected]>:

[#44612] Re: Ruby 2.0 release plan — Yusuke Endoh <mame@...> 2011/10/18

遠藤です。

[#44707] [ruby-trunk - Feature #5512][Open] Integer#/ の改訂 — tadayoshi funaba <redmine@...>

13 messages 2011/10/30

[#44719] [ruby-trunk - Feature #5520][Open] Numeric#exact?、Numeric#inexact? の追加 — tadayoshi funaba <redmine@...>

13 messages 2011/10/31

[ruby-dev:44745] Re: [ruby-trunk - Bug #5524][Assigned] IO.wait_for_single_fd(closed fd) sticks on other than Linux

From: KOSAKI Motohiro <kosaki.motohiro@...>
Date: 2011-10-31 17:36:39 UTC
List: ruby-dev #44745
小崎です

ええと、なるせさんの論旨がいまいちまだ把握できてない気がするのですが・・・・

> r31428 で、test_wait_for_invalid_fd ってテストを追加しており、
> IO.wait_for_single_fd(close 済みの fd) が EBADF になることを確認しているのですが、
> これ単体で動かすと FreeBSD で戻ってきません。
>
> 思うに、このテストって本来ポータブルに刺さる物なんじゃないでしょうか。
> test-allだと何かの弾みで通ってしまうだけで。

Macとかでも刺さらないです。



> %  cat poll.c
> #include <stdio.h>
> #include <stdlib.h>
> #include <poll.h>
> #include <errno.h>
> int
> main(void) {
>    int pipes[2];
>    int res = pipe(pipes);
>    if (res != 0) abort();
>    int r = pipes[0];
>    int w = pipes[1];
>    res = close(w);
>    if (res != 0) abort();
>
>    struct pollfd fds;
>    fds.fd = w;
>    fds.events = POLLOUT;
>    errno = 0;
>    res = poll(&fds, 1, 1000);
>    fprintf(stderr, "%d %d %d\n", res, errno, fds.revents);
>    return 0;
> }
>
> というプログラムではポータブルに POLLVAL が返り、

POLLVALが返ると思いますが、poll つかうのはLinuxのときだけなんで
今回の件は無関係ではないでしょうか。


> #include <stdio.h>
> #include <stdlib.h>
> #include <sys/select.h>
> int
> main(void) {
>    int pipes[2];
>    int res = pipe(pipes);
>    if (res != 0) abort();
>    int r = pipes[0];
>    int w = pipes[1];
>    res = close(w);
>    if (res != 0) abort();
>    fd_set readfds; FD_ZERO(&readfds);
>    fd_set writefds; FD_ZERO(&writefds);
>    fd_set exceptfds; FD_ZERO(&exceptfds);
>    //struct timeval *timeout = NULL;
>    //FD_SET(r, &readfds);
>    FD_SET(w, &writefds);
>    res = select(1, &readfds, &writefds, &exceptfds, NULL);
>    return 0;
> }
>
> はポータブルにブロックされるあたり、このテストってLinux依存なんじゃ無いかという疑惑を持っているんですがどうでしょう。

SUSはEBADFを要求しているのでFreeBSDのバグではないでしょうか?

http://pubs.opengroup.org/onlinepubs/7908799/xsh/select.html


FreeBSDのときだけテストスキップじゃだめ?

In This Thread