On Fri, 9 Oct 2015, at 02:04 AM, Elizabeth Mattijsen via RT wrote:
> 
> I wonder if this is another symptom of:
> 
> $ cat /dev/urandom | perl6
> > ===SORRY!===
> Malformed UTF-8
> 
> 
> Liz
> 

It's not specific to /dev/urandom, it happens with a filehandle for a
file with plain ASCII chars:

    use v6;

    Thread.start({
        my $fh = open('/tmp/blah');
        say $fh.read(16);
        say "alive";
    });

    say "main program ending";


$ cat /tmp/blah
The quick brown fox jumped over the lazy dogs.
$ perl6 bug.pl6
main program ending
Buf[uint8]:0x<54 68 65 20 71 75 69 63 6b 20 62 72 6f 77 6e 20>
alive
Segmentation fault (core dumped)
$ cat /tmp/blah | perl6
> ===SORRY!=== Error while compiling <unknown file>
Missing required term after infix
at <unknown file>:3
------> <BOL>?<EOL>
    expecting any of:
        dotty method or postfix


--
Carlin

Reply via email to