Skip to content

sql-tap/misc1.test.lua: Indirect leak of 5 byte(s) in 1 object(s) allocated in SQL source code #11047

@ligurio

Description

@ligurio

Bug description

Memory leak

Steps to reproduce

ctest -R sql-tap/misc1.test.lua --verbose

Actual behavior

[002] [test-run server "app_server"] Last 15 lines of the log file /tmp/t/0-misc1.test.lua/002_sql-tap/misc1.test.lua.vinyl.tarantool.lo
g:                                                                                                                                      
[002] Indirect leak of 5 byte(s) in 1 object(s) allocated from:                                                                         
[002]     #0 0x55971c920e0a in strdup build-llvm/tools/clang/stage2-bins/runtimes/runtimes-bins/compiler-rt/lib/asan/asan_interceptors.c
pp:596:3                                                                                                                                
[002]     #1 0x55971c9ccf46 in index_def_new /home/sergeyb/sources/MRG/tarantool/src/box/index_def.c:107:21                             
[002]     #2 0x55971cdb27fb in index_fill_def /home/sergeyb/sources/MRG/tarantool/src/box/sql/build.c:2657:15                           
[002]     #3 0x55971cda1874 in sql_create_index /home/sergeyb/sources/MRG/tarantool/src/box/sql/build.c:2861:6                          
[002]     #4 0x55971cd9fc3e in sqlAddPrimaryKey /home/sergeyb/sources/MRG/tarantool/src/box/sql/build.c:648:2                           
[002]     #5 0x55971cd8409c in yy_reduce /home/sergeyb/sources/MRG/tarantool/src/box/sql/parse.y:351:3                                  
[002]     #6 0x55971cd81b2e in sqlParser /home/sergeyb/sources/MRG/tarantool/build/src/box/sql/parse.c:4523:7                           
[002]     #7 0x55971ce89fad in sqlRunParser /home/sergeyb/sources/MRG/tarantool/src/box/sql/tokenize.c:577:4
[002]     #8 0x55971ce3754c in sql_stmt_compile /home/sergeyb/sources/MRG/tarantool/src/box/sql/prepare.c:79:4
[002]     #9 0x55971cd5bbee in sql_prepare_and_execute /home/sergeyb/sources/MRG/tarantool/src/box/execute.c:275:6
[002]     #10 0x55971cf7d8d3 in lbox_execute /home/sergeyb/sources/MRG/tarantool/src/box/lua/execute.c:477:7
[002]     #11 0x55971d11d1e6 in lj_BC_FUNCC /home/sergeyb/sources/MRG/tarantool/build/third_party/luajit/src/lj_vm.S:811
[002] 
[002] SUMMARY: AddressSanitizer: 775 byte(s) leaked in 6 allocation(s).
[Main process] Got failed test; gently terminate all workers...
[002] Worker "002_sql-tap" got failed test; stopping the server...

Expected behavior

no 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