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

Rakudo keeps looping on lines() of a symlinked file #3371

Closed
p6rt opened this issue Apr 21, 2014 · 6 comments
Closed

Rakudo keeps looping on lines() of a symlinked file #3371

p6rt opened this issue Apr 21, 2014 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Apr 21, 2014

Migrated from rt.perl.org#121693 (status was 'resolved')

Searchable as RT121693$

@p6rt
Copy link
Author

p6rt commented Apr 21, 2014

From @masak

$ perl6 -v
This is perl6 version 2014.04-5-g921615b built on MoarVM version 2014.04

$ cat > foo
a
b
c
$ perl6 -e 'given open("foo") { .say for .lines }'
a
b
c

So far, so good, but...

$ ln -s foo bar
$ perl6 -e 'given open("bar") { .say for .lines }'
a
b
c
<an infinitude of infinite lines, snipped for your convenience>

Expected latter program to give output identical to the former.

@p6rt
Copy link
Author

p6rt commented Apr 21, 2014

From 1parrota@gmail.com

I just tried to reproduce this on "perl6 version 2014.03.01 built on
parrot 6.1.0 revision 0" and failed. (I.e. the code terminated
correctly).

That might be a clue.

On 4/21/14, Carl Mäsak <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by "Carl Mäsak"
# Please include the string​: [perl #​121693]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=121693 >

$ perl6 -v
This is perl6 version 2014.04-5-g921615b built on MoarVM version 2014.04

$ cat > foo
a
b
c
$ perl6 -e 'given open("foo") { .say for .lines }'
a
b
c

So far, so good, but...

$ ln -s foo bar
$ perl6 -e 'given open("bar") { .say for .lines }'
a
b
c
<an infinitude of infinite lines, snipped for your convenience>

Expected latter program to give output identical to the former.

@p6rt
Copy link
Author

p6rt commented Apr 21, 2014

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 21, 2014

From @FROGGS

This is fixed in MoarVM/MoarVM@4a8dac6

@p6rt
Copy link
Author

p6rt commented Jul 18, 2014

From @FROGGS

I don't think we can check for an operating *and* file system that supports symlinks reliable.

Therefore, closing ticket.

@p6rt
Copy link
Author

p6rt commented Jul 18, 2014

@FROGGS - Status changed from 'open' to 'resolved'

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