Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #115540] possible rakudo bug

10 views
Skip to first unread message

Robert Stockdale

unread,
Nov 1, 2012, 1:02:05 AM11/1/12
to bugs-bi...@rt.perl.org
# New Ticket Created by Robert Stockdale
# Please include the string: [perl #115540]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=115540 >


Hello,

Per a conversation with tadzik, it seems I've stumbled across a bug in Rakudo. When attempting to install MuEvent via panda, several tests were failing. Tadzik recommended I try the following script which apparently points out some problem with rakudo. I must admit, I don't really understand the underlying issue. Hopefully this makes sense but please let me know if any additional information is needed.

new-host:~ bob$ perl6 ~/test_inet.pl6
connect failed: Operation timed out
in method initialize at src/gen/CORE.setting:7922
in method new at src/gen/CORE.setting:7901
in block at /Users/bob/test_inet.pl6:8

new-host:~ bob$ cat ~/test_inet.pl6
my $l = IO::Socket::INET.new(
:localhost('localhost'),
:localport(6666),
:listen
);

my $c1 = IO::Socket::INET.new(:host('localhost'), :port(6666));
my $c2 = IO::Socket::INET.new(:host('localhost'), :port(6666));

say 'alive';
new-host:~ bob$

Here is some information about my environment:

The machine is running Mountain Lion, 10.8.2.

new-host:~ bob$ perl6 --version This is perl6 version 2012.09.1 built on parrot 4.6.0 revision 0

Please let me know if you need any additional information about this.

Thanks,
-Bob

yary

unread,
Nov 2, 2012, 9:38:04 AM11/2/12
to perl6-compiler, bugs-bi...@rt.perl.org
From my own knowledge of sockets (not of Rakudo), I don't see a
problem here. You're getting a timeout on an attempt to open a port
that you've already opened a socket on, which should fail in any
language. "connect failed: Operation timed out" sounds appropriate.
-y

Brandon Allbery

unread,
Nov 2, 2012, 9:45:04 AM11/2/12
to yary, perl6-compiler, bugs-bi...@rt.perl.org
On Fri, Nov 2, 2012 at 9:38 AM, yary <not...@gmail.com> wrote:

> From my own knowledge of sockets (not of Rakudo), I don't see a
> problem here. You're getting a timeout on an attempt to open a port
> that you've already opened a socket on, which should fail in any
> language. "connect failed: Operation timed out" sounds appropriate.
> -y


Some platforms let you get away with it, though. (I have seen it on older
Solaris and several Linux kernels, although the latter are --- as usual ---
inconsistent.)

--
brandon s allbery kf8nh sine nomine associates
allb...@gmail.com ball...@sinenomine.net
unix/linux, openafs, kerberos, infrastructure http://sinenomine.net
0 new messages