Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yugabyte#17820] YSQL: Fix asan issue in TestDeferrablePagingInSerial…
…izableIsolation Summary: The following error was seen because `num_write_iterations` was used by the test thread after it was destructed. The thread should stop before `num_write_iterations` is destructed. ``` ==27369==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7f4570be7660 at pc 0x55b8b47bbe66 bp 0x7f44ec861290 sp 0x7f44ec861288 WRITE of size 8 at 0x7f4570be7660 thread T145 #0 0x55b8b47bbe65 in unsigned long std::__cxx_atomic_fetch_add[abi:v160006]<unsigned long>(std::__cxx_atomic_base_impl<unsigned long>*, unsigned long, std::memory_order) /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20230621185529-6777477baa-almalinux8-x86_64-clang16/installed/asan/libcxx/include/c++/v1/atomic:1014:12 #1 0x55b8b47bbe65 in std::__atomic_base<unsigned long, true>::fetch_add[abi:v160006](unsigned long, std::memory_order) /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20230621185529-6777477baa-almalinux8-x86_64-clang16/installed/asan/libcxx/include/c++/v1/atomic:1649:17 #2 0x55b8b47bbe65 in yb::pgwrapper::PgSingleTServerTest_TestDeferrablePagingInSerializableIsolation_Test::TestBody()::$_0::operator()() const ${BUILD_ROOT}/../../src/yb/yql/pgwrapper/pg_single_tserver-test.cc:361:32 ``` Jira: DB-6908 Test Plan: Jenkins: test regex: .*single_tserver.* ./yb_build.sh --cxx-test pgwrapper_pg_single_tserver-test --gtest_filter PgSingleTServerTest.TestPagingInSerializableIsolation Reviewers: dmitry Reviewed By: dmitry Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D26571
- Loading branch information