Closed mbautin closed 4 years ago
Looking over our 600 builds, just for FATAL errors, seems like we're hitting this quite a lot:
cat fatals_600 | xargs grep -l 'void yb::pggate::YBCDestroyPgGate()' | wc -l
70
Example tests:
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/607/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_SystemTableTxnTest.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/607/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/624/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/626/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/629/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/634/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_SystemTableTxnTest.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/635/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/638/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/639/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/640/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/642/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/643/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/645/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/646/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/648/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/651/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_SystemTableTxnTest.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/651/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/654/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/655/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_SystemTableTxnTest.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/656/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/656/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/658/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/659/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/660/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/661/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/667/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/670/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/675/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/676/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/677/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/683/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_SystemTableTxnTest.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/683/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/684/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/686/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_SystemTableTxnTest.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/686/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/687/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/688/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_SystemTableTxnTest.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/689/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-asan/builds/696/archive/build/asan-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/603/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/605/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/615/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBMarkDeleted.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/617/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/635/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/647/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/648/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/651/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/655/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/661/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-debug/builds/666/archive/build/debug-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-release/builds/628/archive/build/release-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-release/builds/643/archive/build/release-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-release/builds/657/archive/build/release-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-clang-release/builds/665/archive/build/release-clang-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-debug/builds/602/archive/build/debug-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-debug/builds/607/archive/build/debug-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-debug/builds/614/archive/build/debug-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-debug/builds/624/archive/build/debug-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-debug/builds/625/archive/build/debug-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-debug/builds/633/archive/build/debug-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-debug/builds/637/archive/build/debug-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-debug/builds/639/archive/build/debug-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-debug/builds/645/archive/build/debug-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-debug/builds/658/archive/build/debug-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-release/builds/622/archive/build/release-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-release/builds/664/archive/build/release-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-release/builds/669/archive/build/release-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-release/builds/672/archive/build/release-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-release/builds/678/archive/build/release-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_BulkCopyWithRestart.log
/var/lib/jenkins/jobs/github-yugabyte-db-centos-master-gcc-release/builds/681/archive/build/release-gcc-dynamic-ninja/yb-test-logs/tests-pgwrapper__pg_mini-test/PgMiniTest_DropDBUpdateSysTablet.log
cc @d-uspenskiy
This also generates various use-after-free errors in ASAN:
#0 0x14c2215 in GetMemoryChunkContext
#1 0x14c4a91 in pfree
#2 0x143b976 in errhint
#3 0x1099f28 in quickdie
#4 0x7fb2455fbb9f (
#5 0x7fb2455f800c in __pthread_cond_wait
#6 0x7fb23f497189 in void boost::asio::detail::posix_event::wait<boost::asio::detail::conditionally_enabled_mutex::scoped_lock>(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&)
#7 0x7fb23f49656e in boost::asio::detail::conditionally_enabled_event::wait(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&)
#8 0x7fb23f494c8d in boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&)
#9 0x7fb23f494885 in boost::asio::detail::scheduler::run(boost::system::error_code&)
#10 0x7fb23f48cf1a in yb::rpc::IoThreadPool::Impl::Execute()
#0 0x7f2fd02b4033 in std::__1::unique_ptr<yb::client::YBClient::Data, std::__1::default_delete<yb::client::YBClient::Data> >::operator->() const
#1 0x7f2fd02b4033 in yb::client::YBClient::IsMultiMaster() const
#2 0x7f2fd031f4e4 in yb::Status yb::client::YBClient::Data::SyncLeaderMasterRpc<yb::master::GetYsqlCatalogConfigRequestPB, yb::master::GetYsqlCatalogConfigResponsePB>(std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::d
#3 0x7f2fd02a1e53 in yb::client::YBClient::GetYsqlCatalogMasterVersion(unsigned long*)
#4 0x7f2fd2a1a9f5 in yb::pggate::PgSession::GetCatalogMasterVersion(unsigned long*)
#5 0x7f2fd29fd49c in yb::pggate::PgApiImpl::GetCatalogMasterVersion(unsigned long*)
#6 0x7f2fd29e98d7 in YBCPgGetCatalogMasterVersion
#7 0x10a3105 in YBRefreshCache
#8 0x10a3fec in YBCheckSharedCatalogCacheVersion
#9 0x109cfbf in PostgresMain
#10 0xef516b in BackendRun
#11 0xef4074 in BackendStartup
#12 0xef24c0 in ServerLoop
#13 0xeee4fa in PostmasterMain
#14 0xcd8113 in PostgresServerProcessMain
#15 0xcd87b1 in main (
#0 0x7f39ab8e25a5 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (
#1 0x7f39bcf3e109 in yb::HostPort::HostPort(yb::HostPort const&)
#2 0x7f39bcf65847 in yb::client::YBClient::Data::leader_master_hostport() const
#3 0x7f39bcf9c435 in yb::Status yb::client::YBClient::Data::SyncLeaderMasterRpc<yb::master::GetYsqlCatalogConfigRequestPB, yb::master::GetYsqlCatalogConfigResponsePB>(std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::d
#4 0x7f39bcf1ee53 in yb::client::YBClient::GetYsqlCatalogMasterVersion(unsigned long*)
#5 0x7f39bf6979f5 in yb::pggate::PgSession::GetCatalogMasterVersion(unsigned long*)
#6 0x7f39bf67a49c in yb::pggate::PgApiImpl::GetCatalogMasterVersion(unsigned long*)
#7 0x7f39bf6668d7 in YBCPgGetCatalogMasterVersion
#8 0x10a3105 in YBRefreshCache
#9 0x10a3fec in YBCheckSharedCatalogCacheVersion
#10 0x109cfbf in PostgresMain
#11 0xef516b in BackendRun
#12 0xef4074 in BackendStartup
#13 0xef24c0 in ServerLoop
#14 0xeee4fa in PostmasterMain
#15 0xcd8113 in PostgresServerProcessMain
#16 0xcd87b1 in main (
@d-uspenskiy: can this issue be closed now?