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

.hyper and .race resume after exceptions #5651

Closed
p6rt opened this issue Sep 8, 2016 · 4 comments
Closed

.hyper and .race resume after exceptions #5651

p6rt opened this issue Sep 8, 2016 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 8, 2016

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

Searchable as RT129234$

@p6rt
Copy link
Author

p6rt commented Sep 8, 2016

From @smls

If you `die` inside a `map/for` that is being `hyper/race`d...

  for (1..1).hyper { die }; sleep 1; say "Alive";

...it prints the exception's backtrace, but then resumes the program as if nothing had happened​:

  Died
  in block at -e line 1
 
  Alive

@p6rt
Copy link
Author

p6rt commented Oct 18, 2017

From @jnthn

On Thu, 08 Sep 2016 12​:55​:10 -0700, smls75@​gmail.com wrote​:

If you `die` inside a `map/for` that is being `hyper/race`d...

for (1..1).hyper { die }; sleep 1; say "Alive";

...it prints the exception's backtrace, but then resumes the program
as if nothing had happened​:

Died
in block at -e line 1

Alive

Fixed in new hyper/race implementation; tests in S07-hyperrace/hyper.t and S07-hyperrace/race.t. The new error reporting shows the backtrace of both the thing that went wrong in a worker thread, and the place that triggered the iteration.

@p6rt
Copy link
Author

p6rt commented Oct 18, 2017

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

@p6rt p6rt closed this as completed Oct 18, 2017
@p6rt
Copy link
Author

p6rt commented Oct 18, 2017

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

@p6rt p6rt added the conc 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