Skip to content

Prepare to drop LSAN suppressions, part 1#10500

Merged
locker merged 4 commits intotarantool:masterfrom
nshy:drop-lsan-suppressions-p1
Sep 2, 2024
Merged

Prepare to drop LSAN suppressions, part 1#10500
locker merged 4 commits intotarantool:masterfrom
nshy:drop-lsan-suppressions-p1

Conversation

@nshy
Copy link
Contributor

@nshy nshy commented Aug 30, 2024

Part of #10211

Factored out from all-in-one PR #10207

The memleak reported by LSAN is when we use '--name' or '--config'
parameters more then once.

While we at it let's also fix other possible memory leak reports related
to `instance`. Currently we do not free `instance.name` and
`instance.config` on all return paths from main.  Let's just add
instance to the root set so that we don't need to free it's fields to
pass LSAN.

Part-of tarantool#10211

NO_TEST=covered by existing tests
NO_CHANGELOG=minor
NO_DOC=bugfix
@coveralls
Copy link

coveralls commented Aug 30, 2024

Coverage Status

coverage: 87.216% (-0.02%) from 87.238%
when pulling 94f0b9b on nshy:drop-lsan-suppressions-p1
into 9eb3974
on tarantool:master
.

@nshy nshy requested a review from locker August 30, 2024 15:01
@locker locker assigned nshy and unassigned locker Aug 30, 2024
nshy added 2 commits September 2, 2024 10:56
Space sequence_path memory of space is managed on DDL to space_sequence
system space. It all good but on Tarantool shutdown we miss freeing this
path which is reported by LSAN.

Part-of tarantool#10211

NO_TEST=internal
NO_CHANGELOG=internal
NO_DOC=internal
Part-of tarantool#10211

NO_CHANGELOG=internal
NO_DOC=internal
@nshy nshy force-pushed the drop-lsan-suppressions-p1 branch from 0197723 to d81fea2 Compare September 2, 2024 08:25
@nshy nshy assigned locker and unassigned nshy Sep 2, 2024
@locker locker assigned nshy and unassigned locker Sep 2, 2024
On panic or crash we do not call `lua_close` which causes a lot of PF
memory leaks.

Part-of tarantool#10211

NO_TEST=internal
NO_CHANGELOG=internal
NO_DOC=internal
@nshy nshy force-pushed the drop-lsan-suppressions-p1 branch from d81fea2 to 94f0b9b Compare September 2, 2024 11:16
@nshy nshy added the full-ci Enables all tests for a pull request label Sep 2, 2024
@nshy nshy assigned locker and unassigned nshy Sep 2, 2024
@locker locker merged commit 9519fe9 into tarantool:master Sep 2, 2024
@nshy nshy changed the title Prepare to drop LSAN suppressions Prepare to drop LSAN suppressions, part 1 Sep 2, 2024
@nshy nshy deleted the drop-lsan-suppressions-p1 branch September 2, 2024 12:57
@nshy nshy mentioned this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Enables all tests for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants