Skip to content

Memory leak on xlog open failure #10479

@nshy

Description

@nshy

Found by ASAN.

Reproducer:

local xlog = require('xlog')
while true do
    -- echo 1 > bad.xlog
    pcall(xlog.pairs, 'bad.xlog')
end

It takes less then a minute for the script to be killed by OOM killer:

авг 27 10:47:59 mynote kernel: Out of memory: Killed process 104668 (tarantool) total-vm:10361296kB, anon-rss:10295976kB, file-rss:96kB, shmem-rss:0kB, UID:1000 pgtables:20324kB oom_score_adj:0

Introduced in 1.7.2-148-g7e44ebd91c.

Metadata

Metadata

Assignees

Labels

2.11Target is 2.11 and all newer release/master branches3.2Target is 3.2 and all newer release/master branchesbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions