Skip to content

grep fails with error cannot create a string longer than 0x1fffffe8 characters #1651

@aakbar5

Description

@aakbar5

Minimal .gitlab-ci.yml illustrating the issue

# grep on file which is around 900MB

Expected behavior
This error shouldn't happen.

Host information
Ubuntu 24.04.3 LTS
gitlab-ci-local 4.62.0

Additional context

Error: Cannot create a string longer than 0x1fffffe8 characters
    at Object.slice (node:buffer:636:37)
    at Buffer.toString (node:buffer:864:14)
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:63:23)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions