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

test-worker-take-heapsnapshot crash #39686

Closed
richardlau opened this issue Aug 6, 2021 · 3 comments
Closed

test-worker-take-heapsnapshot crash #39686

richardlau opened this issue Aug 6, 2021 · 3 comments
Labels
aix Issues and PRs related to the AIX platform. flaky-test Issues and PRs related to the tests with unstable failures on the CI.

Comments

@richardlau
Copy link
Member

  • Test: pummel/test-worker-take-heapsnapshot
  • Platform: AIX 7.2
  • Console Output:
09:20:31 not ok 3156 pummel/test-worker-take-heapsnapshot
09:20:32   ---
09:20:32   duration_ms: 0.665
09:20:32   severity: crashed
09:20:32   exitcode: -6
09:20:32   stack: |-
09:20:32     (node:38339010) internal/test/binding: These APIs are for internal testing only. Do not use them.
09:20:32     (Use `node --trace-warnings ...` to show where the warning was created)
09:20:32     FATAL ERROR: HandleScope::HandleScope Entering the V8 API without proper locking in place
09:20:32   ...
@richardlau richardlau added the aix Issues and PRs related to the AIX platform. label Aug 6, 2021
@targos targos added test Issues and PRs related to the tests. flaky-test Issues and PRs related to the tests with unstable failures on the CI. and removed test Issues and PRs related to the tests. labels Aug 9, 2021
@richardlau
Copy link
Member Author

Could this be related to #37069?

@gireeshpunathil
Copy link
Member

Could this be related to #37069?

@richardlau - possible. That issue hints at a race condition (between whom? main thread and the worker thread may be?), given that the issue is easily reproducible with debug build. What I suspect is that once created, the worker thread is able to progress too fast for the main thread, w. r. t. preparing the snapshot collection. But what sequence would need to be executed to fully bootstrap the process? I don't know about that. But this can explain why issue is pronounced in AIX, where the child thread stands better chance to get the CPU than the parent thread. If I were to attempt a recreate (I don't have an AIX box right now), I will select a box with either limited CPUs (< 10) or with a lot of unrelated CPU bound processes running (so as to force CPU contention between main and worker thread, and hope the worker will win the race) and run this test a thousand times.

@lpinca
Copy link
Member

lpinca commented Jun 29, 2023

I think this was fixed by #44515, closing.

@lpinca lpinca closed this as completed Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aix Issues and PRs related to the AIX platform. flaky-test Issues and PRs related to the tests with unstable failures on the CI.
Projects
None yet
Development

No branches or pull requests

4 participants