Skip to content

Assertion `victim->psn == 0' failed in memtx_tx_handle_conflict() #10715

@ligurio

Description

@ligurio

Bug description

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

Tarantool 3.3.0-entrypoint-161-gbf09135880
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 1800 --test_duration 60 --engine vinyl --verbose --seed 17326

Actual behavior

<snipped>

2024-10-18 06:57:18.913 [582307] main/1183/WRK #1068/..test.fuzz.lua.test_engine I> ERROR: opname "INDEX_UPDATE_OP", err "failed to read from file: Input/output error", args [["431abd63-9771-432f-b1c3-579f5d5de22c",463690488686,971084909917.45],{"unique":true,"parts":[{"fieldno":3,"sort_order":"asc","type":"uuid","exclude_null":false,"is_nullable":false},{"fieldno":2,"sort_order":"asc","type":"unsigned","exclude_null":false,"is_nullable":false},{"fieldno":1,"sort_order":"asc","type":"double","exclude_null":false,"is_nullable":false}],"options":{"page_size":2048,"run_count_per_level":3,"run_size_ratio":5,"bloom_fpr":0.5,"range_size":1073741824},"id":0,"space_id":512,"type":"TREE","name":"idx_1"},[["-",1,714444347063.12],["-",2,581701618565],["=",3,"8d1f420e-d91c-4111-9acb-877f955d048e"]]]
2024-10-18 06:57:18.913 [582307] main/1183/WRK #1068/..test.fuzz.lua.test_engine I> ERROR: opname "INDEX_CREATE_OP", err "Storage engine 'memtx' does not support cross-engine transactions", args []
2024-10-18 06:57:18.914 [582307] main/1112/WRK #997/..test.fuzz.lua.test_engine I> ERROR: opname "INDEX_GET_OP", err "failed to read from file: Input/output error", args [{"unique":true,"parts":[{"fieldno":3,"sort_order":"asc","type":"uuid","exclude_null":false,"is_nullable":false},{"fieldno":2,"sort_order":"asc","type":"unsigned","exclude_null":false,"is_nullable":false},{"fieldno":1,"sort_order":"asc","type":"double","exclude_null":false,"is_nullable":false}],"options":{"page_size":2048,"run_count_per_level":3,"run_size_ratio":5,"bloom_fpr":0.5,"range_size":1073741824},"id":0,"space_id":512,"type":"TREE","name":"idx_1"},["893fe638-e1d9-442e-8256-2fad2c59ca4d",848212856838,55347079295.925]]
2024-10-18 06:57:18.915 [582307] main/1881/WRK #1766/..test.fuzz.lua.test_engine I> ERROR: opname "UPSERT_OP", err "failed to read from file: Input/output error", args [[313939472593.49,981808514589,"a4b5c1fc-1165-4650-b1db-7b40ee8d9232",226319329138,"bvbarvrjnc",322030354274,false,"683264593497","2024-10-18T06:57:18Z",[1,2,3,4,5,6,7,8,9,10,11,12,13,14],{"4":4,"8":8,"1":1,"5":5,"9":9,"6":6,"3":3,"7":7,"2":2}],[["-",1,468861014578.57]]]
tarantool: src/box/memtx_tx.c:839: void memtx_tx_handle_conflict(struct txn *, struct txn *): Assertion `victim->psn == 0' failed.

log and tarantool binary gh-10715.zip

Expected behavior

no assertion violation

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 workingcrashfuzzingmvcc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions