deno_std
deno_std copied to clipboard
Some util.inspect (of `node/`) test cases fail with `Fatal process OOM in RegExpCompiler` in ubuntu
Since https://github.com/denoland/deno/commit/0ee76da07b12fba38962634e65853d73adf9d4c0 test-util-inspect-getters-accessing-this.js test case crashes with Fatal process OOM in RegExpCompiler only on Ubuntu
You can check it with the below steps on ubuntu
$ deno upgrade --canary --version 6fff813029b47c0ca9497aaba5920f8acf981772 # one version before 0ee76da
$ deno task node:test -- test-util-inspect-getters-accessing-this.js
$ deno upgrade --canary --version 0ee76da07b12fba38962634e65853d73adf9d4c0
$ deno task node:test -- test-util-inspect-getters-accessing-this.js
Will continue to detect exact regexp that causes the above
Removing v8 flag --stack-size=4000 seems solving the issue. (That flag is set in node/_tools/test.ts)
I also tries various combinations of --stack-size and --max-old-space-size, and the result varies depending on these 2 values
ref https://github.com/nodejs/node/issues/10137
We are replacing the implementation of util.inspect with Deno.inspect now (https://github.com/denoland/deno/pull/17960 ). Let's revisit this when we see the same error again with the new implementation