[#995] Mathn crashes the interpreter on PPC — Dave Thomas <dave@...>
The following code crashes the interpreter on my Powerbook:
4 messages
2003/05/01
[#1004] irb doesn't work, because tempfile doesn't work — Dave Thomas <dave@...>
Try
7 messages
2003/05/02
[#1005] Re: irb doesn't work, because tempfile doesn't work
— matz@... (Yukihiro Matsumoto)
2003/05/02
Hi,
[#1018] Re: ext/syck problems — why the lucky stiff <ruby-core@...>
U.Nakamura (usa@osb.att.ne.jp) wrote:
8 messages
2003/05/13
[#1037] ping.rb — Dave Thomas <dave@...>
On my Mac OSX,
15 messages
2003/05/14
[#1039] Re: ping.rb
— Ryan Davis <ryand@...>
2003/05/15
[#1040] Re: ping.rb
— Dave Thomas <dave@...>
2003/05/15
Ryan Davis wrote:
[#1042] Re: ping.rb
— nobu.nokada@...
2003/05/15
Hi,
[#1043] Re: ping.rb
— Dave Thomas <dave@...>
2003/05/15
nobu.nokada@softhome.net wrote:
[#1057] Fwd: ping.rb — "J.Herre" <jlst@...>
7 messages
2003/05/16
[#1066] YAML problem — Tanaka Akira <akr@...17n.org>
I found a problem with yaml.
12 messages
2003/05/22
[#1067] Re: YAML problem
— "NAKAMURA, Hiroshi" <nahi@...>
2003/05/22
Hi,
[#1068] Re: YAML problem
— why the lucky stiff <ruby-core@...>
2003/05/22
Concerning error from:
[#1069] Re: YAML problem
— Tanaka Akira <akr@...17n.org>
2003/05/22
In article <20030522064450.GA14175@rysa.inetz.com>,
[#1077] terminated object / invalid inspect_tbl — ts <decoux@...>
10 messages
2003/05/26
[#1078] Re: [1.8] terminated object / invalid inspect_tbl
— nobu.nokada@...
2003/05/26
Hi,
[#1079] Re: [1.8] terminated object / invalid inspect_tbl
— ts <decoux@...>
2003/05/26
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
[#1080] Re: [1.8] terminated object / invalid inspect_tbl
— nobu.nokada@...
2003/05/26
Hi,
[#1081] Re: [1.8] terminated object / invalid inspect_tbl
— ts <decoux@...>
2003/05/26
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
[#1085] Re: [1.8] terminated object / invalid inspect_tbl
— nobu.nokada@...
2003/05/26
Hi,
[#1082] Possible problem with mkmf under Darwin — Dave Thomas <dave@...>
I've been having fun getting readline support to work on OSX. My latest
7 messages
2003/05/26
[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>
> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;
12 messages
2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c
— nobu.nokada@...
2003/05/29
Hi,
[#1097] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c
— Dave Thomas <dave@...>
2003/05/29
nobu.nokada@softhome.net wrote:
[#1101] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c
— nobu.nokada@...
2003/05/29
Hi,
[#1102] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c
— matz@... (Yukihiro Matsumoto)
2003/05/30
Hi,
Re: ping.rb
From:
Dave Thomas <dave@...>
Date:
2003-05-15 04:06:15 UTC
List:
ruby-core #1043
nobu.nokada@softhome.net wrote:
> Hi,
>
> At Thu, 15 May 2003 12:26:57 +0900,
> Dave Thomas wrote:
>
>>Yes - but 'connection refused' should generate ECONNREFUSED, which is
>>handled specially inside ping.rb. Instead it seems to be generating
>>EINVAL.
>
>
> Agree, but I don't have Mac OS X box. Can't you get strace
> log?
>
Here's the appropriate section of the ktrace:
ktrace ruby -r socket -e "TCPSocket.new('localhost', 'echo')"
15037 ruby CALL socket(0x1e,0x1,0x6)
15037 ruby RET socket 11/0xb
15037 ruby CALL fcntl(0xb,0x3,0)
15037 ruby RET fcntl 2
15037 ruby CALL fcntl(0xb,0x4,0x6)
15037 ruby RET fcntl 0
15037 ruby CALL connect(0xb,0x222960,0x1c)
15037 ruby RET connect -1 errno 36 Operation now in progress
15037 ruby CALL select(0xc,0,0xbfffd2b0,0,0)
15037 ruby RET select 1
15037 ruby CALL connect(0xb,0x222960,0x1c)
15037 ruby RET connect -1 errno 22 Invalid argument
15078 ruby CALL connect(0xb,0x2229e0,0x10)
15078 ruby RET connect -1 errno 36 Operation now in progress
15078 ruby CALL select(0xc,0,0xbfffd2b0,0,0)
15078 ruby RET select 1
15078 ruby CALL connect(0xb,0x2229e0,0x10)
15078 ruby RET connect -1 errno 22 Invalid argument
15078 ruby CALL fcntl(0xb,0x4,0x2)
15078 ruby RET fcntl 0
15078 ruby CALL close(0xb)
I'm guessing it tries an IPv6 connect, fails, then tries IPv4 and fails
again.
If I do the same, but connect to 'ftp' (which does have a listener),
then the trace looks like:
15082 ruby CALL socket(0x1e,0x1,0x6)
15082 ruby RET socket 11/0xb
15082 ruby CALL fcntl(0xb,0x3,0)
15082 ruby RET fcntl 2
15082 ruby CALL fcntl(0xb,0x4,0x6)
15082 ruby RET fcntl 0
15082 ruby CALL connect(0xb,0x222960,0x1c)
15082 ruby RET connect -1 errno 36 Operation now in progress
15082 ruby CALL select(0xc,0,0xbfffd2b0,0,0)
15082 ruby RET select 1
15082 ruby CALL connect(0xb,0x222960,0x1c)
15082 ruby RET connect -1 errno 22 Invalid argument
15082 ruby CALL fcntl(0xb,0x4,0x2)
15082 ruby RET fcntl 0
15082 ruby CALL close(0xb)
15082 ruby RET close 0
15082 ruby CALL socket(0x2,0x1,0x6)
15082 ruby RET socket 11/0xb
15082 ruby CALL fcntl(0xb,0x3,0)
15082 ruby RET fcntl 2
15082 ruby CALL fcntl(0xb,0x4,0x6)
15082 ruby CALL fcntl(0xb,0x3,0)
15082 ruby RET fcntl 2
15082 ruby CALL fcntl(0xb,0x4,0x6)
15082 ruby RET fcntl 0
15082 ruby CALL connect(0xb,0x2229e0,0x10)
15082 ruby RET connect -1 errno 36 Operation now in progress
15082 ruby CALL select(0xc,0,0xbfffd2b0,0,0)
15082 ruby RET select 1
15082 ruby CALL connect(0xb,0x2229e0,0x10)
15082 ruby RET connect -1 errno 56 Socket is already connected
15082 ruby CALL fcntl(0xb,0x4,0x2)
15082 ruby RET fcntl 0
15082 ruby CALL getrlimit(0x8,0xbfffd270)
15082 ruby RET getrlimit 0
15082 ruby CALL fcntl(0xb,0x3,0)
15082 ruby RET fcntl 2
15082 ruby CALL fcntl(0xb,0x3,0)
15082 ruby RET fcntl 2
15082 ruby CALL close(0xb)
15082 ruby RET close 0
15082 ruby CALL close(0xb)
15082 ruby RET close -1 errno 9 Bad file descriptor
15082 ruby CALL exit(0)
Not knowing anything about socket programming, I'm wondering if the
error 56 is expected in these circumstances. I'm also slightly surprised
by the double close of FD11 at the end.
Cheers
Dave