[#37959] [Bug:trunk] I can modify literals — Yusuke ENDOH <mame@...>

遠藤です。

13 messages 2009/02/10

[#38005] Is URI.decode() broken? — MOROHASHI Kyosuke <moronatural@...>

もろはしです。いつもお世話になっております。

39 messages 2009/02/14
[#38006] Re: Is URI.decode() broken? — Nobuyoshi Nakada <nobu@...> 2009/02/14

なかだです。

[#38009] Re: Is URI.decode() broken? — "NARUSE, Yui" <naruse@...> 2009/02/14

成瀬です、

[#38016] Re: Is URI.decode() broken? — Fujioka <fuj@...> 2009/02/15

xibbarこと藤岡です。

[#38017] Re: Is URI.decode() broken? — "NARUSE, Yui" <naruse@...> 2009/02/15

成瀬です。

[#38040] Re: Is URI.decode() broken? — akira yamada / やまだあきら <akira@...> 2009/02/17

NARUSE, Yui さんは書きました:

[#38124] Re: Is URI.decode() broken? — "NARUSE, Yui" <naruse@...> 2009/03/03

成瀬です。

[#39214] Re: Is URI.decode() broken? — akira yamada / やまだあきら <akira@...> 2009/09/02

(2009年03月03日 22:45), NARUSE, Yui さんは書きました:

[#39218] Re: Is URI.decode() broken? — "NARUSE, Yui" <naruse@...> 2009/09/02

成瀬です。

[#39236] Re: Is URI.decode() broken? — Tanaka Akira <akr@...> 2009/09/05

In article <4A9E44DD.6050706@airemix.jp>,

[#39242] Re: Is URI.decode() broken? — KOSAKI Motohiro <kosaki.motohiro@...> 2009/09/07

小崎@思いつきを適当に書いてみるテスト

[#39246] Re: Is URI.decode() broken? — Tanaka Akira <akr@...> 2009/09/07

In article <20090907091830.2C7A.A69D9226@jp.fujitsu.com>,

[#38096] 多重代入やメソッド引数の展開でto_aが呼ばれます — nagachika <nagachika00@...>

nagachika と申します。

10 messages 2009/02/26

[#38098] ブロック引数と括弧・引数なしsuper — Shugo Maeda <shugo@...>

前田です。

12 messages 2009/02/27

[ruby-dev:37970] [Bug #1146] TestSocket#test_udp_server hangs when configure --with-lookup-order-hack=INET

From: Kazuhiro NISHIYAMA <redmine@...>
Date: 2009-02-12 01:56:46 UTC
List: ruby-dev #37970
Bug #1146: TestSocket#test_udp_server hangs when configure --with-lookup-order-hack=INET
http://redmine.ruby-lang.org/issues/show/1146

起票者: Kazuhiro NISHIYAMA
ステータス: Open, 優先度: Normal
ruby -v: ruby 1.9.2dev (2009-02-12 trunk 22247) [i686-linux]

configureのときに--with-lookup-order-hack=INETをつけていると
Socket.udp_server_sockets(0) {|sockets| ... } で sockets に
IPv6で待ち受けていないのに、Socket.ip_address_list には IPv6 の
アドレスがあるので、IPv6でのsendmsgで止まってしまうようです。

以下のようにして調べてみると "::" の有無があることがわかります。

また、--with-lookup-order-hack=INET ありで止まってしまうときに
Ctrl+C を2回押さないと反応がありませんでした。

Index: test/socket/test_socket.rb
===================================================================
--- test/socket/test_socket.rb	(revision 22249)
+++ test/socket/test_socket.rb	(working copy)
@@ -233,6 +233,7 @@ class TestSocket < Test::Unit::TestCase
     end
 
     Socket.udp_server_sockets(0) {|sockets|
+p sockets.map{|ai| ai.local_address.ip_address } - ip_addrs.map(&:ip_address)
       begin
         port = sockets.first.local_address.ip_port
 


--with-lookup-order-hack=INET なし:
% /tmp/r/bin/ruby -v ~/wc/ruby/trunk/test/socket/test_socket.rb -v
ruby 1.9.2dev (2009-02-12 trunk 22247) [i686-linux]
Loaded suite /home/kazu/wc/ruby/trunk/test/socket/test_socket
Started
TestSocket#test_accept_loop: 0.00 s: .
TestSocket#test_accept_loop_with_unix: 0.00 s: .
TestSocket#test_getaddrinfo: 0.00 s: .
TestSocket#test_getnameinfo: 0.00 s: .
TestSocket#test_initialize: 0.00 s: .
TestSocket#test_ip_address_list: 0.00 s: .
TestSocket#test_socket_new: 0.00 s: .
TestSocket#test_sysaccept: 0.00 s: .
TestSocket#test_tcp: 0.00 s: .
TestSocket#test_tcp_server_sockets: 0.00 s: .
TestSocket#test_tcp_server_sockets_port0: 0.00 s: .
TestSocket#test_udp_server: ["::"]
0.01 s: .
TestSocket#test_unix: 0.00 s: .
TestSocket#test_unix_server_socket: 0.00 s: .
TestSocket#test_unpack_sockaddr: 0.00 s: .

Finished in 0.042818 seconds.

15 tests, 68 assertions, 0 failures, 0 errors, 0 skips
%

--with-lookup-order-hack=INET あり:
% /tmp/r2/bin/ruby -v ~/wc/ruby/trunk/test/socket/test_socket.rb -v
ruby 1.9.2dev (2009-02-12 trunk 22247) [i686-linux]
Loaded suite /home/kazu/wc/ruby/trunk/test/socket/test_socket
Started
TestSocket#test_accept_loop: 0.00 s: .
TestSocket#test_accept_loop_with_unix: 0.00 s: .
TestSocket#test_getaddrinfo: 0.00 s: .
TestSocket#test_getnameinfo: 0.00 s: .
TestSocket#test_initialize: 0.00 s: .
TestSocket#test_ip_address_list: 0.00 s: .
TestSocket#test_socket_new: 0.00 s: .
TestSocket#test_sysaccept: 0.00 s: .
TestSocket#test_tcp: 0.00 s: .
TestSocket#test_tcp_server_sockets: 0.00 s: .
TestSocket#test_tcp_server_sockets_port0: 0.00 s: .
TestSocket#test_udp_server: []
^C^C1.77 s: E
TestSocket#test_unix: 0.00 s: .
TestSocket#test_unix_server_socket: 0.00 s: .
TestSocket#test_unpack_sockaddr: 0.00 s: .

Finished in 1.780257 seconds.

  1) Error:
test_udp_server(TestSocket):
Interrupt:
    /home/kazu/wc/ruby/trunk/test/socket/test_socket.rb:260:in `sendmsg'
    /home/kazu/wc/ruby/trunk/test/socket/test_socket.rb:260:in `block (2 levels) in test_udp_server'

15 tests, 54 assertions, 0 failures, 1 errors, 0 skips
%


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next