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

A dollar sign at the end of a string makes rakudo hang #176

Closed
p6rt opened this issue Jul 19, 2008 · 6 comments
Closed

A dollar sign at the end of a string makes rakudo hang #176

p6rt opened this issue Jul 19, 2008 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Jul 19, 2008

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

Searchable as RT57118$

@p6rt
Copy link
Author

p6rt commented Jul 19, 2008

From @masak

$ ./perl6 -e '"$"'

hangs.

@p6rt
Copy link
Author

p6rt commented Jul 26, 2008

From @masak

The infinite loop was caused in src/parser/quote_expression.pir as
follows​: the call to the rule on line 288 returns failure (since '$'
is not a valid variable); quote_literal is called instead, but
concludes on line 360 that it's reached an escape char ('$'), and
exits immediately. The control is passed back and forth like this,
never advancing pos.

Two possible patches for this issue attached.

@p6rt
Copy link
Author

p6rt commented Jul 26, 2008

From @masak

dollar_bug.patch1

@p6rt
Copy link
Author

p6rt commented Jul 26, 2008

From @masak

dollar_bug.patch2

@p6rt
Copy link
Author

p6rt commented Jul 26, 2008

From @pmichaud

Resolved in r29765, thanks!

Pm

@p6rt
Copy link
Author

p6rt commented Jul 26, 2008

@pmichaud - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Jul 26, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant