Node 14, 16 (Ubuntu) crash with --experimental-vm-modules
if require and import are used in the same test file
#39330
Labels
vm
Issues and PRs related to the vm subsystem.
Uh oh!
There was an error while loading. Please reload this page.
Version
14.17.1, 16.4.2
Platform
Ubuntu 20.04.2 LTS
Subsystem
vm
What steps will reproduce the bug?
Full details: GoogleChrome/lighthouse#12702 (comment)
require
andimport
in a jest test filenode --experimental-vm-modules ./node_modules/jest/bin/jest.js
How often does it reproduce? Is there a required condition?
~100% given enough tests are run / there is enough load on the machine
What is the expected behavior?
No crash.
What do you see instead?
Crash.
example failure: https://github.com/GoogleChrome/lighthouse/runs/3025648367?check_suite_focus=true
Additional information
The crash only seems to happen when enough other tests are running. For the same set of tests, I noticed a big difference in crash rate at different times of the day. Given I'm running this on remote GitHub Action machines, and
libpthread
is the source of the crash, I assume the crash is caused by errant multithreading and is dependent on machine load.I was never able to repro this locally on my Mac, Windows, or Debian machine. I do not have access to Ubuntu (besides via GHA).
The text was updated successfully, but these errors were encountered: