Skip to content

Uninitialized next_tid in TPC-C #33

@pramalhe

Description

@pramalhe

uint32_t next_tid;

next_tid is not initialized. this causes ASAN to barf because we try to write in a bad address when initializing tpcc_buffer[tid] in tpcc_wl::threadInitWarehouse()

AddressSanitizer:DEADLYSIGNAL

==120532==ERROR: AddressSanitizer: SEGV on unknown address 0x601df5f5f6e0 (pc 0x563e33d755b0 bp 0x7ffcae91f320 sp 0x7ffcae91f2e0 T0)
==120532==The signal is caused by a WRITE memory access.
#0 0x563e33d755b0 in tpcc_wl::threadInitWarehouse(void*) benchmarks/tpcc_wl.cpp:392
#1 0x563e33d71240 in tpcc_wl::init_table() benchmarks/tpcc_wl.cpp:72
#2 0x563e33d6f689 in tpcc_wl::init() benchmarks/tpcc_wl.cpp:27
#3 0x563e33db19fa in main system/main.cpp:44
#4 0x7f99185f40b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#5 0x563e33d68f2d in _start (/workspace/concurrency/code/2plsf/DBx1000/rundb+0x17f2d)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions