Skip to content

Crash on series of interactive transactions in memtx #7756

@CuriousGeorgiy

Description

@CuriousGeorgiy

Steps to reproduce

os.execute('rm -rf *.snap *.xlog *.vylog 512')

local netbox = require('net.box')

box.cfg{memtx_use_mvcc_engine = true, listen = 3301}

box.schema.space.create('s')
box.space.s:create_index('pk')
box.schema.user.grant('guest', 'super')

box.internal.memtx_tx_gc(3)

local conn = netbox.connect(3301)

local stream1 = conn:new_stream()
local stream2 = conn:new_stream()
local stream3 = conn:new_stream()

stream1:begin()
stream2:begin()
stream3:begin()


stream1.space.s:insert{2}
stream1:rollback()

stream2.space.s:insert{0}
stream3.space.s:select({1}, {iterator = "LE"})
box.space.s:insert{1}

os.exit()

Actual behavior

Segmentation fault

Expected behavior

Script successfully exits.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions