Skip to content

Assertion 'scope_stack_p >= context_p->scope_stack_p' failed at jerry-core/parser/js/js-parser-statm.c(parser_parse_function_statement):741. #4919

Closed
@SwtWld

Description

@SwtWld
JerryScript revision

Commit: a6ab5e9

Version: v3.0.0

Build platform

Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64)

Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64)

Build steps
python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20
Test case
poc.js

function JSEtest() {
  const v1 = [
      1337,
      1337
  ];
  let v2 = v1;
  with (100) {
      const v8 = {
          valueOf: 13.37,
          d: -2191938590,
          __proto__: 'ldq5vGcKyJ',
          {: 128
      };
      function v9(v10, v11, v12) {
          v2 = -1000;
          let v15 = arguments;
      }
      for (let v19 = 0; v19 < 100; v19++) {
          const v20 = v9(v8);
      }
  }
}
JSEtest();

Execution steps & Output
$ ./jerryscript/build/bin/jerry poc.js

ICE: Assertion 'scope_stack_p >= context_p->scope_stack_p' failed at /root/jerryscript/jerry-core/parser/js/js-parser-statm.c(parser_parse_function_statement):741.
Error: ERR_FAILED_INTERNAL_ASSERTION
[1]    23239 abort      jerry poc.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions