Skip to content

readall(echo hello) leaks memory on master and 0.3 #11814

@StefanKarpinski

Description

@StefanKarpinski

The following program leaks memory on 0.3 and 0.4 to varying degrees:

while true
    readall(`echo hello`)
    gc() # <= with or without this
end

On 0.3 without the gc() call is the worst – memory usage grows to 1.2 GB on my machine in a couple of minutes. If you put the gc() call in then it's much better – indicating that the memory pressure isn't being felt as it should – but there's still a gradual leak. On 0.4 things are better – and memory pressure is felt as it should be even without gc() – but there is still a slow leak.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GCGarbage collectorbugIndicates an unexpected problem or unintended behaviorioInvolving the I/O subsystem: libuv, read, write, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions