Skip to content

Indirect leak of 4 byte(s) in 1 object(s) allocated in vinyl source code #11044

@ligurio

Description

@ligurio

Bug description

memory leak

  • OS: Linux
  • Architecture: amd64

Steps to reproduce

Execute debug_asan_clang on a branch with enabled "long" tests, see patch in #11043

./test/test-run.py --builddir $(pwd)/build prune.test.lua

Actual behavior

<snipped>

[007] Test "replication/prune.test.lua", conf: "vinyl"
[007] 	from "fragile" list failed, rerunning ...

<snipped>


 [035] 
[035] 
[035] [Instance "vinyl" killed by signal: 11 (SIGSEGV)]
[035] 
[035] [test-run server "vinyl"] Last 15 lines of the log file /tmp/t/035_vinyl/vinyl.log:
[035] Indirect leak of 4 byte(s) in 1 object(s) allocated from:
[035]     #0 0x562a6a9a0c89 in calloc (/__w/tarantool/tarantool/src/tarantool+0xb5dc89) (BuildId: befb9fd702f14a6d9fb49a6536fe0a4d26b29540)
[035]     #1 0x562a6acab2bc in vy_page_new /__w/tarantool/tarantool/src/box/vy_run.c:718:20
[035]     #2 0x562a6acb9f6b in vy_slice_stream_read_page /__w/tarantool/tarantool/src/box/vy_run.c:2613:17
[035]     #3 0x562a6acb7c4b in vy_slice_stream_search /__w/tarantool/tarantool/src/box/vy_run.c:2644:6
[035]     #4 0x562a6ad5a9f3 in vy_write_iterator_add_src /__w/tarantool/tarantool/src/box/vy_write_iterator.c:303:12
[035]     #5 0x562a6ad58786 in vy_write_iterator_start /__w/tarantool/tarantool/src/box/vy_write_iterator.c:409:7
[035]     #6 0x562a6ae1b585 in vy_task_write_run /__w/tarantool/tarantool/src/box/vy_scheduler.c:1123:6
[035]     #7 0x562a6ae21c83 in vy_task_compaction_execute /__w/tarantool/tarantool/src/box/vy_scheduler.c:1507:9
[035]     #8 0x562a6ae28874 in vy_task_f /__w/tarantool/tarantool/src/box/vy_scheduler.c:1826:6
[035]     #9 0x562a6a9e7eb9 in fiber_cxx_invoke(int (*)(__va_list_tag*), __va_list_tag*) /__w/tarantool/tarantool/src/lib/core/fiber.h:1324:10
[035]     #10 0x562a6b58248c in fiber_loop /__w/tarantool/tarantool/src/lib/core/fiber.c:1167:18
[035]     #11 0x562a6c143e09 in coro_init /__w/tarantool/tarantool/third_party/coro/coro.c:108:3
[035] 
[035] SUMMARY: AddressSanitizer: 1059 byte(s) leaked in 3 allocation(s).

debug_asan_clang: https://github.com/tarantool/tarantool/actions/runs/12948188871/job/36116313731?pr=11043
Full log: logs_33472080951.zip

Expected behavior

no leak

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions