Skip to content

Copying output from console causes large mem usage/OOM #887

@fanquake

Description

@fanquake

Moved from bitcoin/bitcoin#33285.

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

Running the GUI on mainnet, I open the console, run:

getblocktemplate '{"rules": ["segwit"]}'

everything acts normally until then. If I then try to copy the test, memory usage blows out:

on release build, jumps from <2GB to >7GB memory

on debug build, it jumps to dozens of GB, often causing OOM and kills the process.

Expected behaviour

I expect the memory usage to not blow up on basic operations.

Steps to reproduce

Already detailed.

Relevant log output

No logs after the block generated is tested for validity.

How did you obtain Bitcoin Core

Compiled from source

What version of Bitcoin Core are you using?

master@7e58c94112d0

Operating system and version

Ubuntu 24.04.2 LTS

Machine specifications

64GB of memory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions