Skip Menu |
Report information
Id: 123484
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: mickyc [at] shaw.ca
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Tue, 23 Dec 2014 02:40:56 -0700
To: rakudobug [...] perl.org
From: Michael Chajkowski <mickyc [...] shaw.ca>
Subject: [BUG] File pipe IO problematic
Download (untitled) / with headers
text/plain 1.5k
I have compiled Rakudo Star from the source package and it reports: This is perl6 version 2014.09 built on MoarVM version 2014.09 The system fifo read crashes with the error included at the bottom. The test was done with two scripts in two separate xterm instances. Thank you for all of the wonderful work. Michael Chajkowski ** One shell running this: my $pipe = 'test_pipe'.IO; for (1..Inf) -> $iter { spurt $pipe, sprintf "This is it %00d\n", $iter; sleep 1; }; ** Another shell running this: my $pipe = 'test_pipe'.IO; while 1 { $pipe.get.say; # $pipe.lines.say; sleep 1; } ** Using .get Failed to seek in filehandle: 29 in method eof at src/gen/m-CORE.setting:14679 in method get at src/gen/m-CORE.setting:14687 in block <unit> at ./test.p6:11 ** Using .lines Failed to seek in filehandle: 29 in code at src/gen/m-CORE.setting:14716 in block at src/gen/m-CORE.setting:8328 in block at src/gen/m-CORE.setting:8332 in method reify at src/gen/m-CORE.setting:8358 in method reify at src/gen/m-CORE.setting:8021 in method reify at src/gen/m-CORE.setting:8021 in method reify at src/gen/m-CORE.setting:8122 in method reify at src/gen/m-CORE.setting:8021 in method reify at src/gen/m-CORE.setting:8021 in method gimme at src/gen/m-CORE.setting:8508 in method eager at src/gen/m-CORE.setting:8482 in method join at src/gen/m-CORE.setting:1817 in method gist at src/gen/m-CORE.setting:8920 in sub say at src/gen/m-CORE.setting:15179 in method say at src/gen/m-CORE.setting:1136 in block <unit> at ./test.p6:11
Subject: [perl #123484]
From: raydiak [...] cyberuniverses.com
To: rakudobug [...] perl.org
Date: Wed, 24 Dec 2014 18:43:38 +0000
Download (untitled) / with headers
text/plain 768b
http://irclog.perlgeek.de/perl6/2014-12-23#i_9846422 my $pipe = 'testpipe'.IO; say $pipe.slurp; # always returns an empty string my $handle = $pipe.open; # blocks until there is something to read...note 'read' is not called yet say $handle.read(1); # read works say $handle.getc(); # getc seems to work say $handle.getc(1); # "Too many positionals passed"...this one is just a design vs implementation discrepancy? say $handle.get; # "Failed to seek in filehandle: 29" say $handle.lines; # "Failed to seek in filehandle: 29" say $handle.eof; # "Failed to seek in filehandle: 29" This is perl6 version 2014.12-9-gfb9127c built on MoarVM version 2014.12 Linux 3.16.0-28-generic #38-Ubuntu SMP Sat Dec 13 16:13:28 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org