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

vm: Fix occasional crash due to race condition in executor teardown #170

Merged
merged 3 commits into from
Jan 31, 2021

Conversation

BastianBlokland
Copy link
Owner

No description provided.

When the executor registry is aborting it first pauses the executors.
However it treated failed execs also as paused, in which case an failed
exec could try to unregister itself after the registry had already
aborted.
@codecov-io
Copy link

codecov-io commented Jan 31, 2021

Codecov Report

Merging #170 (4b339a9) into master (cd4ed26) will increase coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #170      +/-   ##
==========================================
+ Coverage   83.37%   83.45%   +0.08%     
==========================================
  Files         288      288              
  Lines       14609    14597      -12     
==========================================
+ Hits        12180    12182       +2     
+ Misses       2429     2415      -14     
Flag Coverage Δ
novstd 83.45% <100.00%> (+0.08%) ⬆️
unittests 83.45% <100.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/vm/internal/executor.cpp 97.28% <100.00%> (-0.01%) ⬇️
src/vm/internal/executor_registry.cpp 100.00% <100.00%> (+8.33%) ⬆️
src/vm/internal/garbage_collector.cpp 93.05% <0.00%> (+4.86%) ⬆️
src/vm/internal/intrinsics.hpp 100.00% <0.00%> (+50.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 206da6b...f91cd4f. Read the comment docs.

@BastianBlokland BastianBlokland enabled auto-merge (squash) January 31, 2021 12:51
@BastianBlokland BastianBlokland merged commit d79117d into master Jan 31, 2021
@BastianBlokland BastianBlokland deleted the fix/vm-crash-on-abort branch January 31, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants