[#25035] 拡張ライブラリへの共有ライブラリのPATHの埋め込み — Takahiro Kambe <taca@...>

こんにちは。

16 messages 2004/12/03
[#25070] Re: 拡張ライブラリへの共有ライブラリのPATHの埋め込み — nobu@... 2004/12/06

なかだです。

[#25071] Re: 拡張ライブラリへの共有ライブラリのPATHの埋め込み — Takahiro Kambe <taca@...> 2004/12/06

In message <200412060607.iB667giF007533@sharui.nakada.niregi.kanuma.tochigi.jp>

[#25089] Re: 拡張ライブラリへの共有ライブラリのPATHの埋め込み — nobu@... 2004/12/07

なかだです。

[#25090] Re: 拡張ライブラリへの共有ライブラリのPATHの埋め込み — Takahiro Kambe <taca@...> 2004/12/07

In message <200412070015.iB70FAiF012770@sharui.nakada.niregi.kanuma.tochigi.jp>

[#25093] Re: 拡張ライブラリへの共有ライブラリのPATHの埋め込み — akira yamada / やまだあきら <akira@...> 2004/12/07

2004-12-07 (火) の 12:27 +0900 に Takahiro Kambe さんは書きました:

[#25041] temporal locking already locked string on simultaneous write — Tanaka Akira <akr@...17n.org>

同じ文字列をほぼ同時に IO に書き込むと、temporal locking already

13 messages 2004/12/04
[#25042] Re: temporal locking already locked string on simultaneous write — Yukihiro Matsumoto <matz@...> 2004/12/04

まつもと ゆきひろです

[#25043] Re: temporal locking already locked string on simultaneous write — Tanaka Akira <akr@...17n.org> 2004/12/04

In article <1102133507.339625.10453.nullmailer@x31.priv.netlab.jp>,

[#25096] double free problem — "Akinori MUSHA" <knu@...>

 ご無沙汰しております。

15 messages 2004/12/07
[#25099] Re: double free problem — Yukihiro Matsumoto <matz@...> 2004/12/07

Hi,

[#25101] non-stdio buffering — Tanaka Akira <akr@...17n.org>

えぇと、今回 1.9 でなにが起きたのかを私が把握している範囲でまとめてお

18 messages 2004/12/07

[#25152] 1.8 reopen problem with duplex popen — Tanaka Akira <akr@...17n.org>

次のように、1.8 で双方向 popen な IO を reopen するとエラーになること

11 messages 2004/12/10

[#25158] core dump on NetBSD 2.0 — Tanaka Akira <akr@...17n.org>

NetBSD 2.0 で次のようにすると core を吐きます。

18 messages 2004/12/11
[#25159] Re: core dump on NetBSD 2.0 — Tanaka Akira <akr@...17n.org> 2004/12/11

In article <87hdmsivva.fsf@serein.a02.aist.go.jp>,

[#25163] Re: core dump on NetBSD 2.0 — Tanaka Akira <akr@...17n.org> 2004/12/12

In article <87ekhwiv7g.fsf@serein.a02.aist.go.jp>,

[#25165] Re: core dump on NetBSD 2.0 — nobu@... 2004/12/13

なかだです。

[#25167] Re: core dump on NetBSD 2.0 — Tanaka Akira <akr@...17n.org> 2004/12/13

In article <200412130040.iBD0e8Qh003275@sharui.nakada.niregi.kanuma.tochigi.jp>,

[#25193] 1.8.2 release schedule — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

15 messages 2004/12/14

[#25299] Re: リリース準備 — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

20 messages 2004/12/24
[#25301] Re: リリース準備 — TAKAHASHI Masayoshi <maki@...> 2004/12/24

高橋征義です。

[#25302] test_readline.rb blocks on BSD again — GOTOU Yuuzou <gotoyuzo@...>

In message <20041223175402.3116FC6718@lithium.ruby-lang.org>,

15 messages 2004/12/24
[#25314] Re: test_readline.rb blocks on BSD again — GOTOU Yuuzou <gotoyuzo@...> 2004/12/24

In message <20041224.131211.846943951.gotoyuzo@sawara.does.notwork.org>,

[#25315] Re: test_readline.rb blocks on BSD again — Yukihiro Matsumoto <matz@...> 2004/12/24

まつもと ゆきひろです

[#25317] Re: test_readline.rb blocks on BSD again — WATANABE Hirofumi <eban@...> 2004/12/25

わたなべです。

[ruby-dev:25302] test_readline.rb blocks on BSD again

From: GOTOU Yuuzou <gotoyuzo@...>
Date: 2004-12-24 04:12:02 UTC
List: ruby-dev #25302
In message <20041223175402.3116FC6718@lithium.ruby-lang.org>,
 `nobu@ruby-lang.org (nobu)' wrote:
>   Log:
>     * io.c (io_reopen, rb_io_reopen): prohibit to change access mode for
>       special IO ports.  [ruby-dev:25225]

>   1.246.2.66  +34  -24   ruby/io.c
>     http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/io.c?cvsroot=src&r1=1.246.2.65&r2=1.246.2.66

調べ切れてないので報告だけですが、このコミットからNetBSDで
test/readlineがうまく動かなくなっているようです。

  $ ruby -e 'i=STDIN.dup;STDIN.reopen(open("/etc/hosts"));STDIN.reopen(i)'

とすると、2回目のreopenで入力待ちになります。
# io.cを1.246.2.65に戻せば動きます。

% gdb ruby18
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...
(gdb) r -e 'i=STDIN.dup;STDIN.reopen(open("/etc/hosts"));STDIN.reopen(i)'
Starting program: /home/gotoyuzo/src/ruby/build-ruby18/ruby18 -e 'i=STDIN.dup;STDIN.reopen(open("/etc/hosts"));STDIN.reopen(i)'
^C
Program received signal SIGINT, Interrupt.
0x481511c7 in read () from /usr/lib/libc.so.12
(gdb) info stack
#0  0x481511c7 in read () from /usr/lib/libc.so.12
#1  0x481ceed5 in __sread () from /usr/lib/libc.so.12
#2  0x481bcf5d in __srefill () from /usr/lib/libc.so.12
#3  0x48183cdf in fseeko () from /usr/lib/libc.so.12
#4  0x4809ecac in io_reopen (io=134687144, nfile=134662484)
    at /home/gotoyuzo/src/ruby/ruby18/io.c:3220
#5  0x4809f093 in rb_io_reopen (argc=1, argv=0xbfbfdec0, file=134687144)
    at /home/gotoyuzo/src/ruby/ruby18/io.c:3279
#6  0x48090864 in call_cfunc (func=0x4809eeac <rb_io_reopen>, recv=134687144, 
    len=-1, argc=1, argv=0xbfbfdec0)
    at /home/gotoyuzo/src/ruby/ruby18/eval.c:5384
#7  0x48084ef8 in rb_call0 (klass=134689624, recv=134687144, id=7161, 
    oid=7161, argc=1, argv=0xbfbfdec0, body=0x8073100, nosuper=0)
    at /home/gotoyuzo/src/ruby/ruby18/eval.c:5522
#8  0x480856e3 in rb_call (klass=134689624, recv=134687144, mid=7161, argc=1, 
    argv=0xbfbfdec0, scope=0) at /home/gotoyuzo/src/ruby/ruby18/eval.c:5743
#9  0x48080a18 in rb_eval (self=134724024, n=0x806c9f4)
    at /home/gotoyuzo/src/ruby/ruby18/ruby.h:631
#10 0x4807d170 in ruby_exec_internal ()
    at /home/gotoyuzo/src/ruby/ruby18/eval.c:1473
#11 0x4807d1bd in ruby_exec () at /home/gotoyuzo/src/ruby/ruby18/eval.c:1493
#12 0x4807d1f0 in ruby_run () at /home/gotoyuzo/src/ruby/ruby18/eval.c:1503
#13 0x08048864 in main (argc=3, argv=0xbfbfe440, envp=0xbfbfe450)
    at /home/gotoyuzo/src/ruby/ruby18/main.c:46
#14 0x08048676 in ___start ()
(gdb) frame 4
#4  0x4809ecac in io_reopen (io=134687144, nfile=134662484)
    at /home/gotoyuzo/src/ruby/ruby18/io.c:3220
3220                io_seek(fptr, pos, SEEK_SET);
(gdb) list
3215                }
3216                fptr->mode = m;
3217            }
3218            rb_thread_fd_close(fd);
3219            if ((orig->mode & FMODE_READABLE) && pos >= 0) {
3220                io_seek(fptr, pos, SEEK_SET);
3221                io_seek(orig, pos, SEEK_SET);
3222            }
3223        }
3224    
(gdb) p orig->mode
$2 = 65537
(gdb) p fptr->mode
$3 = 65537

-- 
ごとうゆうぞう

In This Thread

Prev Next