Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

CH-benCHmark: query 1 fails #1583

Open
mbutrovich opened this issue May 19, 2021 · 0 comments
Open

CH-benCHmark: query 1 fails #1583

mbutrovich opened this issue May 19, 2021 · 0 comments
Labels
bug Something isn't working (correctness). Mark issues with this.

Comments

@mbutrovich
Copy link
Contributor

Running CH-benCHmark via oltpbench. Using the attached schemas for TPC-C and chbenchmark tables, and attached config.
chbenchmark.zip

ant execute -Dconfig=./config/noisepage_tpcc_config.xml \
-Dbenchmark=tpcc -Dexecute=false -Dload=true -Dcreate=true

ant execute -Dconfig=./config/noisepage_ch_config.xml \
-Dbenchmark=chbenchmark -Dexecute= true -Dload=true -Dcreate=true

Yields an assertion failure when doing a sequential scan:

noisepage: ../src/include/execution/sql/tuple_id_list.h:372: std::size_t noisepage::execution::sql::TupleIdList::operator[](const std::size_t) const: Assertion `(i < GetTupleCount()) && ("Out-of-bounds list access")' failed.
Signal: SIGABRT (Aborted)

Relevant part of strack trace:

(gdb) backtrace
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff786d859 in __GI_abort () at abort.c:79
#2  0x00007ffff786d729 in __assert_fail_base (fmt=0x7ffff7a03588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x14d5060 <str> "(i < GetTupleCount()) && (\"Out-of-bounds list access\")", file=0x14d50c0 <str> "../src/include/execution/sql/tuple_id_list.h", line=372, function=<optimized out>) at assert.c:92
#3  0x00007ffff787ef36 in __GI___assert_fail (assertion=0x14d5060 <str> "(i < GetTupleCount()) && (\"Out-of-bounds list access\")", file=0x14d50c0 <str> "../src/include/execution/sql/tuple_id_list.h", line=372, function=0x14d5120 <__PRETTY_FUNCTION__._ZNK9noisepage9execution3sql11TupleIdListixEm> "std::size_t noisepage::execution::sql::TupleIdList::operator[](const std::size_t) const") at assert.c:101
#4  0x0000000002613573 in noisepage::execution::sql::TupleIdList::operator[] (this=0x7fffe45d3090, i=382) at ../src/include/execution/sql/tuple_id_list.h:372
#5  0x0000000002612fce in noisepage::execution::sql::Vector::SetNull (this=0x60f0000379f0, index=382, null=true) at ../src/include/execution/sql/vector.h:265
#6  0x000000000260050f in noisepage::execution::sql::VectorProjection::RowView::SetNull (this=0x7fffe4240ab0, projection_list_index=0) at ../src/include/execution/sql/vector_projection.h:107
#7  0x00000000026003c8 in noisepage::storage::StorageUtil::CopyWithNullCheck<noisepage::execution::sql::VectorProjection::RowView> (from=0x0, to=0x7fffe4240ab0, size=8, projection_list_index=0) at /tmp/tmp.DzLsEwC28Y/src/storage/storage_util.cpp:19
#8  0x0000000002601198 in noisepage::storage::StorageUtil::CopyAttrIntoProjection<noisepage::execution::sql::VectorProjection::RowView> (accessor=..., from=..., to=0x7fffe4240ab0, projection_list_offset=0) at /tmp/tmp.DzLsEwC28Y/src/storage/storage_util.cpp:44
#9  0x00000000028a69dc in noisepage::storage::DataTable::SelectIntoBuffer<noisepage::execution::sql::VectorProjection::RowView> (this=0x61100004be00, txn=..., slot=..., out_buffer=0x7fffe4240ab0) at /tmp/tmp.DzLsEwC28Y/src/storage/data_table.cpp:242
#10 0x00000000028947d3 in noisepage::storage::DataTable::Scan (this=0x61100004be00, txn=..., start_pos=0x60400249d290, out_buffer=0x7fffe45d3058) at /tmp/tmp.DzLsEwC28Y/src/storage/data_table.cpp:69
#11 0x0000000003c244b1 in noisepage::storage::SqlTable::Scan (this=0x60c000017140, txn=..., start_pos=0x60400249d290, out_buffer=0x7fffe45d3058) at ../src/include/storage/sql_table.h:175
#12 0x0000000003c09a3e in noisepage::execution::sql::TableVectorIterator::Advance (this=0x7fffe45d3020) at /tmp/tmp.DzLsEwC28Y/src/execution/sql/table_vector_iterator.cpp:80
#13 0x000000000353f439 in OpTableVectorIteratorNext (has_more=0x7fffe51d2960, iter=0x7fffe45d3020) at ../src/include/execution/vm/bytecode_handlers.h:306
#14 0x00000000034f4862 in noisepage::execution::vm::VM::Interpret (this=0x7fffe40c5420, ip=0x621000110e1b "\242", frame=0x7fffe40c5440) at /tmp/tmp.DzLsEwC28Y/src/execution/vm/vm.cpp:657
#15 0x00000000034e6421 in noisepage::execution::vm::VM::InvokeFunction (module=0x60400249cc90, func_id=8, args=0x7fffe51d2c30 "") at /tmp/tmp.DzLsEwC28Y/src/execution/vm/vm.cpp:112
@mbutrovich mbutrovich added the bug Something isn't working (correctness). Mark issues with this. label May 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working (correctness). Mark issues with this.
Projects
None yet
Development

No branches or pull requests

1 participant