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

(temporal) random failures in Match structure #1799

Closed
p6rt opened this issue May 31, 2010 · 7 comments
Closed

(temporal) random failures in Match structure #1799

p6rt opened this issue May 31, 2010 · 7 comments

Comments

@p6rt
Copy link

p6rt commented May 31, 2010

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

Searchable as RT75484$

@p6rt
Copy link
Author

p6rt commented May 31, 2010

From @moritz

'a b c d' ~~ /​:s [(\w) <alpha> ]+/;

say $0.WHAT;
say $0.elems;
say $<alpha>.WHAT;
say $<alpha>.elems;
say $/;

Produces randomly either

Array()
2
Match()
1
a b c d

or

Array()
2
Array()
2
a b c d

(second output is correct).
It even randomly alternates when I call it with
parrot --hash-seed 0 perl6.pbc $file

This bug manifests itself in S05-capture/caps.t.

@p6rt
Copy link
Author

p6rt commented Jul 23, 2010

From oha@oha.it

i've tested a bit and this should fix the problem​:

Inline Patch
--- Cursor.pir.orig	2010-07-24 00:49:24.092255372 +0200
+++ Cursor.pir	2010-07-24 00:28:20.834766075 +0200
@@ -115,6 +115,7 @@
   caparray_int:
     $I0 = subname
     match[$I0] = arr
+    goto caparray_loop
   caparray_done:
 
     # If it's not a successful match, or if there are

@p6rt
Copy link
Author

p6rt commented Jul 23, 2010

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

@p6rt
Copy link
Author

p6rt commented Jul 24, 2010

From @moritz

On Fri Jul 23 15​:51​:29 2010, oha.it wrote​:

i've tested a bit and this should fix the problem​:

And indeed, it does. Thank you very much for your patch.

I've applied the fix to nqp-rx, but Rakudo will only get it after the
Rakudo Star release, when we can use a bleeding edge parrot (and nqp) again.

@p6rt
Copy link
Author

p6rt commented Jan 18, 2011

From @felliott

Hello,

I believe this bug can be marked as 'resolved'. It works in current
rakudo and has an active and passing test in S05-capture/caps.t

Cheers,
Fitz Elliott

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jan 18, 2011

From @felliott

Hello,

I believe this bug can be marked as 'resolved'. It works in current
rakudo and has an active and passing test in S05-capture/caps.t

Cheers,
Fitz Elliott

@p6rt
Copy link
Author

p6rt commented Jan 18, 2011

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

@p6rt p6rt closed this as completed Jan 18, 2011
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