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

failure in launching promises in an array #4237

Closed
p6rt opened this issue May 12, 2015 · 4 comments
Closed

failure in launching promises in an array #4237

p6rt opened this issue May 12, 2015 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 12, 2015

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

Searchable as RT125161$

@p6rt
Copy link
Author

p6rt commented May 12, 2015

From @grondilu

Hi,

$ perl6 --version
This is perl6 version 2015.04-199-ge82920a built on MoarVM version
2015.04-62-g052aca0

$ perl6 -e 'perl6 -e 'my @​p = map { start { my @​a = [ rand xx 1_000 ];
@​a } }, ^10; for @​p { die "oops" unless .result }'

Amazingly enough, this fails undeterministically with various error
messages. Or sometimes it just die with "oops" (which is not good
either).

An example of failure is​:
===SORRY!===
Cannot call prefix​:<-->(Int); none of these signatures match​:
  (Mu​:D \a is rw)
  (Mu​:U \a is rw)
  (Bool​:U \a is rw)
  (Int​:D $a is rw)
  (int $a is rw)
  (Num​:D $a is rw)
  (Num​:U $a is rw)
  (num $a is rw)

@p6rt
Copy link
Author

p6rt commented Sep 15, 2015

From @jnthn

On Tue May 12 07​:28​:25 2015, grondilu@​yahoo.fr wrote​:

Hi,

$ perl6 --version
This is perl6 version 2015.04-199-ge82920a built on MoarVM version
2015.04-62-g052aca0

$ perl6 -e 'perl6 -e 'my @​p = map { start { my @​a = [ rand xx 1_000 ];
@​a } }, ^10; for @​p { die "oops" unless .result }'

Amazingly enough, this fails undeterministically with various error
messages. Or sometimes it just die with "oops" (which is not good
either).

Seems to work reliably now. Added test coverage in S17-promise/start.t.

Thanks!

/jnthn

@p6rt
Copy link
Author

p6rt commented Sep 15, 2015

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

@p6rt p6rt closed this as completed Sep 15, 2015
@p6rt
Copy link
Author

p6rt commented Sep 15, 2015

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

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant