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

Failing test on master: EnvironmentTest.LoadEnvironmentWithSource: FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. #40605

Closed
GeoffreyBooth opened this issue Oct 26, 2021 · 3 comments
Labels
build Issues and PRs related to build files or the CI.

Comments

@GeoffreyBooth
Copy link
Member

GeoffreyBooth commented Oct 26, 2021

Version

master @ 9ebdba4

Platform

Darwin Mac 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64

What steps will reproduce the bug?

Fresh checkout, then:

./configure --ninja --node-builtin-modules-path $(pwd)
JOBS=8 make
make test

The test run stops on this error:

[----------] 18 tests from EnvironmentTest
[ RUN      ] EnvironmentTest.EnvironmentWithESMLoader
[       OK ] EnvironmentTest.EnvironmentWithESMLoader (45 ms)
[ RUN      ] EnvironmentTest.EnvironmentWithNoESMLoader
[       OK ] EnvironmentTest.EnvironmentWithNoESMLoader (39 ms)
[ RUN      ] EnvironmentTest.PreExecutionPreparation
[       OK ] EnvironmentTest.PreExecutionPreparation (38 ms)
[ RUN      ] EnvironmentTest.LoadEnvironmentWithCallback
[       OK ] EnvironmentTest.LoadEnvironmentWithCallback (38 ms)
[ RUN      ] EnvironmentTest.LoadEnvironmentWithSource
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
 1: 0x10b637bb5 node::Abort() [/Users/Geoffrey.Booth/Sites/node/out/Release/cctest]
 2: 0x10b637d3f node::OnFatalError(char const*, char const*) [/Users/Geoffrey.Booth/Sites/node/out/Release/cctest]
 3: 0x10bad5900 v8::api_internal::ToLocalEmpty() [/Users/Geoffrey.Booth/Sites/node/out/Release/cctest]
 4: 0x10b51342b EnvironmentTest_LoadEnvironmentWithSource_Test::TestBody() [/Users/Geoffrey.Booth/Sites/node/out/Release/cctest]
 5: 0x10b79b448 testing::Test::Run() [/Users/Geoffrey.Booth/Sites/node/out/Release/cctest]
 6: 0x10b79c788 testing::TestInfo::Run() [/Users/Geoffrey.Booth/Sites/node/out/Release/cctest]
 7: 0x10b79d1e7 testing::TestSuite::Run() [/Users/Geoffrey.Booth/Sites/node/out/Release/cctest]
 8: 0x10b7ad639 testing::internal::UnitTestImpl::RunAllTests() [/Users/Geoffrey.Booth/Sites/node/out/Release/cctest]
 9: 0x10b7acb0f testing::UnitTest::Run() [/Users/Geoffrey.Booth/Sites/node/out/Release/cctest]
10: 0x10b7b4faa main [/Users/Geoffrey.Booth/Sites/node/out/Release/cctest]
11: 0x7fff2032af3d start [/usr/lib/system/libdyld.dylib]
12: 0x2
make[1]: *** [cctest] Abort trap: 6
make: *** [test] Error 2

How often does it reproduce? Is there a required condition?

Every time. I’ve tried on two machines.

Additional information

cc @nodejs/build-files

@GeoffreyBooth GeoffreyBooth added the build Issues and PRs related to build files or the CI. label Oct 26, 2021
targos added a commit to targos/node that referenced this issue Oct 26, 2021
@targos
Copy link
Member

targos commented Oct 26, 2021

It happens because this test doesn't work with --node-builtin-modules-path.

Proposed fix: #40607

@GeoffreyBooth
Copy link
Member Author

@targos Should we have a CI job that tries to build and test with --ninja and/or --node-builtin-modules-path? That would prevent bugs like this in the future, though it might be a lot of wasted CI resources for a low probability bug.

@targos
Copy link
Member

targos commented Oct 27, 2021

Yeah, I'm not sure it's worth spending those resources for a build path that's not really supported outside of core development.

@targos targos closed this as completed in 8c28aaa Nov 8, 2021
targos added a commit that referenced this issue Nov 8, 2021
Refs: #40605

PR-URL: #40607
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
targos added a commit that referenced this issue Nov 8, 2021
Fixes: #40605

PR-URL: #40607
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
targos added a commit that referenced this issue Nov 8, 2021
Refs: #40605

PR-URL: #40607
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
BethGriggs pushed a commit that referenced this issue Nov 25, 2021
Fixes: #40605

PR-URL: #40607
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
BethGriggs pushed a commit that referenced this issue Nov 25, 2021
Refs: #40605

PR-URL: #40607
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI.
Projects
None yet
Development

No branches or pull requests

2 participants