Skip to content

box/tx_man.test.lua: SIGSEGV in ASAN during shadow memory unmap at exit #324

@ylobankov

Description

@ylobankov

Tarantool

Tarantool 3.0.0-alpha1-110-g3774e85d2
Target: Linux-x86_64-RelWithDebInfo
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BACKTRACE=TRUE
Compiler: Clang-16.0.6
C_FLAGS: -fexceptions -funwind-tables -fasynchronous-unwind-tables -fno-common -msse2 -fsanitize=fuzzer-no-link -fsanitize=address -fsanitize-blacklist=/tarantool/asan/asan.supp  -fmacro-prefix-map=/tarantool=. -std=c11 -Wall -Wextra -fsanitize=alignment,bool,bounds,builtin,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,return,shift,unreachable,vla-bound -fno-sanitize-recover=alignment,bool,bounds,builtin,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,return,shift,unreachable,vla-bound -Wno-gnu-alignof-expression -Wno-cast-function-type -Werror
CXX_FLAGS: -fexceptions -funwind-tables -fasynchronous-unwind-tables -fno-common -msse2 -fsanitize=fuzzer-no-link -fsanitize=address -fsanitize-blacklist=/tarantool/asan/asan.supp  -fmacro-prefix-map=/tarantool=. -std=c++11 -Wall -Wextra -fsanitize=alignment,bool,bounds,builtin,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,return,shift,unreachable,vla-bound -fno-sanitize-recover=alignment,bool,bounds,builtin,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,return,shift,unreachable,vla-bound -Wno-invalid-offsetof -Wno-gnu-alignof-expression -Wno-cast-function-type -Werror

Steps to reproduce

docker run -it --rm tarantool/testing:ubuntu-jammy-clang16
git clone https://github.com/tarantool/tarantool.git
cd tarantool && git submodule update --recursive --init --jobs $(nproc)
CC=clang-16 CXX=clang++-16 TEST_RUN_EXTRA_PARAMS=box/tx_man.test.lua make -f .test.mk test-release-asan

Expected result: Test passed.

Actual result:

======================================================================================
WORKR TEST                                            PARAMS          RESULT
---------------------------------------------------------------------------------
[001] box/tx_man.test.lua
[001]
[001] [Instance "tx_man" killed by signal: 11 (SIGSEGV)]
[001]
[001] [test-run server "tx_man"] Last 15 lines of the log file /tmp/t/001_box/tx_man.log:
[001]     #2 0x563bc4366465  (/tarantool/src/tarantool+0x13ab465) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #3 0x563bc435d0b0  (/tarantool/src/tarantool+0x13a20b0) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #4 0x563bc435ad45  (/tarantool/src/tarantool+0x139fd45) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #5 0x563bc435a01b  (/tarantool/src/tarantool+0x139f01b) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #6 0x563bc42e0575  (/tarantool/src/tarantool+0x1325575) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #7 0x563bc433862c  (/tarantool/src/tarantool+0x137d62c) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #8 0x563bc42f1239  (/tarantool/src/tarantool+0x1336239) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #9 0x563bc42e2e33  (/tarantool/src/tarantool+0x1327e33) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #10 0x563bc4312e42  (/tarantool/src/tarantool+0x1357e42) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #11 0x563bc43130a7  (/tarantool/src/tarantool+0x13580a7) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #12 0x563bc3f4d3f4  (/tarantool/src/tarantool+0xf923f4) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #13 0x563bc3f9f9e2  (/tarantool/src/tarantool+0xfe49e2) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]     #14 0x563bc40e18a2  (/tarantool/src/tarantool+0x11268a2) (BuildId: 8863958fcd235118833ef3cf4bb6990e4337eafb)
[001]
[001] SUMMARY: AddressSanitizer: 193262 byte(s) leaked in 546 allocation(s).
[001] [ fail ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions