镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

node js script exits when input is large #28319

Description

@ayrat555

node v11.6.0
Linux 4.15.0-45-generic #48~16.04.1-Ubuntu SMP Tue Jan 29 18:03:48 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

I have a node js script with custom arguments. When I pass a string argument with size larger than 170_000 node js returns an empty string with exit status 7. The script is not even started

system limit

getconf ARG_MAX      
2097152

Activity

  1. mscdex commented on Jun 20, 2019

    @mscdex
    Contributor

    getconf ARG_MAX does not tell the whole story. See this answer on StackOverflow for more details. In short, the limit is lower than that, more like 128k.

  2. bnoordhuis commented on Jun 21, 2019

    @bnoordhuis
    Member

    See #9137 (comment) for a related report. It's a kernel limitation and as such not under our control. I'll close this out.

  3. added
    linuxIssues and PRs related to the Linux platform.
    questionIssues asking questions about Node.js.
    on Jun 21, 2019
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

    linuxIssues and PRs related to the Linux platform.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions