Skip to content

Memory leak when reading mat files v7 #182

@ymtoo

Description

@ymtoo

MWE:

for _ ∈  1:1000000
    matread("test/v7/array.mat")
end

Memory usage is growing until OOM. It works fine when reading mat files v6 and v7.3.

Julia and package version:

julia> versioninfo()
Julia Version 1.8.4
Commit 00177ebc4fc (2022-12-23 21:32 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores

(jl_Qk9Uql) pkg> st
Status `/tmp/jl_Qk9Uql/Project.toml`
  [23992714] MAT v0.10.3

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