Skip to content

ASAN: Module tests commonly fail to free memory. #2735

@Penguinwizzard

Description

@Penguinwizzard

There are a number of ES6 module tests that fail to free memory appropriately. This appears to be due to WScriptJSRT not freeing the source code of modules it loads. The affected tests have been marked as exclude_sanitize_address for now in PR #2730 to allow ASAN CI to be enabled. These tests are:

  • moduletest1.js
  • moduletest2.js
  • module-syntax.js
  • module-syntax1.js
  • module-functionality.js
  • module-syntax.js (force:deferparse)
  • module-syntax1.js (force:deferparse)
  • module-namespace.js
  • test_bug_2645.js
  • bug_issue_3076.js

Note: This may be an API issue; an (admittedly cursory) look around the APIs related to JsParseModuleSource didn't reveal an easy way to register a finalize callback.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions