Skip to content

Memory std::bad_alloc #24858

Description

@BannerBomb

After upgrading from nodejs v10.14.0, I start my small program using node . and the memory usage rises from >400MB until the ram is at 100% which is where I am greeted with

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

which did not happen until I upgraded to node v10.14.1 which happens within 10 seconds of starting the script.

Activity

bnoordhuis commented on Dec 6, 2018

@bnoordhuis
Member

Do you have a standalone test case? 'Standalone' meaning using no third-party dependencies, only built-in modules?

added
memoryIssues and PRs related to Node.js memory management or memory footprint.
on Dec 6, 2018

BannerBomb commented on Dec 8, 2018

@BannerBomb
Author

sorry, I found out it was a ReDos.

bnoordhuis commented on Dec 11, 2018

@bnoordhuis
Member

Okay, thanks for the update. I'll close out the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssues and PRs that are invalid.memoryIssues and PRs related to Node.js memory management or memory footprint.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions