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

MoarVM panic when testing Red (CONTROL blocks) #2665

Open
AlexDaniel opened this issue Feb 1, 2019 · 20 comments
Open

MoarVM panic when testing Red (CONTROL blocks) #2665

AlexDaniel opened this issue Feb 1, 2019 · 20 comments
Labels
MoarVM Related to Rakudo-MoarVM severe A problem that is encountered frequently, or a problem that needs attention for other reasons

Comments

@AlexDaniel
Copy link
Contributor

See this ticket #2640.

Basically there was an attempt to fix the regression in this commit: 71a19c6

However, exactly on that commit MoarVM panic can be observed:

The following candidates are already installed: Red
===> Searching for: Red
===> Found: Red:ver<0.0.2>:api<0> [via Zef::Repository::LocalCache]
===> Testing: Red:ver<0.0.2>:api<0>
t/00-meta.t ........................ ok
t/01-basic.t ....................... ok
t/02-tdd.t ......................... ok
t/03-sqlite.t ...................... ok
t/04-blog.t ........................ ok
t/05-ticket.t ...................... ok
MoarVM panic: Trying to unwind over wrong handler
t/06-better-map.t .................. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 
t/07-optimizer.t ................... ok
t/08-best-tree.t ................... ok
t/09-alternate-relation.t .......... ok
t/10-alternate-relation-modules.t .. ok
t/11-join.t ........................ ok
t/12-types.t ....................... ok
t/14-result-seq-update.t ........... ok

Test Summary Report
-------------------
t/06-better-map.t                (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 1 tests but ran 0.
Files=14, Tests=251, 106 wallclock secs ( 0.10 usr  0.01 sys + 156.38 cusr  7.15 csys = 163.64 CPU)
Result: FAIL
===> Testing [FAIL]: Red:ver<0.0.2>:api<0>
Failed to get passing tests, but continuing with --force-test
@AlexDaniel AlexDaniel added the BLOCKER Preventing the next release of rakudo, or just needing attention before the release label Feb 1, 2019
@jnthn
Copy link
Member

jnthn commented Feb 12, 2019

I checked out latest Red and ran its tests on Rakudo HEAD, and they all pass for me.

@jonathanstowe
Copy link
Contributor

Yep looks good here too.

@AlexDaniel AlexDaniel added tests needed Issue is generally resolved but tests were not written yet and removed BLOCKER Preventing the next release of rakudo, or just needing attention before the release labels Feb 12, 2019
@AlexDaniel
Copy link
Contributor Author

That's good, though we probably will end up with no test for this…

@AlexDaniel AlexDaniel added the BLOCKER Preventing the next release of rakudo, or just needing attention before the release label Feb 18, 2019
@AlexDaniel
Copy link
Contributor Author

The panic is still there, it's not fixed… I'm not sure when this issue was introduced, in the last run of Blin it was bisected to this commit 3d3578b. It probably means that on HEAD it is flapping, but on 2018.12 it was working consistently.

@AlexDaniel AlexDaniel removed the tests needed Issue is generally resolved but tests were not written yet label Feb 18, 2019
@lizmat
Copy link
Contributor

lizmat commented Feb 19, 2019 via email

@jonathanstowe
Copy link
Contributor

I think that's #2703

@AlexDaniel
Copy link
Contributor Author

Seems to be still happening. @jonathanstowe can you double check?

@jonathanstowe
Copy link
Contributor

Yep. Will do.

@jonathanstowe
Copy link
Contributor

Well. I think we have a flapper here:

[jonathan@coriolanus Red]$ zef test . --debug
===> Testing: Red:ver<0.0.2>:api<0>
Testing with plugin: Zef::Service::TAP+{<anon|1>}
t/00-meta.t ........................ ok
t/01-basic.t ....................... ok
t/02-tdd.t ......................... ok
t/03-sqlite.t ...................... ok
t/04-blog.t ........................ ok
t/05-ticket.t ...................... ok
t/06-better-map.t .................. ok
t/07-optimizer.t ................... ok
t/08-best-tree.t ................... ok
t/09-alternate-relation.t .......... ok
t/10-alternate-relation-modules.t .. ok
t/11-join.t ........................ ok
t/12-types.t ....................... ok
t/13-roles.t ....................... ok
t/14-result-seq-update.t ........... ok
t/15-union.t ....................... ok
t/16-result-seq-bool.t ............. ok
t/17-create-related-pars.t ......... ok
All tests successful.
Files=18, Tests=288,  119 wallclock secs
Result: PASS
===> Testing [OK] for Red:ver<0.0.2>:api<0>
[jonathan@coriolanus Red]$ perl6 -v
This is Rakudo version 2018.12-311-gd6563816e built on MoarVM version 2018.12-110-g04982f6e9
implementing Perl 6.d.
[jonathan@coriolanus Red]$ 

Similar result using prove6 too.

@AlexDaniel
Copy link
Contributor Author

@jonathanstowe is my understanding correct that this issue did not exist before?

@jonathanstowe
Copy link
Contributor

I've only seen it once, so yes.

@AlexDaniel
Copy link
Contributor Author

Actually, I'm struggling to reproduce this myself. I think it's mostly OK.

@AlexDaniel
Copy link
Contributor Author

OK, I'm not sure about this one. It failed with MoarVM panic in Blin three times in a row. There's something wrong.

@AlexDaniel AlexDaniel reopened this Feb 24, 2019
@AlexDaniel
Copy link
Contributor Author

Looks like it always happens in t/06-better-map.t.

@AlexDaniel
Copy link
Contributor Author

And again, I can't reproduce it locally. @dogbert17 maybe you can try something?

@AlexDaniel
Copy link
Contributor Author

<dogbert17> AlexDaniel: I had a look at R#2665, I can't get the test to panic on its own, it only panics when trying to install the module via zef

@dogbert17++! Indeed, it can be reproduced rather easily with zef install Red.

@jonathanstowe
Copy link
Contributor

Hmm,
I've seen stuff like this that happens only the first time it is compiled with Lumberjack too.

@ugexe
Copy link
Member

ugexe commented Feb 26, 2019

$ prove -e 'perl6 -I.' t/
t/00-meta.t ........................ ok
t/01-basic.t ....................... ok
t/02-tdd.t ......................... ok
t/03-sqlite.t ...................... ok
t/04-blog.t ........................ ok
t/05-ticket.t ...................... ok
t/06-better-map.t .................. MoarVM panic: Trying to unwind over wrong handler
t/06-better-map.t .................. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/07-optimizer.t ................... ok
t/08-best-tree.t ................... ok
t/09-alternate-relation.t .......... ok
t/10-alternate-relation-modules.t .. ok
t/11-join.t ........................ ok
t/12-types.t ....................... ok
t/14-result-seq-update.t ........... ok

Test Summary Report
-------------------
t/06-better-map.t                (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 1 tests but ran 0.
Files=14, Tests=251, 34 wallclock secs ( 0.09 usr  0.02 sys + 46.37 cusr  1.99 csys = 48.47 CPU)
Result: FAIL
$ perl6 -v
This is Rakudo version 2018.12-320-g9a87b568f built on MoarVM version 2018.12-117-gdcafbc4c7
implementing Perl 6.d.

This happens every single run on the Linux and OSX machines I tested on.

@AlexDaniel
Copy link
Contributor Author

AlexDaniel commented Feb 26, 2019

I think @dogbert17++ figured it out:

In terms of the upcoming release, it seems that we're hitting a known bug, but also @FCO can release a new version on CPAN and the issue will somewhat go away.

Not a blocker, phew. Thanks to everyone involved. ♥

EDIT: oops, sorry for the ping, @jonathanstowe!

@AlexDaniel AlexDaniel added severe A problem that is encountered frequently, or a problem that needs attention for other reasons and removed BLOCKER Preventing the next release of rakudo, or just needing attention before the release labels Feb 26, 2019
@AlexDaniel
Copy link
Contributor Author

I'll keep this open so that we have a ticket in Rakudo repo, but for any discussion see MoarVM/MoarVM#572

@AlexDaniel AlexDaniel changed the title MoarVM panic when testing Red MoarVM panic when testing Red (CONTROL blocks) Feb 26, 2019
@lucasbuchala lucasbuchala added the MoarVM Related to Rakudo-MoarVM label Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MoarVM Related to Rakudo-MoarVM severe A problem that is encountered frequently, or a problem that needs attention for other reasons
Projects
None yet
Development

No branches or pull requests

6 participants