Skip to content

space_cache_replace(struct space *, struct space *): Assertion `old_space_by_id == old_space' failed. #10802

@ligurio

Description

@ligurio

Bug description

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

Tarantool 3.3.0-entrypoint-178-g40fa44c2b1
Target: Linux-x86_64-Debug
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BACKTRACE=TRUE
Compiler: Clang-18.1.3
C_FLAGS: -fexceptions -funwind-tables -fasynchronous-unwind-tables -fno-common -msse2 -fsanitize=address -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -fmacro-prefix-map=/home/ubuntu/tarantool=. -std=c11 -Wall -Wextra -Wno-gnu-alignof-expression -Wno-cast-function-type -Werror -g -ggdb -O0
CXX_FLAGS: -fexceptions -funwind-tables -fasynchronous-unwind-tables -fno-common -msse2 -fsanitize=address -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -fmacro-prefix-map=/home/ubuntu/tarantool=. -std=c++11 -Wall -Wextra -Wno-invalid-offsetof -Wno-gnu-alignof-expression -Wno-cast-function-type -Werror -g -ggdb -O0

Steps to reproduce

./build/src/tarantool ./test/fuzz/lua/test_engine.lua --workers 1000 --test_duration $((30*60)) --engine memtx --verbose --seed 5350

Actual behavior

<snipped>

2024-11-08 15:18:01.779 [934600] main/955/WRK #840/..test.fuzz.lua.test_engine test_engine.lua:1150 I> UPSERT_OP [[-13820,235,"ca753469-e08d-47cb-8732-217d655aeb70",323826259122,809282900165.44,422794166272,-52,48198,406144774807.53,60660054683,18231614576751857664,3146336349059022848,3882966084,819588747885,false,-1997307229,"pfjcsqmttg","502229879245","2024-11-08T15:18:01Z",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],{"4":4,"8":8,"1":1,"5":5,"2":2,"6":6,"7":7,"3":3}],[["+",2,89],["+",6,336093085696],["=",3,"fbfa71aa-7da7-4b5c-b174-2913397b7f78"],["+",5,928350598796.69],["-",7,86]]]
2024-11-08 15:18:01.779 [934600] main/955/WRK #840/..test.fuzz.lua.test_engine test_engine.lua:1150 I> ARROW_STREAM_OP [[9,14,12,12],["8594c4ce-0719-4375-85cf-dc44d729d26d"]]
2024-11-08 15:18:01.779 [934600] main/955/WRK #840/..test.fuzz.lua.test_engine test_engine.lua:1150 I> FORMAT_OP [[{"name":"field_1","type":"int16"},{"name":"field_2","type":"uint8"},{"name":"field_3","type":"uuid"},{"name":"field_4","type":"number"},{"name":"field_5","type":"float64"},{"name":"field_6","type":"float32"},{"name":"field_7","type":"int8"},{"name":"field_8","type":"uint16"},{"name":"field_9","type":"double"},{"name":"field_10","type":"unsigned"},{"name":"field_11","type":"uint64"},{"name":"field_12","type":"int64"},{"name":"field_13","type":"uint32"},{"name":"field_14","type":"integer"},{"name":"field_15","type":"boolean"},{"name":"field_16","type":"int32"},{"name":"field_17","type":"string"},{"name":"field_18","type":"decimal"},{"name":"field_19","type":"datetime"},{"name":"field_20","type":"array"},{"name":"field_21","type":"map"}]]
2024-11-08 15:18:01.780 [934600] main/955/WRK #840/..test.fuzz.lua.test_engine test_engine.lua:1150 I> TX_COMMIT []
2024-11-08 15:18:01.780 [934600] main/954/WRK #839 wal.c:1327 E> ER_WAL_IO: Failed to write to disk
tarantool: src/box/space_cache.c:149: void space_cache_replace(struct space *, struct space *): Assertion `old_space_by_id == old_space' failed.

tarantool binary + log: https://drive.google.com/file/d/1IaOVC_Bct-pTICEAg_DADYbhGcXABVsl/view?usp=sharing

Expected behavior

no assertion is triggered

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfuzzing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions