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

The inside of a while loop loses $/ in Rakduo #280

Closed
p6rt opened this issue Aug 25, 2008 · 5 comments
Closed

The inside of a while loop loses $/ in Rakduo #280

p6rt opened this issue Aug 25, 2008 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Aug 25, 2008

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

Searchable as RT58352$

@p6rt
Copy link
Author

p6rt commented Aug 25, 2008

From @masak

r30528​:
$ ./perl6 -e 'while ("test" ~~ /(es)/) { say $0; exit; }'
Null PMC access in get_pmc_keyed_int()
[...]
Segmentation fault

FWIW, the error shows up in r30503, whose slightly Orwellian message
reads "[rakudo] allow access to $/, $!, $_ in while loops, closes RT
#​58306".

@p6rt
Copy link
Author

p6rt commented Aug 27, 2008

From @moritz

On Mon Aug 25 01​:37​:17 2008, masak wrote​:

r30528​:
$ ./perl6 -e 'while ("test" ~~ /(es)/) { say $0; exit; }'
Null PMC access in get_pmc_keyed_int()
[...]
Segmentation fault

FWIW, the error shows up in r30503, whose slightly Orwellian message
reads "[rakudo] allow access to $/, $!, $_ in while loops, closes RT
#​58306".

FYI I added tests for that to t/spec/S05-match/blocks.t

@p6rt
Copy link
Author

p6rt commented Aug 27, 2008

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

@p6rt
Copy link
Author

p6rt commented Sep 11, 2008

From @jnthn

On Wed Aug 27 02​:10​:10 2008, moritz wrote​:

On Mon Aug 25 01​:37​:17 2008, masak wrote​:

r30528​:
$ ./perl6 -e 'while ("test" ~~ /(es)/) { say $0; exit; }'
Null PMC access in get_pmc_keyed_int()
[...]
Segmentation fault

FWIW, the error shows up in r30503, whose slightly Orwellian message
reads "[rakudo] allow access to $/, $!, $_ in while loops, closes RT
#​58306".

FYI I added tests for that to t/spec/S05-match/blocks.t

This was resolved in a commit earlier today (same one that fixed a very
similar bug in if blocks). Also now unskipped some tests in the
mentioned test file.

Thanks,

Jonathan

@p6rt p6rt closed this as completed Sep 11, 2008
@p6rt
Copy link
Author

p6rt commented Sep 11, 2008

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

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