Skip to content

bug(invariant): unbounded memory usage in long invariant testing runs #12397

@rappie

Description

@rappie

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge Version: 1.4.4-nightly Commit SHA: 65f96cf Build Timestamp: 2025-10-31T06:02:26.081956256Z (1761890546) Build Profile: maxperf

What version of Foundryup are you on?

foundryup: 1.0.0

What command(s) is the bug in?

forge test -vv --show-progress --match-test invariant

Operating System

Linux

Describe the bug

When running invariant testing overnight I noticed it was using more than 100GB of memory.

You can reproduce it using the command listed above on the following repo (use this commit hash):
perimetersec/origin-woeth-fuzz@be6e4df

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions