StarRocks / starrocks

The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario, StarRocks provides best-in-class performance for multi-dimensional analytics, real-time analytics, and ad-hoc queries. A Linux Foundation project.
https://starrocks.io
Apache License 2.0
8.91k stars 1.79k forks source link

be crash when pipeline turn on #2876

Closed colorfulu closed 2 years ago

colorfulu commented 2 years ago

Steps to reproduce the behavior (Required)

DROP DATABASE IF EXISTS g3;
CREATE DATABASE g3;
USE g3;
admin set frontend config ("enable_decimal_v3" = "true");
CREATE TABLE IF NOT EXISTS t0 (c_0_0 LARGEINT NOT NULL ,c_0_1 DECIMAL128(14, 8)  NULL ,c_0_2 BOOLEAN NULL ,c_0_3 SMALLINT NULL ,c_0_4 DOUBLE NOT NULL ,c_0_5 DECIMAL128(35, 7)  NULL ,c_0_6 DECIMAL32(8, 7)  NOT NULL ) DUPLICATE KEY (c_0_0,c_0_1,c_0_2) DISTRIBUTED BY HASH (c_0_0,c_0_1) properties("replication_num"="1") ;
CREATE TABLE t1 (c_1_0 VARCHAR(1) NOT NULL ,c_1_1 DECIMAL128(27, 12)  NULL ,c_1_2 DECIMAL128(20, 0)  NULL ,c_1_3 DECIMAL64(12, 11)  NOT NULL ,c_1_4 DECIMAL64(12, 4)  NOT NULL ,c_1_5 DECIMAL(4, 3)  NULL ,c_1_6 DECIMAL64(4, 3)  NOT NULL ,c_1_7 DECIMAL64(15, 7)  NOT NULL ,c_1_8 DECIMAL128(26, 21)  NOT NULL ,c_1_9 DECIMAL128(18, 1)  NOT NULL ) DUPLICATE KEY (c_1_0,c_1_1,c_1_2,c_1_3,c_1_4,c_1_5,c_1_6,c_1_7) DISTRIBUTED BY HASH (c_1_1,c_1_0,c_1_3,c_1_4,c_1_6,c_1_5) properties("replication_num"="1") ;
CREATE TABLE IF NOT EXISTS t2 (c_2_0 BOOLEAN NULL ,c_2_1 DATE NOT NULL ,c_2_2 CHAR(11) NULL ,c_2_3 DECIMAL(19, 8)  NOT NULL ,c_2_4 DECIMAL(11, 1)  NOT NULL ,c_2_5 DATE NOT NULL ,c_2_6 VARCHAR(1) NOT NULL ,c_2_7 FLOAT REPLACE_IF_NOT_NULL NOT NULL ,c_2_8 BOOLEAN REPLACE NOT NULL ,c_2_9 DECIMAL128(26, 4)  MAX NOT NULL ,c_2_10 PERCENTILE PERCENTILE_UNION NOT NULL ,c_2_11 VARCHAR(1) REPLACE_IF_NOT_NULL NULL ,c_2_12 PERCENTILE PERCENTILE_UNION NOT NULL ,c_2_13 HLL HLL_UNION NOT NULL ) AGGREGATE KEY (c_2_0,c_2_1,c_2_2,c_2_3,c_2_4,c_2_5,c_2_6) DISTRIBUTED BY HASH (c_2_0,c_2_1,c_2_2,c_2_4,c_2_5) properties("replication_num"="1") ;
INSERT INTO t0 VALUES (-72784271, NULL, false, 1, 0.03131172978547081, NULL, 7E-7), (-191750616, 0.00566687, false, 12, -7.2784271E7, 628031424988862349123.5861706, 8E-7);
INSERT INTO t1 VALUES ("", NULL, NULL, 7E-11, 2641.7779, 0.005, 0.001, 9.3904881, 6.7105E-17, 8725943498420476.9), ("", 858.234445597392, 38235813802432675293, 2E-11, 8040.1177, 0.000, 0.007, 2.4374355, 4.6734E-17, 6170692857846984.9);
INSERT INTO t1 VALUES ("", 780.304024254331, 57910152779582047913, 8E-11, 606.9480, 0.001, 0.001, 4.7709471, 5.4229E-17, 4575599671144972.0), ("", 364.402168779762, 80550638163052795406, 2E-11, 1110.9553, 0.007, 0.006, 5.6432590, 4.7856E-17, 7359518697355530.1);
DELETE FROM t1 WHERE c_1_1=171.890596899970 AND c_1_7=8.1627905 AND c_1_4=3768.2165 AND c_1_6=NULL AND c_1_2=93269868019485909257 AND c_1_3=7E-11;
INSERT INTO t1 VALUES ("", 543.274278426965, NULL, 1E-11, 6291.2908, 0.005, 0.003, 7.6797426, 1.8997E-17, 1820043405071883.4);
INSERT INTO t2 VALUES (true, "1970-01-01", "K4PavIt", 191.80909759, 862046382.0, "1970-01-01", "", -1.91750616E8, false, 321671969305121387.2746, percentile_hash("525526589"), "", percentile_hash("997570318"), hll_hash("7rFB")), (true, "1970-01-01", "Yz", 432.31493712, 556676912.4, "1970-01-01", "", 9.97570318E8, true, 480548515326121003.1540, percentile_hash("1873839293"), "", percentile_hash("1873839293"), hll_hash("FcM"));
INSERT INTO t0 VALUES (-1508531229, 0.00351809, true, 0, 0.03131172978547081, 701833776143320498763.7779481, 7E-7), (-1508531229, 0.00620613, false, 8, 0.7320359747993183, 406954480003999210047.1053504, 5E-7);
INSERT INTO t1 VALUES ("", 915.715773305844, 61301079456518257220, 1E-11, 2920.9236, 0.004, 0.007, 0.0656569, 6.7054E-17, 4341241928623293.8), ("", 873.184465101266, 73086502060516767141, 6E-11, 6160.6761, 0.001, 0.003, 9.9587967, 6.0217E-17, 3443061665986504.8);
INSERT INTO t0 VALUES (254086137, 0.00325815, NULL, 8, 0.03131172978547081, 289429488136622123373.1650386, 4E-7), (2014769567, NULL, true, 1, 0.2073547853202491, 89645346704590027520.0764895, 1E-7), (-263589401, NULL, false, 12, 0.279104558508924, 451288034815297830548.7081911, 2E-7);
INSERT INTO t2 VALUES (false, "1970-01-01", "", 72.42278605, 387903469.0, "1970-01-01", "", 0.8728656060764189, false, 386015511246967600.7518, percentile_hash("-263589401"), "", percentile_hash("562572331"), hll_hash("TOdPj"));
INSERT INTO t0 VALUES (-604946634, 0.00465656, true, 4, 0.29110034008635133, 398879877589608975552.1600750, 2E-7), (-27825667, NULL, false, 15, 0.09170405873682708, 670836141129689554252.2022992, 1E-7);
INSERT INTO t2 VALUES (true, "1970-01-01", NULL, 568.26071333, 486283777.7, "1970-01-01", "", 0.31102435662254524, false, 146882129339799066.9230, percentile_hash("-269818642"), "", percentile_hash("1030883646"), hll_hash("HrMowaBx"));
SELECT subt2.c_2_0, subt2.c_2_3 FROM  (SELECT t2.c_2_0, t2.c_2_1, t2.c_2_2, t2.c_2_3, t2.c_2_4, t2.c_2_5, t2.c_2_6, t2.c_2_7, t2.c_2_8, t2.c_2_9, t2.c_2_11 FROM t2) subt2 INNER JOIN t0 ON subt2.c_2_4 < t0.c_0_2 AND subt2.c_2_4 != ((subt2.c_2_1) IS NULL) WHERE (CASE  WHEN true THEN 747.46731107  WHEN false THEN subt2.c_2_3  WHEN CAST(t0.c_0_3 AS BOOLEAN )  THEN subt2.c_2_3 END) IN (368.18644805, 247.93824828, 78.16804039)  GROUP BY subt2.c_2_0, subt2.c_2_3 UNION SELECT subt2.c_2_0, subt2.c_2_3 FROM  (SELECT t2.c_2_0, t2.c_2_1, t2.c_2_2, t2.c_2_3, t2.c_2_4, t2.c_2_5, t2.c_2_6, t2.c_2_7, t2.c_2_8, t2.c_2_9, t2.c_2_11 FROM t2) subt2 INNER JOIN t0 ON subt2.c_2_4 < t0.c_0_2 AND subt2.c_2_4 != ((subt2.c_2_1) IS NULL) WHERE (NOT ((CASE  WHEN true THEN 747.46731107  WHEN false THEN subt2.c_2_3  WHEN CAST(t0.c_0_3 AS BOOLEAN )  THEN subt2.c_2_3 END) IN (368.18644805, 247.93824828, 78.16804039) )) GROUP BY subt2.c_2_0, subt2.c_2_3 UNION SELECT subt2.c_2_0, subt2.c_2_3 FROM  (SELECT t2.c_2_0, t2.c_2_1, t2.c_2_2, t2.c_2_3, t2.c_2_4, t2.c_2_5, t2.c_2_6, t2.c_2_7, t2.c_2_8, t2.c_2_9, t2.c_2_11 FROM t2) subt2 INNER JOIN t0 ON subt2.c_2_4 < t0.c_0_2 AND subt2.c_2_4 != ((subt2.c_2_1) IS NULL) WHERE (((CASE  WHEN true THEN 747.46731107  WHEN false THEN subt2.c_2_3  WHEN CAST(t0.c_0_3 AS BOOLEAN )  THEN subt2.c_2_3 END) IN (368.18644805, 247.93824828, 78.16804039) ) IS NULL) GROUP BY subt2.c_2_0, subt2.c_2_3;

Expected behavior (Required)

Empty set (0.21 sec)

Real behavior (Required)

0x60200178da51 is located 0 bytes to the right of 1-byte region [0x60200178da50,0x60200178da51)
allocated by thread T225 (pip_dispatcher) here:
    #0 0x3ced5e7 in operator new(unsigned long) ../../../../libsanitizer/asan/asan_new_delete.cpp:99
    #1 0x3d741ee in __gnu_cxx::new_allocator<unsigned char>::allocate(unsigned long, void const*) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/ext/new_allocator.h:115
    #2 0x3d6eb5b in std::allocator_traits<std::allocator<unsigned char> >::allocate(std::allocator<unsigned char>&, unsigned long) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/alloc_traits.h:460
    #3 0x3d68a4f in std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_M_allocate(unsigned long) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/stl_vector.h:346
    #4 0x3d79910 in std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_M_create_storage(unsigned long) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/stl_vector.h:361
    #5 0x3d74788 in std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_Vector_base(unsigned long, std::allocator<unsigned char> const&) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/stl_vector.h:305
    #6 0x3d6f3ce in std::vector<unsigned char, std::allocator<unsigned char> >::vector(unsigned long, unsigned char const&, std::allocator<unsigned char> const&) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/stl_vector.h:524
    #7 0x3e80a6f in starrocks::vectorized::FixedLengthColumnBase<unsigned char>::FixedLengthColumnBase(unsigned long, unsigned char) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/column/fixed_length_column_base.h:43
    #8 0x5ab3d9d in starrocks::vectorized::ColumnFactory<starrocks::vectorized::FixedLengthColumnBase<unsigned char>, starrocks::vectorized::FixedLengthColumn<unsigned char>, starrocks::vectorized::Column>::ColumnFactory<unsigned long const&, unsigned char const&>(unsigned long const&, unsigned char const&) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/column/column.h:352
    #9 0x5ab3aac in starrocks::vectorized::FixedLengthColumn<unsigned char>::FixedLengthColumn(unsigned long, unsigned char) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/column/fixed_length_column.h:17
    #10 0x63ffde3 in void __gnu_cxx::new_allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> >::construct<starrocks::vectorized::FixedLengthColumn<unsigned char>, unsigned long, int>(starrocks::vectorized::FixedLengthColumn<unsigned char>*, unsigned long&&, int&&) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/ext/new_allocator.h:150
    #11 0x63fe894 in void std::allocator_traits<std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> > >::construct<starrocks::vectorized::FixedLengthColumn<unsigned char>, unsigned long, int>(std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> >&, starrocks::vectorized::FixedLengthColumn<unsigned char>*, unsigned long&&, int&&) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/alloc_traits.h:512
    #12 0x63fd1aa in std::_Sp_counted_ptr_inplace<starrocks::vectorized::FixedLengthColumn<unsigned char>, std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> >, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long, int>(std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> >, unsigned long&&, int&&) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/shared_ptr_base.h:551
    #13 0x63fbbdb in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<starrocks::vectorized::FixedLengthColumn<unsigned char>, std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> >, unsigned long, int>(starrocks::vectorized::FixedLengthColumn<unsigned char>*&, std::_Sp_alloc_shared_tag<std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> > >, unsigned long&&, int&&) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/shared_ptr_base.h:682
    #14 0x63faaf3 in std::__shared_ptr<starrocks::vectorized::FixedLengthColumn<unsigned char>, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> >, unsigned long, int>(std::_Sp_alloc_shared_tag<std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> > >, unsigned long&&, int&&) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/shared_ptr_base.h:1371
    #15 0x63f8c87 in std::shared_ptr<starrocks::vectorized::FixedLengthColumn<unsigned char> >::shared_ptr<std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> >, unsigned long, int>(std::_Sp_alloc_shared_tag<std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> > >, unsigned long&&, int&&) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/shared_ptr.h:408
    #16 0x622edad in std::shared_ptr<starrocks::vectorized::FixedLengthColumn<unsigned char> > std::allocate_shared<starrocks::vectorized::FixedLengthColumn<unsigned char>, std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> >, unsigned long, int>(std::allocator<starrocks::vectorized::FixedLengthColumn<unsigned char> > const&, unsigned long&&, int&&) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/shared_ptr.h:860
    #17 0x61f61d4 in std::shared_ptr<starrocks::vectorized::FixedLengthColumn<unsigned char> > std::make_shared<starrocks::vectorized::FixedLengthColumn<unsigned char>, unsigned long, int>(unsigned long&&, int&&) /home/disk1/doris-deps/toolchain/installed/gcc-10.3.0/include/c++/10.3.0/bits/shared_ptr.h:876
    #18 0x61b137b in std::shared_ptr<starrocks::vectorized::FixedLengthColumn<unsigned char> > starrocks::vectorized::ColumnFactory<starrocks::vectorized::FixedLengthColumnBase<unsigned char>, starrocks::vectorized::FixedLengthColumn<unsigned char>, starrocks::vectorized::Column>::create<unsigned long, int>(unsigned long&&, int&&) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/column/column.h:361
#19 0x77ac9c4 in std::shared_ptr<starrocks::vectorized::Column> starrocks::vectorized::LogicPredicateBinaryFunction<starrocks::vectorized::UnpackConstColumnBinaryFunction<starrocks::vectorized::AndImpl>, starrocks::vectorized::UnpackNotAlignDataAndNullColumnBinaryFunction<starrocks::vectorized::LogicPredicateBaseBinaryFunction<starrocks::vectorized::AndNullImpl, starrocks::vectorized::AndImpl> > >::evaluate<(starrocks::PrimitiveType)2, (starrocks::PrimitiveType)2, (starrocks::PrimitiveType)2>(std::shared_ptr<starrocks::vectorized::Column> const&, std::shared_ptr<starrocks::vectorized::Column> const&) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exprs/vectorized/binary_function.h:492
    #20 0x77ab7ff in std::shared_ptr<starrocks::vectorized::Column> starrocks::vectorized::LogicPredicateBinaryFunction<starrocks::vectorized::UnpackConstColumnBinaryFunction<starrocks::vectorized::AndImpl>, starrocks::vectorized::UnpackNotAlignDataAndNullColumnBinaryFunction<starrocks::vectorized::LogicPredicateBaseBinaryFunction<starrocks::vectorized::AndNullImpl, starrocks::vectorized::AndImpl> > >::evaluate<(starrocks::PrimitiveType)2>(std::shared_ptr<starrocks::vectorized::Column> const&, std::shared_ptr<starrocks::vectorized::Column> const&) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exprs/vectorized/binary_function.h:520
    #21 0x77aab50 in starrocks::vectorized::VectorizedAndCompoundPredicate::evaluate(starrocks::ExprContext*, starrocks::vectorized::Chunk*) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exprs/vectorized/compound_predicate.cpp:45
    #22 0x7681c33 in starrocks::ExprContext::evaluate(starrocks::Expr*, starrocks::vectorized::Chunk*) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exprs/expr_context.cpp:194
    #23 0x76819e4 in starrocks::ExprContext::evaluate(starrocks::vectorized::Chunk*) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exprs/expr_context.cpp:184
    #24 0x5b29e74 in eager_prune_eval_conjuncts /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exec/exec_node.cpp:534
    #25 0x5b2a4ac in starrocks::ExecNode::eval_conjuncts(std::vector<starrocks::ExprContext*, std::allocator<starrocks::ExprContext*> > const&, starrocks::vectorized::Chunk*, std::shared_ptr<std::vector<unsigned char, std::allocator<unsigned char> > >*) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exec/exec_node.cpp:583
    #26 0x6773fbf in starrocks::pipeline::Operator::eval_conjuncts_and_in_filters(std::vector<starrocks::ExprContext*, std::allocator<starrocks::ExprContext*> > const&, starrocks::vectorized::Chunk*) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exec/pipeline/operator.cpp:100
    #27 0x67c9532 in starrocks::pipeline::CrossJoinLeftOperator::pull_chunk(starrocks::RuntimeState*) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exec/pipeline/crossjoin/cross_join_left_operator.cpp:298
    #28 0x6805ba8 in starrocks::pipeline::PipelineDriver::process(starrocks::RuntimeState*) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exec/pipeline/pipeline_driver.cpp:135
    #29 0x67e9a75 in starrocks::pipeline::GlobalDriverDispatcher::run() /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exec/pipeline/pipeline_driver_dispatcher.cpp:89

Thread T225 (pip_dispatcher) created by T0 here:
    #0 0x3c972e2 in __interceptor_pthread_create ../../../../libsanitizer/asan/asan_interceptors.cpp:214
    #1 0x52311d0 in starrocks::Thread::start_thread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void ()> const&, unsigned long, scoped_refptr<starrocks::Thread>*) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/util/thread.cpp:267
    #2 0x524f204 in starrocks::Status starrocks::Thread::create<void (starrocks::ThreadPool::*)(), starrocks::ThreadPool*>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void (starrocks::ThreadPool::* const&)(), starrocks::ThreadPool* const&, scoped_refptr<starrocks::Thread>*) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/util/thread.h:55
    #3 0x52488dd in starrocks::ThreadPool::create_thread() /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/util/threadpool.cpp:564
    #4 0x524548a in starrocks::ThreadPool::do_submit(std::shared_ptr<starrocks::Runnable>, starrocks::ThreadPoolToken*) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/util/threadpool.cpp:414
    #5 0x524429a in starrocks::ThreadPool::submit(std::shared_ptr<starrocks::Runnable>) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/util/threadpool.cpp:331
#6 0x5244433 in starrocks::ThreadPool::submit_func(std::function<void ()>) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/util/threadpool.cpp:335
    #7 0x67e8b71 in starrocks::pipeline::GlobalDriverDispatcher::initialize(int) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exec/pipeline/pipeline_driver_dispatcher.cpp:24
    #8 0x4d8a290 in starrocks::ExecEnv::_init(std::vector<starrocks::StorePath, std::allocator<starrocks::StorePath> > const&) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/runtime/exec_env.cpp:157
    #9 0x4d890a9 in starrocks::ExecEnv::init(starrocks::ExecEnv*, std::vector<starrocks::StorePath, std::allocator<starrocks::StorePath> > const&) /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/runtime/exec_env.cpp:118
    #10 0x3d2c933 in main /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/service/starrocks_main.cpp:207
    #11 0x7f89be521504 in __libc_start_main (/lib64/libc.so.6+0x22504)

SUMMARY: AddressSanitizer: heap-buffer-overflow /home/disk1/jenkins/workspace/pipeline_sqlancer_master_asan/cluster-management/resource/starrocks/be/src/exprs/vectorized/binary_function.h:362 in std::shared_ptr<starrocks::vectorized::Column> starrocks::vectorized::LogicPredicateBaseBinaryFunction<starrocks::vectorized::AndNullImpl, starrocks::vectorized::AndImpl>::vector_vector<(starrocks::PrimitiveType)2, (starrocks::PrimitiveType)2, (starrocks::PrimitiveType)2>(std::shared_ptr<starrocks::vectorized::Column> const&, std::shared_ptr<starrocks::vectorized::FixedLengthColumn<unsigned char> > const&, std::shared_ptr<starrocks::vectorized::Column> const&, std::shared_ptr<starrocks::vectorized::FixedLengthColumn<unsigned char> > const&)
Shadow bytes around the buggy address:
  0x0c04802e9af0: fa fa fa fa fa fa fd fd fa fa fa fa fa fa fa fa
  0x0c04802e9b00: fa fa fd fd fa fa fd fa fa fa fd fa fa fa fd fa
  0x0c04802e9b10: fa fa fd fd fa fa fd fd fa fa fa fa fa fa fd fa
  0x0c04802e9b20: fa fa fd fa fa fa fd fa fa fa fd fd fa fa fd fd
  0x0c04802e9b30: fa fa fd fa fa fa fa fa fa fa fa fa fa fa fd fd
=>0x0c04802e9b40: fa fa fd fa fa fa fd fd fa fa[01]fa fa fa fd fa
  0x0c04802e9b50: fa fa fd fa fa fa fd fa fa fa fd fd fa fa fa fa
  0x0c04802e9b60: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c04802e9b70: fa fa fa fa fa fa fd fd fa fa fa fa fa fa fd fd
  0x0c04802e9b80: fa fa fd fa fa fa fd fd fa fa fa fa fa fa fa fa
  0x0c04802e9b90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fd fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==29521==ABORTING

StarRocks version (Required)

liuyehcf commented 2 years ago

Can't reproduce in latest branch-2.1(544506d2)