Skip to content

[YSQL][SQLsmith] Segmentation fault in yb::rpc::Proxy::DoAsyncRequest() during ANALYZE #11405

@def-

Description

@def-

Jira Link: DB-954

Description

Found with SQLsmith, code state is 596eecc, Release build. There appears to be a huge loop here in SearchSysCache1 (~40k frames), which is probably why we're running out of stack space:

Core was generated by `postgres: yugabyte yugabyte 127.0.0.1(50098) ANALYZE                          '.
Program terminated with signal 11, Segmentation fault.
#0  0x00007fac68d41635 in yb::rpc::Proxy::DoAsyncRequest(yb::rpc::RemoteMethod const*, std::__1::shared_ptr<yb::rpc::OutboundMethodMetrics const>, yb::rpc::AnyMessageConstPtr, yb::rpc::AnyMessagePtr, yb::rpc::RpcController*, std::__1::function<void ()>, bool) (this=0x32a6280, method=0x7fac69fe7710 <yb::tserver::TabletServerServiceProxy::ReadAsync(yb::tserver::ReadRequestPB const&, yb::tserver::ReadResponsePB*, yb::rpc::RpcController*, std::__1::function<void ()>) const::method>, method_metrics=..., req=..., resp=..., controller=0x3689568, callback=..., force_run_callback_on_reactor=<optimized out>) at ../../src/yb/rpc/proxy.cc:164
164	  CHECK(controller->call_.get() == nullptr) << "Controller should be reset";
#0  0x00007fac68d41635 in yb::rpc::Proxy::DoAsyncRequest(yb::rpc::RemoteMethod const*, std::__1::shared_ptr<yb::rpc::OutboundMethodMetrics const>, yb::rpc::AnyMessageConstPtr, yb::rpc::AnyMessagePtr, yb::rpc::RpcController*, std::__1::function<void ()>, bool) (this=0x32a6280, method=0x7fac69fe7710 <yb::tserver::TabletServerServiceProxy::ReadAsync(yb::tserver::ReadRequestPB const&, yb::tserver::ReadResponsePB*, yb::rpc::RpcController*, std::__1::function<void ()>) const::method>, method_metrics=..., req=..., resp=..., controller=0x3689568, callback=..., force_run_callback_on_reactor=<optimized out>) at ../../src/yb/rpc/proxy.cc:164
#1  0x00007fac68d4154d in yb::rpc::Proxy::AsyncRequest(yb::rpc::RemoteMethod const*, std::__1::shared_ptr<yb::rpc::OutboundMethodMetrics const>, google::protobuf::Message const&, google::protobuf::Message*, yb::rpc::RpcController*, std::__1::function<void ()>) (this=0x32a6280, method=0x7fac69fe7710 <yb::tserver::TabletServerServiceProxy::ReadAsync(yb::tserver::ReadRequestPB const&, yb::tserver::ReadResponsePB*, yb::rpc::RpcController*, std::__1::function<void ()>) const::method>, method_metrics=..., req=..., resp=0x3689748, controller=<optimized out>, callback=...) at ../../src/yb/rpc/proxy.cc:124
#2  0x00007fac69fd8020 in yb::tserver::TabletServerServiceProxy::ReadAsync(yb::tserver::ReadRequestPB const&, yb::tserver::ReadResponsePB*, yb::rpc::RpcController*, std::__1::function<void ()>) const (this=<optimized out>, req=..., resp=0x3689748, controller=0x3689568, callback=...) at src/yb/tserver/tserver_service.proxy.cc:418
#3  0x00007fac6a549ece in yb::client::internal::TabletInvoker::ReadAsync(yb::tserver::ReadRequestPB const&, yb::tserver::ReadResponsePB*, yb::rpc::RpcController*, std::__1::function<void ()>&&) (this=<optimized out>, req=..., resp=0x3689748, controller=0x3689568, cb=<optimized out>) at ../../src/yb/client/tablet_rpc.cc:551
#4  0x00007fac6a489aac in yb::client::internal::ReadRpc::CallRemoteMethod() (this=<optimized out>) at ../../src/yb/client/async_rpc.cc:699
#5  0x00007fac6a488d29 in SendRpcToTserver (this=0x3689518, attempt_num=<optimized out>) at ../../src/yb/client/async_rpc.cc:323
#6  yb::client::internal::AsyncRpcBase<yb::tserver::ReadRequestPB, yb::tserver::ReadResponsePB>::SendRpcToTserver(int) (this=0x3689518, attempt_num=<optimized out>) at ../../src/yb/client/async_rpc.cc:414
#7  0x00007fac6a545eb6 in yb::client::internal::TabletInvoker::Execute(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) (this=0x36895d0, tablet_id=..., leader_only=false) at ../../src/yb/client/tablet_rpc.cc:263
#8  0x00007fac6a481b21 in yb::client::internal::AsyncRpc::SendRpc() (this=0x3689518) at ../../src/yb/client/async_rpc.cc:186
#9  0x00007fac6a491852 in yb::client::internal::Batcher::ExecuteOperations(yb::StronglyTypedBool<yb::client::Initial_Tag>) (this=<optimized out>, initial=...) at ../../src/yb/client/batcher.cc:523
#10 0x00007fac6a48ec2f in yb::client::internal::Batcher::AllLookupsDone() (this=<optimized out>) at ../../src/yb/client/batcher.cc:471
#11 0x00007fac6a48e096 in yb::client::internal::Batcher::TabletLookupFinished(yb::client::internal::InFlightOp*, yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> >) (this=0x39f2018, op=0xd094050, lookup_result=...) at ../../src/yb/client/batcher.cc:328
#12 0x00007fac6a48e3a7 in __invoke<void (yb::client::internal::Batcher::*&)(yb::client::internal::InFlightOp *, yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> >), std::shared_ptr<yb::client::internal::Batcher> &, yb::client::internal::InFlightOp *&, const yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> > &, void> (__f=<optimized out>, __a0=..., __args=..., __args=...) at /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064126-dd4872fe56-almalinux8-x86_64-clang12-linuxbrew/installed/uninstrumented/libcxx/include/c++/v1/type_traits:3635
#13 __apply_functor<void (yb::client::internal::Batcher::*)(yb::client::internal::InFlightOp *, yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> >), std::tuple<std::shared_ptr<yb::client::internal::Batcher>, yb::client::internal::InFlightOp *, std::placeholders::__ph<1> >, 0, 1, 2, std::tuple<const yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> > &> > (__f=<optimized out>, __bound_args=..., __args=<optimized out>) at /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064126-dd4872fe56-almalinux8-x86_64-clang12-linuxbrew/installed/uninstrumented/libcxx/include/c++/v1/functional:2857
#14 operator()<const yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> > &> (this=<optimized out>, __args=...) at /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064126-dd4872fe56-almalinux8-x86_64-clang12-linuxbrew/installed/uninstrumented/libcxx/include/c++/v1/functional:2890
#15 __invoke<std::__bind<void (yb::client::internal::Batcher::*)(yb::client::internal::InFlightOp *, yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> >), std::shared_ptr<yb::client::internal::Batcher> &, yb::client::internal::InFlightOp *, const std::placeholders::__ph<1> &> &, const yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> > &> (__f=..., __args=...) at /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064126-dd4872fe56-almalinux8-x86_64-clang12-linuxbrew/installed/uninstrumented/libcxx/include/c++/v1/type_traits:3694
#16 __call<std::__bind<void (yb::client::internal::Batcher::*)(yb::client::internal::InFlightOp *, yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> >), std::shared_ptr<yb::client::internal::Batcher> &, yb::client::internal::InFlightOp *, const std::placeholders::__ph<1> &> &, const yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> > &> (__args=..., __args=...) at /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064126-dd4872fe56-almalinux8-x86_64-clang12-linuxbrew/installed/uninstrumented/libcxx/include/c++/v1/__functional_base:348
#17 operator() (this=<optimized out>, __arg=...) at /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064126-dd4872fe56-almalinux8-x86_64-clang12-linuxbrew/installed/uninstrumented/libcxx/include/c++/v1/functional:1558
#18 std::__1::__function::__func<std::__1::__bind<void (yb::client::internal::Batcher::*)(yb::client::internal::InFlightOp*, yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> >), std::__1::shared_ptr<yb::client::internal::Batcher>&, yb::client::internal::InFlightOp*, std::__1::placeholders::__ph<1> const&>, std::__1::allocator<std::__1::__bind<void (yb::client::internal::Batcher::*)(yb::client::internal::InFlightOp*, yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> >), std::__1::shared_ptr<yb::client::internal::Batcher>&, yb::client::internal::InFlightOp*, std::__1::placeholders::__ph<1> const&> >, void (yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> > const&)>::operator()(yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> > const&) (this=<optimized out>, __arg=...) at /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064126-dd4872fe56-almalinux8-x86_64-clang12-linuxbrew/installed/uninstrumented/libcxx/include/c++/v1/functional:1732
#19 0x00007fac6a520563 in operator() (this=0x7ffd7c3eac80, __args=...) at /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064126-dd4872fe56-almalinux8-x86_64-clang12-linuxbrew/installed/uninstrumented/libcxx/include/c++/v1/functional:1885
#20 operator() (this=0x7ffd7c3eac80, __arg=...) at /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064126-dd4872fe56-almalinux8-x86_64-clang12-linuxbrew/installed/uninstrumented/libcxx/include/c++/v1/functional:2560
#21 operator() (this=<optimized out>) at ../../src/yb/client/meta_cache.cc:1852
#22 yb::ScopeExitLambda<bool yb::client::internal::MetaCache::DoLookupTabletByKey<yb::SharedLock<std::__1::shared_timed_mutex> >(std::__1::shared_ptr<yb::client::YBTable const> const&, std::__1::shared_ptr<yb::client::VersionedTablePartitionList const> const&, std::__1::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, std::__1::function<void (yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> > const&)>*, std::__1::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>*)::{lambda()#1}>::~ScopeExitLambda() (this=<optimized out>) at ../../src/yb/util/scope_exit.h:36
#23 0x00007fac6a51d473 in DoLookupTabletByKey<yb::SharedLock<std::shared_timed_mutex> > (this=0x316b380, table=..., partitions=..., partition_start=..., deadline=..., callback=0x7ffd7c3eac80, partition_group_start=<optimized out>) at ../../src/yb/client/meta_cache.cc:1930
#24 yb::client::internal::MetaCache::LookupTabletByKey(std::__1::shared_ptr<yb::client::YBTable> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, std::__1::function<void (yb::Result<scoped_refptr<yb::client::internal::RemoteTablet> > const&)>) (this=<optimized out>, table=..., partition_key=..., deadline=..., callback=...) at ../../src/yb/client/meta_cache.cc:2004
#25 0x00007fac6a48d792 in yb::client::internal::Batcher::FlushAsync(boost::function<void (yb::Status const&)>, yb::StronglyTypedBool<yb::client::internal::IsWithinTransactionRetry_Tag>) (this=0x39f2018, callback=..., is_within_transaction_retry=...) at ../../src/yb/client/batcher.cc:271
#26 0x00007fac6a52f170 in yb::client::(anonymous namespace)::FlushBatcherAsync(std::__1::shared_ptr<yb::client::internal::Batcher> const&, boost::function<void (yb::client::FlushStatus*)>, yb::client::YBSession::BatcherConfig, yb::StronglyTypedBool<yb::client::internal::IsWithinTransactionRetry_Tag>) (batcher=..., callback=..., batcher_config=..., is_within_transaction_retry=...) at ../../src/yb/client/session.cc:210
#27 0x00007fac6a52eab5 in yb::client::YBSession::FlushAsync(boost::function<void (yb::client::FlushStatus*)>) (this=<optimized out>, callback=...) at ../../src/yb/client/session.cc:229
#28 0x00007fac6a52e6a0 in yb::client::YBSession::FlushFuture() () at ../../src/yb/client/session.cc:241
#29 0x00007fac6e625120 in Flush (this=0x7ffd7c3eb2d8) at ../../src/yb/yql/pggate/pg_session.cc:445
#30 RunAsync<yb::client::YBPgsqlOp> (this=<optimized out>, op=<optimized out>, ops_count=<optimized out>, relation_id=..., read_time=<optimized out>, force_non_bufferable=<optimized out>) at ../../src/yb/yql/pggate/pg_session.h:251
#31 yb::pggate::PgDocOp::SendRequestImpl(bool) (this=<optimized out>, force_non_bufferable=<optimized out>) at ../../src/yb/yql/pggate/pg_doc_op.cc:283
#32 0x00007fac6e624e6a in SendRequest (this=0xd160498, force_non_bufferable=<optimized out>) at ../../src/yb/yql/pggate/pg_doc_op.cc:266
#33 yb::pggate::PgDocOp::Execute(bool) (this=0xd160498, force_non_bufferable=false) at ../../src/yb/yql/pggate/pg_doc_op.cc:178
#34 0x00007fac6e618ad3 in yb::pggate::PgDmlRead::Exec(PgExecParameters const*) (this=0xd160300, exec_params=<optimized out>) at ../../src/yb/yql/pggate/pg_dml_read.cc:289
#35 0x00007fac6e5ea121 in ExecSelect (this=<optimized out>, handle=0xd160300, exec_params=<optimized out>) at ../../src/yb/yql/pggate/pggate.cc:1251
#36 YBCPgExecSelect (handle=0xd160300, exec_params=0x0) at ../../src/yb/yql/pggate/ybc_pggate.cc:767
#37 0x00000000005a6381 in ybcFetchNextHeapTuple (ybScan=0x37d7c08, is_forward_scan=<optimized out>) at ../../../../../../../src/postgres/src/backend/access/yb_access/yb_scan.c:295
#38 ybc_getnext_heaptuple (ybScan=0x37d7c08, is_forward_scan=<optimized out>, recheck=<optimized out>) at ../../../../../../../src/postgres/src/backend/access/yb_access/yb_scan.c:1484
#39 0x000000000054212f in ybc_systable_getnext (scan_desc=0xa0cdfe8) at /nfusr/dev-server/dfelsing/code/yugabyte-db/src/postgres/src/backend/access/yb_access/../../../../../../../src/postgres/src/backend/access/yb_access/yb_scan.c:1595
#40 systable_getnext (sysscan=0xa0cdfe8) at ../../../../../../../src/postgres/src/backend/access/index/genam.c:438
#41 0x0000000000abbd7a in ScanPgRelation (targetRelId=<optimized out>, indexOK=<optimized out>, force_non_historic=false) at ../../../../../../../src/postgres/src/backend/utils/cache/relcache.c:405
#42 0x0000000000abd3cc in RelationBuildDesc (targetRelId=53109376, insertIt=true) at ../../../../../../../src/postgres/src/backend/utils/cache/relcache.c:1754
#43 0x0000000000abc87b in RelationIdGetRelation (relationId=53109376) at ../../../../../../../src/postgres/src/backend/utils/cache/relcache.c:2636
#44 0x00000000005a6c28 in ybc_systable_beginscan (relation=0x34fee08, indexId=1778284304, indexOK=false, snapshot=0x36896a0, nkeys=1, key=0x7ffd7c3ebbb0) at ../../../../../../../src/postgres/src/backend/access/yb_access/yb_scan.c:1536
#45 0x0000000000541e94 in systable_beginscan (heapRelation=<optimized out>, indexId=<optimized out>, indexOK=<optimized out>, snapshot=<optimized out>, nkeys=<optimized out>, key=0x100000060) at ../../../../../../../src/postgres/src/backend/access/index/genam.c:345
#46 0x0000000000aabefa in SearchCatCacheMiss (cache=<optimized out>, nkeys=1, hashValue=3239004316, hashIndex=28, v1=<optimized out>, v2=<optimized out>, v3=0, v4=0) at ../../../../../../../src/postgres/src/backend/utils/cache/catcache.c:1764
#47 0x0000000000aabbc5 in SearchCatCacheInternal (cache=0x3379500, nkeys=<optimized out>, v1=<optimized out>, v2=57185640, v3=0, v4=0) at ../../../../../../../src/postgres/src/backend/utils/cache/catcache.c:1665
#48 0x0000000000ab9193 in SearchCatCache1 (cache=0x32a6280, v1=140726687932600) at ../../../../../../../src/postgres/src/backend/utils/cache/catcache.c:1533
#49 SearchSysCache1 (cacheId=32, key1=140726687932600) at ../../../../../../../src/postgres/src/backend/utils/cache/syscache.c:1615
#50 RelationInitIndexAccessInfo (relation=0x88e62a8) at ../../../../../../../src/postgres/src/backend/utils/cache/relcache.c:2041
#51 0x0000000000abdc82 in RelationBuildDesc (targetRelId=<optimized out>, insertIt=true) at ../../../../../../../src/postgres/src/backend/utils/cache/relcache.c:1877
#52 0x0000000000abc87b in RelationIdGetRelation (relationId=53109376) at ../../../../../../../src/postgres/src/backend/utils/cache/relcache.c:2636
#53 0x00000000005a6c28 in ybc_systable_beginscan (relation=0x34fee08, indexId=1778284304, indexOK=false, snapshot=0x36896a0, nkeys=1, key=0x7ffd7c3ec1f0) at ../../../../../../../src/postgres/src/backend/access/yb_access/yb_scan.c:1536
#54 0x0000000000541e94 in systable_beginscan (heapRelation=<optimized out>, indexId=<optimized out>, indexOK=<optimized out>, snapshot=<optimized out>, nkeys=<optimized out>, key=0x17c3ec3c8) at ../../../../../../../src/postgres/src/backend/access/index/genam.c:345
#55 0x0000000000aabefa in SearchCatCacheMiss (cache=<optimized out>, nkeys=1, hashValue=3239004316, hashIndex=28, v1=<optimized out>, v2=<optimized out>, v3=0, v4=0) at ../../../../../../../src/postgres/src/backend/utils/cache/catcache.c:1764
#56 0x0000000000aabbc5 in SearchCatCacheInternal (cache=0x3379500, nkeys=<optimized out>, v1=<optimized out>, v2=57185640, v3=0, v4=0) at ../../../../../../../src/postgres/src/backend/utils/cache/catcache.c:1665
#57 0x0000000000ab9193 in SearchCatCache1 (cache=0x32a6280, v1=140726687932600) at ../../../../../../../src/postgres/src/backend/utils/cache/catcache.c:1533
#58 SearchSysCache1 (cacheId=32, key1=140726687932600) at ../../../../../../../src/postgres/src/backend/utils/cache/syscache.c:1615
[...]
#47056 SearchSysCache1 (cacheId=32, key1=140726687932600) at ../../../../../../../src/postgres/src/backend/utils/cache/syscache.c:1615
#47057 RelationInitIndexAccessInfo (relation=0x34fa488) at ../../../../../../../src/postgres/src/backend/utils/cache/relcache.c:2041
#47058 0x0000000000abdc82 in RelationBuildDesc (targetRelId=<optimized out>, insertIt=true) at ../../../../../../../src/postgres/src/backend/utils/cache/relcache.c:1877
#47059 0x0000000000abc87b in RelationIdGetRelation (relationId=53109376) at ../../../../../../../src/postgres/src/backend/utils/cache/relcache.c:2636
#47060 0x0000000000527a53 in relation_open (relationId=3395, lockmode=<optimized out>) at ../../../../../../../src/postgres/src/backend/access/heap/heapam.c:1141
#47061 0x000000000054274b in index_open (relationId=53109376, lockmode=1778284304) at ../../../../../../../src/postgres/src/backend/access/index/indexam.c:164
#47062 0x000000000071d262 in vac_open_indexes (relation=<optimized out>, lockmode=1, nindexes=0x7ffd7cbe48a8, Irel=0x7ffd7cbe48c8) at ../../../../../../src/postgres/src/backend/commands/vacuum.c:1652
#47063 0x000000000066d2e2 in do_analyze_rel (onerel=<optimized out>, options=2, params=0x7ffd7cbe4b80, va_cols=0x0, acquirefunc=0x66c570 <yb_acquire_sample_rows>, relpages=0, inh=<optimized out>, in_outer_xact=<optimized out>, elevel=13) at ../../../../../../src/postgres/src/backend/commands/analyze.c:480
#47064 0x000000000066c323 in analyze_rel (relid=<optimized out>, relation=<optimized out>, options=2, params=0x7ffd7cbe4b80, va_cols=0x0, in_outer_xact=<optimized out>, bstrategy=0x357a118) at ../../../../../../src/postgres/src/backend/commands/analyze.c:319
#47065 0x000000000071b9f0 in vacuum (options=<optimized out>, relations=<optimized out>, params=0x7ffd7cbe4b80, bstrategy=<optimized out>, isTopLevel=<optimized out>) at ../../../../../../src/postgres/src/backend/commands/vacuum.c:375
#47066 0x000000000071afac in ExecVacuum (vacstmt=<optimized out>, isTopLevel=<optimized out>) at ../../../../../../src/postgres/src/backend/commands/vacuum.c:142
#47067 0x000000000093d13f in standard_ProcessUtility (pstmt=0x32af3b8, queryString=0x32ae118 "ANALYZE pg_init_privs;", context=PROCESS_UTILITY_TOPLEVEL, params=0x0, queryEnv=0x0, dest=0x32af678, completionTag=0x7ffd7cbe5310 "") at ../../../../../../src/postgres/src/backend/tcop/utility.c:694
#47068 0x000000000093f52e in YBProcessUtilityDefaultHook (pstmt=0x32af3b8, queryString=0x32ae118 "ANALYZE pg_init_privs;", context=PROCESS_UTILITY_TOPLEVEL, params=0x0, queryEnv=0x0, dest=0x32af678, completionTag=0x7ffd7cbe5310 "") at ../../../../../../src/postgres/src/backend/tcop/utility.c:3583
#47069 0x00007fac679d9890 in pgss_ProcessUtility (pstmt=0x32a6280, queryString=0x32ae118 "ANALYZE pg_init_privs;", context=PROCESS_UTILITY_TOPLEVEL, params=0x0, queryEnv=0x0, dest=0x32af678, completionTag=0x7ffd7cbe5310 "") at ../../../../../src/postgres/contrib/pg_stat_statements/pg_stat_statements.c:1056
#47070 0x00007fac679d0837 in ybpgm_ProcessUtility (pstmt=0x32a6280, queryString=0x32ae118 "ANALYZE pg_init_privs;", context=PROCESS_UTILITY_TOPLEVEL, params=0x0, queryEnv=0x0, dest=0x32af678, completionTag=0x7ffd7cbe5310 "") at ../../../../../src/postgres/contrib/yb_pg_metrics/yb_pg_metrics.c:682
#47071 0x00007fac679b4fbe in pg_hint_plan_ProcessUtility (pstmt=0x32a6280, queryString=0x7fac69fe7710 <yb::tserver::TabletServerServiceProxy::ReadAsync(yb::tserver::ReadRequestPB const&, yb::tserver::ReadResponsePB*, yb::rpc::RpcController*, std::__1::function<void ()>) const::method> "!", context=2084479160, params=0x36896a0, queryEnv=0x3689748, dest=0x3689568, completionTag=0x7ffd7cbe5310 "") at ../../../../../src/postgres/third-party-extensions/pg_hint_plan/pg_hint_plan.c:3033
#47072 0x0000000000b03c6f in YBTxnDdlProcessUtility (pstmt=0x32af3b8, queryString=0x32ae118 "ANALYZE pg_init_privs;", context=PROCESS_UTILITY_TOPLEVEL, params=0x0, queryEnv=0x0, dest=0x32af678, completionTag=0x7ffd7cbe5310 "") at ../../../../../../../src/postgres/src/backend/utils/misc/pg_yb_utils.c:1365
#47073 0x000000000093c094 in PortalRunUtility (portal=0x338e118, pstmt=0x32af3b8, isTopLevel=<optimized out>, setHoldSnapshot=<optimized out>, dest=0x3689568, completionTag=0x7ffd7cbe5310 "") at ../../../../../../src/postgres/src/backend/tcop/utility.c:374
#47074 0x000000000093be67 in PortalRunMulti (portal=0x338e118, isTopLevel=true, setHoldSnapshot=false, dest=0x32af678, altdest=0x32af678, completionTag=<optimized out>) at ../../../../../../src/postgres/src/backend/tcop/pquery.c:1368
#47075 0x000000000093b423 in PortalRun (portal=0x338e118, count=9223372036854775807, isTopLevel=true, run_once=<optimized out>, dest=0x32af678, altdest=0x32af678, completionTag=0x7ffd7cbe5310 "") at ../../../../../../src/postgres/src/backend/tcop/pquery.c:810
#47076 0x0000000000937776 in yb_exec_simple_query_impl (query_string=0x32ae118) at ../../../../../../src/postgres/src/backend/tcop/postgres.c:1161
#47077 0x0000000000937e4e in yb_exec_query_wrapper (exec_context=0x32ae000, restart_data=<optimized out>, functor=0x936ed0 <yb_exec_simple_query_impl>, functor_context=0x32ae118) at ../../../../../../src/postgres/src/backend/tcop/postgres.c:4445
#47078 0x000000000093472d in PostgresMain (argc=1, argv=<optimized out>, dbname=<optimized out>, username=0x3291378 "yugabyte") at ../../../../../../src/postgres/src/backend/tcop/postgres.c:4479
#47079 0x000000000089013b in BackendRun (port=0x312a1e0) at ../../../../../../src/postgres/src/backend/postmaster/postmaster.c:4470
#47080 0x000000000088f872 in ServerLoop () at ../../../../../../src/postgres/src/backend/postmaster/postmaster.c:4136
#47081 0x000000000088c0b1 in PostmasterMain (argc=<optimized out>, argv=0x31406c0) at ../../../../../../src/postgres/src/backend/postmaster/postmaster.c:1417
#47082 0x00000000007ac8d3 in PostgresServerProcessMain (argc=23, argv=0x31406c0) at ../../../../../../src/postgres/src/backend/main/main.c:234
#47083 0x00000000004de432 in main ()

Query, can't reproduce:

ANALYZE pg_init_privs;

Core dump: core.30852.zip

Metadata

Metadata

Assignees

Labels

area/ysqlYugabyte SQL (YSQL)kind/bugThis issue is a bugkind/failing-testTests and testing infrapriority/mediumMedium priority issueqa_automationBugs identified via itest-system, LST, Stress automation or causing automation failures

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions