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

Assertion `!flush_tasks_' failed in parallel/test-worker-memory #30850

Closed
bnoordhuis opened this issue Dec 8, 2019 · 2 comments
Closed

Assertion `!flush_tasks_' failed in parallel/test-worker-memory #30850

bnoordhuis opened this issue Dec 8, 2019 · 2 comments
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. duplicate Issues and PRs that are duplicates of other issues or PRs. v8 platform Issues and PRs related to Node's v8::Platform implementation.

Comments

@bnoordhuis
Copy link
Member

Today's master, commit a9abc17:

=== release test-worker-memory ===
Path: parallel/test-worker-memory
run() called with n=15 (numWorkers=4)
run() called with n=15 (numWorkers=4)
run() called with n=15 (numWorkers=4)
run() called with n=15 (numWorkers=4)
run() called with n=14 (numWorkers=4)
run() called with n=14 (numWorkers=4)
run() called with n=14 (numWorkers=4)
run() called with n=14 (numWorkers=4)
run() called with n=13 (numWorkers=4)
run() called with n=13 (numWorkers=4)
run() called with n=13 (numWorkers=4)
run() called with n=12 (numWorkers=4)
run() called with n=12 (numWorkers=4)
run() called with n=13 (numWorkers=4)
run() called with n=11 (numWorkers=4)
run() called with n=11 (numWorkers=4)
run() called with n=12 (numWorkers=4)
run() called with n=10 (numWorkers=4)
run() called with n=10 (numWorkers=4)
run() called with n=11 (numWorkers=4)
run() called with n=12 (numWorkers=4)
run() called with n=9 (numWorkers=4)
run() called with n=9 (numWorkers=4)
run() called with n=10 (numWorkers=4)
run() called with n=8 (numWorkers=4)
run() called with n=11 (numWorkers=4)
run() called with n=8 (numWorkers=4)
out/Release/node[20609]: ../src/node_platform.cc:275:virtual node::PerIsolatePlatformData::~PerIsolatePlatformData(): Assertion `!flush_tasks_' failed.
 1: 0x10007f7b8 node::Abort() [/Users/bnoordhuis/src/v1.x/out/Release/node]
 2: 0x10007f565 node::AppendExceptionLine(node::Environment*, v8::Local<v8::Value>, v8::Local<v8::Message>, node::ErrorHandlingMode) [/Users/bnoordhuis/src/v1.x/out/Release/node]
 3: 0x1000cfaa3 node::PerIsolatePlatformData::~PerIsolatePlatformData() [/Users/bnoordhuis/src/v1.x/out/Release/node]
 4: 0x1000cfe7b node::NodePlatform::RegisterIsolate(v8::Isolate*, uv_loop_s*) [/Users/bnoordhuis/src/v1.x/out/Release/node]
 5: 0x1000f2d6b node::worker::WorkerThreadData::WorkerThreadData(node::worker::Worker*) [/Users/bnoordhuis/src/v1.x/out/Release/node]
 6: 0x1000f0a4c node::worker::Worker::Run() [/Users/bnoordhuis/src/v1.x/out/Release/node]
 7: 0x1000f32ae node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_2::__invoke(void*) [/Users/bnoordhuis/src/v1.x/out/Release/node]
 8: 0x7fff7cf412eb _pthread_body [/usr/lib/system/libsystem_pthread.dylib]
 9: 0x7fff7cf44249 _pthread_start [/usr/lib/system/libsystem_pthread.dylib]
10: 0x7fff7cf4040d thread_start [/usr/lib/system/libsystem_pthread.dylib]
Command: out/Release/node /Users/bnoordhuis/src/v1.x/test/parallel/test-worker-memory.js
--- CRASHED (Signal: 6) ---

Presumably a race condition because I've only seen it happen once. I ran the test in a loop for a while but no dice.

#30324 probably either introduced or surfaced this. (It introduced the check but it's possible the errant behavior existed before that. Also that CHECK should probably be CHECK_NULL.)

cc @addaleax @laverdet

@bnoordhuis bnoordhuis added the c++ Issues and PRs that require attention from people who are familiar with C++. label Dec 8, 2019
@addaleax
Copy link
Member

addaleax commented Dec 8, 2019

Also, duplicate of #30846 I guess? Did this happen locally for you?

@bnoordhuis
Copy link
Member Author

Oh, I searched for flush_tasks_ but that didn't turn up anything. Yes, it happened locally.

I'll close this out in favor of #30846.

@bnoordhuis bnoordhuis added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Dec 8, 2019
@addaleax addaleax added the v8 platform Issues and PRs related to Node's v8::Platform implementation. label Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. duplicate Issues and PRs that are duplicates of other issues or PRs. v8 platform Issues and PRs related to Node's v8::Platform implementation.
Projects
None yet
Development

No branches or pull requests

2 participants