Skip to content

[3.2] Memory leak in fiber_gc_checker_init #10701

@ligurio

Description

@ligurio

Bug description

  • OS: Linux
  • OS Version: Ubuntu Jammy
  • Architecture: amd64

Branch: https://github.com/ligurio/tarantool/tree/ligurio/gh-xxxx-bump-clang-19-2.11

Steps to reproduce

workflow debug_asan_clang

Actual behavior

 [038] #   =================================================================
[038] #   ==27551==ERROR: LeakSanitizer: detected memory leaks
[038] #   
[038] #   Direct leak of 2336 byte(s) in 4 object(s) allocated from:
[038] #       #0 0x56422901e15f in malloc (/__w/tarantool/tarantool/src/tarantool+0x110715f) (BuildId: 9588d3885733baa4d83b247ab0dcbc140361967b)
[038] #       #1 0x56422af09c8e in small_asan_alloc /__w/tarantool/tarantool/src/lib/small/small/util.c:94:24
[038] #       #2 0x56422af02348 in region_prepare_buf /__w/tarantool/tarantool/src/lib/small/small/region_asan.c:39:4
[038] #       #3 0x56422af02cf1 in region_aligned_alloc /__w/tarantool/tarantool/src/lib/small/small/region_asan.c:94:14
[038] #       #4 0x56422a156723 in fiber_gc_checker_init /__w/tarantool/tarantool/src/lib/core/fiber.c:1490:3
[038] #       #5 0x56422a15b95b in cord_create /__w/tarantool/tarantool/src/lib/core/fiber.c:1797:2
[038] #       #6 0x56422a161fca in cord_thread_func /__w/tarantool/tarantool/src/lib/core/fiber.c:1907:2
[038] #       #7 0x56422901bb16 in asan_thread_start(void*) asan_interceptors.cpp.o
[038] #   
[038] #   SUMMARY: AddressSanitizer: 2336 byte(s) leaked in 4 allocation(s).
[038] #   

Full CI log: https://github.com/tarantool/tarantool/actions/runs/11345499667/job/31611481780?pr=10693
logs_29637223090.zip

Expected behavior

no memory leak

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions