Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EOF check in MoarVM breaks process substitution and opening of devices #5103

Open
p6rt opened this issue Jan 29, 2016 · 4 comments
Open

EOF check in MoarVM breaks process substitution and opening of devices #5103

p6rt opened this issue Jan 29, 2016 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jan 29, 2016

Migrated from rt.perl.org#127423 (status was 'new')

Searchable as RT127423$

@p6rt
Copy link
Author

p6rt commented Jan 29, 2016

From vittore.scolari@pasteur.fr

Typing the following on the command line​:

perl6 -e 'say @​*ARGS[0].IO.open(​:r).lines' <(head /etc/hosts)

causes the software to abort with the error message​:

Failed to seek in filehandle​: 29

This is caused by MoarVM/src/io/syncfile.c at the end of the mvm_eof
function.

same for​:
perl6 -e 'say @​*ARGS[0].IO.lines' /dev/tty

@p6rt
Copy link
Author

p6rt commented Aug 1, 2016

From @zoffixznet

Still present today in Rakudo 2016.07.1-88-g15ee3c3​:

$ perl6 -e 'say @​*ARGS[0].IO.open(​:r).lines' <(head /etc/hosts)
Failed to seek in filehandle​: 29
  in block <unit> at -e line 1

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt
Copy link
Author

p6rt commented Jun 20, 2017

From vittore.scolari@pasteur.fr

The bugs seems fixed as of today - 2017.06-13-g6b634a3

Thank you

@p6rt
Copy link
Author

p6rt commented Jun 22, 2017

From @zoffixznet

Tests needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant