deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

Some util.inspect (of `node/`) test cases fail with `Fatal process OOM in RegExpCompiler` in ubuntu

Open kt3k opened this issue 3 years ago • 3 comments

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

kt3k avatar May 13 '22 12:05 kt3k

Will continue to detect exact regexp that causes the above

kt3k avatar May 13 '22 12:05 kt3k

Removing v8 flag --stack-size=4000 seems solving the issue. (That flag is set in node/_tools/test.ts)

スクリーンショット 2022-05-14 0 09 42

I also tries various combinations of --stack-size and --max-old-space-size, and the result varies depending on these 2 values

kt3k avatar May 13 '22 15:05 kt3k

ref https://github.com/nodejs/node/issues/10137

kt3k avatar May 13 '22 15:05 kt3k

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

kt3k avatar Mar 21 '23 06:03 kt3k