Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: memory leak in diskann unit test #1988

Closed
1 task done
small-turtle-1 opened this issue Oct 8, 2024 · 0 comments · Fixed by #2019
Closed
1 task done

[Bug]: memory leak in diskann unit test #1988

small-turtle-1 opened this issue Oct 8, 2024 · 0 comments · Fixed by #2019
Labels
bug Something isn't working

Comments

@small-turtle-1
Copy link
Contributor

small-turtle-1 commented Oct 8, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Version or Commit ID

4bc9374

Other environment information

No response

Actual behavior and How to reproduce it

Compile unit_test in Debug mode.

./build/Debug/src/test_main --gtest_filter="DiskAnnTest.test1"

Expected behavior

No response

Additional information

==794245==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1920 byte(s) in 6 object(s) allocated from:
    #0 0x622581c48ab1 in operator new(unsigned long) (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xf8aab1) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)
    #1 0x622582336b00 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::InitializeQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:203:28
    #2 0x622582336409 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::BuildWithDataPopulated(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:127:13
    #3 0x62258232de0b in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Build(infinity::LocalFileHandle@local_file_handle&, unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:111:9
    #4 0x622582317996 in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildMergedVamanaIndex(infinity::LocalFileHandle@local_file_handle&, infinity::LocalFileHandle@local_file_handle&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:78:23
    #5 0x62258231002c in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildIndex(unsigned int, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:339:13
    #6 0x62258230b648 in void DiskAnnTest::TestCreateIndex<infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>>() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:69:24
    #7 0x62258230a524 in DiskAnnTest_test1_Test::TestBody() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:88:5
    #8 0x622586cfc168 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #9 0x622586caab41 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #10 0x622586c6f0e5 in testing::Test::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2674:5
    #11 0x622586c70777 in testing::TestInfo::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2853:11
    #12 0x622586c718d5 in testing::TestSuite::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:3012:30
    #13 0x622586c90306 in testing::internal::UnitTestImpl::RunAllTests() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5870:44
    #14 0x622586cfcc88 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #15 0x622586caf206 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #16 0x622586c8f6d9 in testing::UnitTest::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5444:10
    #17 0x622581c4af70 in RUN_ALL_TESTS() /home/huikong/Code/work/infinity/third_party/googletest/googletest/include/gtest/gtest.h:2293:73
    #18 0x622581c4af06 in main /home/huikong/Code/work/infinity/src/unit_test/main.cpp:19:12
    #19 0x70b456c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #20 0x70b456c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
    #21 0x622581b6f644 in _start (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xeb1644) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)

Indirect leak of 150000 byte(s) in 6 object(s) allocated from:
    #0 0x622581c48ab1 in operator new(unsigned long) (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xf8aab1) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)
    #1 0x622581c54a14 in void* std::__1::__libcpp_operator_new[abi:ne180100]<unsigned long>(unsigned long) /usr/lib/llvm-18/include/c++/v1/new:271:10
    #2 0x622581c5499c in std::__1::__libcpp_allocate[abi:ne180100](unsigned long, unsigned long) /usr/lib/llvm-18/include/c++/v1/new:295:10
    #3 0x622581d8168c in std::__1::allocator<unsigned long>::allocate[abi:ne180100](unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocator.h:125:32
    #4 0x622581d814ec in std::__1::__allocation_result<std::__1::allocator_traits<std::__1::allocator<unsigned long>>::pointer> std::__1::__allocate_at_least[abi:ne180100]<std::__1::allocator<unsigned long>>(std::__1::allocator<unsigned long>&, unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocate_at_least.h:55:19
    #5 0x6225820308d0 in std::__1::__split_buffer<unsigned long, std::__1::allocator<unsigned long>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<unsigned long>&) /usr/lib/llvm-18/include/c++/v1/__split_buffer:343:25
    #6 0x6225820300fa in std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>::__append(unsigned long, unsigned long const&) /usr/lib/llvm-18/include/c++/v1/vector:1111:49
    #7 0x622582029e47 in std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>::resize(unsigned long, unsigned long const&) /usr/lib/llvm-18/include/c++/v1/vector:1759:11
    #8 0x622582352684 in boost::dynamic_bitset<unsigned long, std::__1::allocator<unsigned long>>::resize(unsigned long, bool) /usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:773:12
    #9 0x622582350c7a in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::IterateToFixedPoint(infinity::InMemQueryScratch@diskann_utils<float>*, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, bool) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:257:39
    #10 0x6225823492f5 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::SearchForPointAndPrune(unsigned long, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, infinity::InMemQueryScratch@diskann_utils<float>*) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:216:9
    #11 0x622582337846 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Link() /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:162:13
    #12 0x622582336419 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::BuildWithDataPopulated(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:130:9
    #13 0x62258232de0b in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Build(infinity::LocalFileHandle@local_file_handle&, unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:111:9
    #14 0x622582317996 in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildMergedVamanaIndex(infinity::LocalFileHandle@local_file_handle&, infinity::LocalFileHandle@local_file_handle&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:78:23
    #15 0x62258231002c in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildIndex(unsigned int, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:339:13
    #16 0x62258230b648 in void DiskAnnTest::TestCreateIndex<infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>>() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:69:24
    #17 0x62258230a524 in DiskAnnTest_test1_Test::TestBody() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:88:5
    #18 0x622586cfc168 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #19 0x622586caab41 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #20 0x622586c6f0e5 in testing::Test::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2674:5
    #21 0x622586c70777 in testing::TestInfo::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2853:11
    #22 0x622586c718d5 in testing::TestSuite::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:3012:30
    #23 0x622586c90306 in testing::internal::UnitTestImpl::RunAllTests() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5870:44
    #24 0x622586cfcc88 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #25 0x622586caf206 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #26 0x622586c8f6d9 in testing::UnitTest::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5444:10
    #27 0x622581c4af70 in RUN_ALL_TESTS() /home/huikong/Code/work/infinity/third_party/googletest/googletest/include/gtest/gtest.h:2293:73
    #28 0x622581c4af06 in main /home/huikong/Code/work/infinity/src/unit_test/main.cpp:19:12
    #29 0x70b456c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16

Indirect leak of 96144 byte(s) in 6 object(s) allocated from:
    #0 0x622581c48ab1 in operator new(unsigned long) (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xf8aab1) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)
    #1 0x622581c54a14 in void* std::__1::__libcpp_operator_new[abi:ne180100]<unsigned long>(unsigned long) /usr/lib/llvm-18/include/c++/v1/new:271:10
    #2 0x622581c5499c in std::__1::__libcpp_allocate[abi:ne180100](unsigned long, unsigned long) /usr/lib/llvm-18/include/c++/v1/new:295:10
    #3 0x62258234161c in std::__1::allocator<std::__1::__hash_node_base<std::__1::__hash_node<unsigned int, void*>*>*>::allocate[abi:ne180100](unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocator.h:125:32
    #4 0x62258234134c in std::__1::allocator_traits<std::__1::allocator<std::__1::__hash_node_base<std::__1::__hash_node<unsigned int, void*>*>*>>::allocate[abi:ne180100](std::__1::allocator<std::__1::__hash_node_base<std::__1::__hash_node<unsigned int, void*>*>*>&, unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocator_traits.h:269:16
    #5 0x622582340cd3 in void std::__1::__hash_table<unsigned int, std::__1::hash<unsigned int>, std::__1::equal_to<unsigned int>, std::__1::allocator<unsigned int>>::__do_rehash<true>(unsigned long) /usr/lib/llvm-18/include/c++/v1/__hash_table:1678:36
    #6 0x622582340915 in void std::__1::__hash_table<unsigned int, std::__1::hash<unsigned int>, std::__1::equal_to<unsigned int>, std::__1::allocator<unsigned int>>::__rehash<true>(unsigned long) /usr/lib/llvm-18/include/c++/v1/__hash_table:1663:5
    #7 0x62258234072c in std::__1::__hash_table<unsigned int, std::__1::hash<unsigned int>, std::__1::equal_to<unsigned int>, std::__1::allocator<unsigned int>>::__rehash_unique[abi:ne180100](unsigned long) /usr/lib/llvm-18/include/c++/v1/__hash_table:846:63
    #8 0x6225823406fb in std::__1::__hash_table<unsigned int, std::__1::hash<unsigned int>, std::__1::equal_to<unsigned int>, std::__1::allocator<unsigned int>>::__reserve_unique[abi:ne180100](unsigned long) /usr/lib/llvm-18/include/c++/v1/__hash_table:849:5
    #9 0x62258233dc2c in std::__1::unordered_set<unsigned int, std::__1::hash<unsigned int>, std::__1::equal_to<unsigned int>, std::__1::allocator<unsigned int>>::reserve[abi:ne180100](unsigned long) /usr/lib/llvm-18/include/c++/v1/unordered_set:909:64
    #10 0x62258233caf8 in infinity::InMemQueryScratch@diskann_utils<float>::ResizeForNewL(unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:232:36
    #11 0x62258233bd8c in infinity::InMemQueryScratch@diskann_utils<float>::InMemQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long, unsigned long, bool) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:214:9
    #12 0x622582336b98 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::InitializeQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:203:32
    #13 0x622582336409 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::BuildWithDataPopulated(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:127:13
    #14 0x62258232de0b in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Build(infinity::LocalFileHandle@local_file_handle&, unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:111:9
    #15 0x622582317996 in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildMergedVamanaIndex(infinity::LocalFileHandle@local_file_handle&, infinity::LocalFileHandle@local_file_handle&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:78:23
    #16 0x62258231002c in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildIndex(unsigned int, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:339:13
    #17 0x62258230b648 in void DiskAnnTest::TestCreateIndex<infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>>() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:69:24
    #18 0x62258230a524 in DiskAnnTest_test1_Test::TestBody() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:88:5
    #19 0x622586cfc168 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #20 0x622586caab41 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #21 0x622586c6f0e5 in testing::Test::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2674:5
    #22 0x622586c70777 in testing::TestInfo::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2853:11
    #23 0x622586c718d5 in testing::TestSuite::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:3012:30
    #24 0x622586c90306 in testing::internal::UnitTestImpl::RunAllTests() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5870:44
    #25 0x622586cfcc88 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #26 0x622586caf206 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #27 0x622586c8f6d9 in testing::UnitTest::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5444:10
    #28 0x622581c4af70 in RUN_ALL_TESTS() /home/huikong/Code/work/infinity/third_party/googletest/googletest/include/gtest/gtest.h:2293:73
    #29 0x622581c4af06 in main /home/huikong/Code/work/infinity/src/unit_test/main.cpp:19:12

Indirect leak of 23904 byte(s) in 6 object(s) allocated from:
    #0 0x622581c48ab1 in operator new(unsigned long) (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xf8aab1) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)
    #1 0x622581c54a14 in void* std::__1::__libcpp_operator_new[abi:ne180100]<unsigned long>(unsigned long) /usr/lib/llvm-18/include/c++/v1/new:271:10
    #2 0x622581c5499c in std::__1::__libcpp_allocate[abi:ne180100](unsigned long, unsigned long) /usr/lib/llvm-18/include/c++/v1/new:295:10
    #3 0x62258233e959 in std::__1::allocator<infinity::Neighbor@diskann_utils>::allocate[abi:ne180100](unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocator.h:125:32
    #4 0x62258233e85c in std::__1::__allocation_result<std::__1::allocator_traits<std::__1::allocator<infinity::Neighbor@diskann_utils>>::pointer> std::__1::__allocate_at_least[abi:ne180100]<std::__1::allocator<infinity::Neighbor@diskann_utils>>(std::__1::allocator<infinity::Neighbor@diskann_utils>&, unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocate_at_least.h:55:19
    #5 0x62258233e0c0 in std::__1::__split_buffer<infinity::Neighbor@diskann_utils, std::__1::allocator<infinity::Neighbor@diskann_utils>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<infinity::Neighbor@diskann_utils>&) /usr/lib/llvm-18/include/c++/v1/__split_buffer:343:25
    #6 0x62258233dade in std::__1::vector<infinity::Neighbor@diskann_utils, std::__1::allocator<infinity::Neighbor@diskann_utils>>::reserve(unsigned long) /usr/lib/llvm-18/include/c++/v1/vector:1425:49
    #7 0x62258233ca1c in infinity::InMemQueryScratch@diskann_utils<float>::ResizeForNewL(unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:229:19
    #8 0x62258233bd8c in infinity::InMemQueryScratch@diskann_utils<float>::InMemQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long, unsigned long, bool) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:214:9
    #9 0x622582336b98 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::InitializeQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:203:32
    #10 0x622582336409 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::BuildWithDataPopulated(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:127:13
    #11 0x62258232de0b in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Build(infinity::LocalFileHandle@local_file_handle&, unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:111:9
    #12 0x622582317996 in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildMergedVamanaIndex(infinity::LocalFileHandle@local_file_handle&, infinity::LocalFileHandle@local_file_handle&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:78:23
    #13 0x62258231002c in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildIndex(unsigned int, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:339:13
    #14 0x62258230b648 in void DiskAnnTest::TestCreateIndex<infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>>() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:69:24
    #15 0x62258230a524 in DiskAnnTest_test1_Test::TestBody() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:88:5
    #16 0x622586cfc168 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #17 0x622586caab41 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #18 0x622586c6f0e5 in testing::Test::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2674:5
    #19 0x622586c70777 in testing::TestInfo::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2853:11
    #20 0x622586c718d5 in testing::TestSuite::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:3012:30
    #21 0x622586c90306 in testing::internal::UnitTestImpl::RunAllTests() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5870:44
    #22 0x622586cfcc88 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #23 0x622586caf206 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #24 0x622586c8f6d9 in testing::UnitTest::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5444:10
    #25 0x622581c4af70 in RUN_ALL_TESTS() /home/huikong/Code/work/infinity/third_party/googletest/googletest/include/gtest/gtest.h:2293:73
    #26 0x622581c4af06 in main /home/huikong/Code/work/infinity/src/unit_test/main.cpp:19:12
    #27 0x70b456c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #28 0x70b456c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
    #29 0x622581b6f644 in _start (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xeb1644) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)

Indirect leak of 18000 byte(s) in 6 object(s) allocated from:
    #0 0x622581c48ab1 in operator new(unsigned long) (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xf8aab1) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)
    #1 0x622581c54a14 in void* std::__1::__libcpp_operator_new[abi:ne180100]<unsigned long>(unsigned long) /usr/lib/llvm-18/include/c++/v1/new:271:10
    #2 0x622581c5499c in std::__1::__libcpp_allocate[abi:ne180100](unsigned long, unsigned long) /usr/lib/llvm-18/include/c++/v1/new:295:10
    #3 0x622581e3312c in std::__1::allocator<float>::allocate[abi:ne180100](unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocator.h:125:32
    #4 0x622581e3302c in std::__1::__allocation_result<std::__1::allocator_traits<std::__1::allocator<float>>::pointer> std::__1::__allocate_at_least[abi:ne180100]<std::__1::allocator<float>>(std::__1::allocator<float>&, unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocate_at_least.h:55:19
    #5 0x622581e328a0 in std::__1::__split_buffer<float, std::__1::allocator<float>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<float>&) /usr/lib/llvm-18/include/c++/v1/__split_buffer:343:25
    #6 0x622581e2b26e in std::__1::vector<float, std::__1::allocator<float>>::reserve(unsigned long) /usr/lib/llvm-18/include/c++/v1/vector:1425:49
    #7 0x62258233bb72 in infinity::InMemQueryScratch@diskann_utils<float>::InMemQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long, unsigned long, bool) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:209:25
    #8 0x622582336b98 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::InitializeQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:203:32
    #9 0x622582336409 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::BuildWithDataPopulated(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:127:13
    #10 0x62258232de0b in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Build(infinity::LocalFileHandle@local_file_handle&, unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:111:9
    #11 0x622582317996 in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildMergedVamanaIndex(infinity::LocalFileHandle@local_file_handle&, infinity::LocalFileHandle@local_file_handle&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:78:23
    #12 0x62258231002c in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildIndex(unsigned int, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:339:13
    #13 0x62258230b648 in void DiskAnnTest::TestCreateIndex<infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>>() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:69:24
    #14 0x62258230a524 in DiskAnnTest_test1_Test::TestBody() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:88:5
    #15 0x622586cfc168 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #16 0x622586caab41 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #17 0x622586c6f0e5 in testing::Test::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2674:5
    #18 0x622586c70777 in testing::TestInfo::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2853:11
    #19 0x622586c718d5 in testing::TestSuite::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:3012:30
    #20 0x622586c90306 in testing::internal::UnitTestImpl::RunAllTests() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5870:44
    #21 0x622586cfcc88 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #22 0x622586caf206 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #23 0x622586c8f6d9 in testing::UnitTest::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5444:10
    #24 0x622581c4af70 in RUN_ALL_TESTS() /home/huikong/Code/work/infinity/third_party/googletest/googletest/include/gtest/gtest.h:2293:73
    #25 0x622581c4af06 in main /home/huikong/Code/work/infinity/src/unit_test/main.cpp:19:12
    #26 0x70b456c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #27 0x70b456c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
    #28 0x622581b6f644 in _start (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xeb1644) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)

Indirect leak of 7272 byte(s) in 6 object(s) allocated from:
    #0 0x622581c48ab1 in operator new(unsigned long) (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xf8aab1) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)
    #1 0x622581c54a14 in void* std::__1::__libcpp_operator_new[abi:ne180100]<unsigned long>(unsigned long) /usr/lib/llvm-18/include/c++/v1/new:271:10
    #2 0x622581c5499c in std::__1::__libcpp_allocate[abi:ne180100](unsigned long, unsigned long) /usr/lib/llvm-18/include/c++/v1/new:295:10
    #3 0x62258233e959 in std::__1::allocator<infinity::Neighbor@diskann_utils>::allocate[abi:ne180100](unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocator.h:125:32
    #4 0x62258233e85c in std::__1::__allocation_result<std::__1::allocator_traits<std::__1::allocator<infinity::Neighbor@diskann_utils>>::pointer> std::__1::__allocate_at_least[abi:ne180100]<std::__1::allocator<infinity::Neighbor@diskann_utils>>(std::__1::allocator<infinity::Neighbor@diskann_utils>&, unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocate_at_least.h:55:19
    #5 0x62258233e0c0 in std::__1::__split_buffer<infinity::Neighbor@diskann_utils, std::__1::allocator<infinity::Neighbor@diskann_utils>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<infinity::Neighbor@diskann_utils>&) /usr/lib/llvm-18/include/c++/v1/__split_buffer:343:25
    #6 0x622582366a02 in std::__1::vector<infinity::Neighbor@diskann_utils, std::__1::allocator<infinity::Neighbor@diskann_utils>>::__append(unsigned long) /usr/lib/llvm-18/include/c++/v1/vector:1095:49
    #7 0x622582365a9f in std::__1::vector<infinity::Neighbor@diskann_utils, std::__1::allocator<infinity::Neighbor@diskann_utils>>::resize(unsigned long) /usr/lib/llvm-18/include/c++/v1/vector:1750:11
    #8 0x622586f9d7c1 in infinity::NeighborPriorityQueue@diskann_utils::Reserve(unsigned long) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:110:19
    #9 0x62258233ca7e in infinity::InMemQueryScratch@diskann_utils<float>::ResizeForNewL(unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:230:27
    #10 0x62258233bd8c in infinity::InMemQueryScratch@diskann_utils<float>::InMemQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long, unsigned long, bool) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:214:9
    #11 0x622582336b98 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::InitializeQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:203:32
    #12 0x622582336409 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::BuildWithDataPopulated(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:127:13
    #13 0x62258232de0b in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Build(infinity::LocalFileHandle@local_file_handle&, unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:111:9
    #14 0x622582317996 in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildMergedVamanaIndex(infinity::LocalFileHandle@local_file_handle&, infinity::LocalFileHandle@local_file_handle&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:78:23
    #15 0x62258231002c in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildIndex(unsigned int, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:339:13
    #16 0x62258230b648 in void DiskAnnTest::TestCreateIndex<infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>>() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:69:24
    #17 0x62258230a524 in DiskAnnTest_test1_Test::TestBody() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:88:5
    #18 0x622586cfc168 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #19 0x622586caab41 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #20 0x622586c6f0e5 in testing::Test::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2674:5
    #21 0x622586c70777 in testing::TestInfo::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2853:11
    #22 0x622586c718d5 in testing::TestSuite::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:3012:30
    #23 0x622586c90306 in testing::internal::UnitTestImpl::RunAllTests() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5870:44
    #24 0x622586cfcc88 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #25 0x622586caf206 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #26 0x622586c8f6d9 in testing::UnitTest::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5444:10
    #27 0x622581c4af70 in RUN_ALL_TESTS() /home/huikong/Code/work/infinity/third_party/googletest/googletest/include/gtest/gtest.h:2293:73
    #28 0x622581c4af06 in main /home/huikong/Code/work/infinity/src/unit_test/main.cpp:19:12
    #29 0x70b456c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16

Indirect leak of 3024 byte(s) in 6 object(s) allocated from:
    #0 0x622581c48ab1 in operator new(unsigned long) (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xf8aab1) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)
    #1 0x622581c54a14 in void* std::__1::__libcpp_operator_new[abi:ne180100]<unsigned long>(unsigned long) /usr/lib/llvm-18/include/c++/v1/new:271:10
    #2 0x622581c5499c in std::__1::__libcpp_allocate[abi:ne180100](unsigned long, unsigned long) /usr/lib/llvm-18/include/c++/v1/new:295:10
    #3 0x622581d8168c in std::__1::allocator<unsigned long>::allocate[abi:ne180100](unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocator.h:125:32
    #4 0x622581d814ec in std::__1::__allocation_result<std::__1::allocator_traits<std::__1::allocator<unsigned long>>::pointer> std::__1::__allocate_at_least[abi:ne180100]<std::__1::allocator<unsigned long>>(std::__1::allocator<unsigned long>&, unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocate_at_least.h:55:19
    #5 0x6225820308d0 in std::__1::__split_buffer<unsigned long, std::__1::allocator<unsigned long>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<unsigned long>&) /usr/lib/llvm-18/include/c++/v1/__split_buffer:343:25
    #6 0x62258233c76e in std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>::reserve(unsigned long) /usr/lib/llvm-18/include/c++/v1/vector:1425:49
    #7 0x62258233bc72 in infinity::InMemQueryScratch@diskann_utils<float>::InMemQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long, unsigned long, bool) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:211:21
    #8 0x622582336b98 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::InitializeQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:203:32
    #9 0x622582336409 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::BuildWithDataPopulated(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:127:13
    #10 0x62258232de0b in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Build(infinity::LocalFileHandle@local_file_handle&, unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:111:9
    #11 0x622582317996 in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildMergedVamanaIndex(infinity::LocalFileHandle@local_file_handle&, infinity::LocalFileHandle@local_file_handle&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:78:23
    #12 0x62258231002c in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildIndex(unsigned int, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:339:13
    #13 0x62258230b648 in void DiskAnnTest::TestCreateIndex<infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>>() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:69:24
    #14 0x62258230a524 in DiskAnnTest_test1_Test::TestBody() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:88:5
    #15 0x622586cfc168 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #16 0x622586caab41 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #17 0x622586c6f0e5 in testing::Test::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2674:5
    #18 0x622586c70777 in testing::TestInfo::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2853:11
    #19 0x622586c718d5 in testing::TestSuite::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:3012:30
    #20 0x622586c90306 in testing::internal::UnitTestImpl::RunAllTests() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5870:44
    #21 0x622586cfcc88 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #22 0x622586caf206 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #23 0x622586c8f6d9 in testing::UnitTest::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5444:10
    #24 0x622581c4af70 in RUN_ALL_TESTS() /home/huikong/Code/work/infinity/third_party/googletest/googletest/include/gtest/gtest.h:2293:73
    #25 0x622581c4af06 in main /home/huikong/Code/work/infinity/src/unit_test/main.cpp:19:12
    #26 0x70b456c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #27 0x70b456c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
    #28 0x622581b6f644 in _start (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xeb1644) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)

Indirect leak of 2496 byte(s) in 6 object(s) allocated from:
    #0 0x622581c0ae16 in aligned_alloc (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xf4ce16) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)
    #1 0x622582332f19 in infinity::AllocAligned@diskann_utils(void**, unsigned long, unsigned long) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:38:12
    #2 0x62258233ba3b in infinity::InMemQueryScratch@diskann_utils<float>::InMemQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long, unsigned long, bool) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:201:9
    #3 0x622582336b98 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::InitializeQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:203:32
    #4 0x622582336409 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::BuildWithDataPopulated(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:127:13
    #5 0x62258232de0b in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Build(infinity::LocalFileHandle@local_file_handle&, unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:111:9
    #6 0x622582317996 in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildMergedVamanaIndex(infinity::LocalFileHandle@local_file_handle&, infinity::LocalFileHandle@local_file_handle&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:78:23
    #7 0x62258231002c in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildIndex(unsigned int, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:339:13
    #8 0x62258230b648 in void DiskAnnTest::TestCreateIndex<infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>>() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:69:24
    #9 0x62258230a524 in DiskAnnTest_test1_Test::TestBody() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:88:5
    #10 0x622586cfc168 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #11 0x622586caab41 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #12 0x622586c6f0e5 in testing::Test::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2674:5
    #13 0x622586c70777 in testing::TestInfo::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2853:11
    #14 0x622586c718d5 in testing::TestSuite::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:3012:30
    #15 0x622586c90306 in testing::internal::UnitTestImpl::RunAllTests() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5870:44
    #16 0x622586cfcc88 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #17 0x622586caf206 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #18 0x622586c8f6d9 in testing::UnitTest::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5444:10
    #19 0x622581c4af70 in RUN_ALL_TESTS() /home/huikong/Code/work/infinity/third_party/googletest/googletest/include/gtest/gtest.h:2293:73
    #20 0x622581c4af06 in main /home/huikong/Code/work/infinity/src/unit_test/main.cpp:19:12
    #21 0x70b456c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #22 0x70b456c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
    #23 0x622581b6f644 in _start (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xeb1644) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)

Indirect leak of 1512 byte(s) in 6 object(s) allocated from:
    #0 0x622581c48ab1 in operator new(unsigned long) (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xf8aab1) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)
    #1 0x622581c54a14 in void* std::__1::__libcpp_operator_new[abi:ne180100]<unsigned long>(unsigned long) /usr/lib/llvm-18/include/c++/v1/new:271:10
    #2 0x622581c5499c in std::__1::__libcpp_allocate[abi:ne180100](unsigned long, unsigned long) /usr/lib/llvm-18/include/c++/v1/new:295:10
    #3 0x622581e3312c in std::__1::allocator<float>::allocate[abi:ne180100](unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocator.h:125:32
    #4 0x622581e3302c in std::__1::__allocation_result<std::__1::allocator_traits<std::__1::allocator<float>>::pointer> std::__1::__allocate_at_least[abi:ne180100]<std::__1::allocator<float>>(std::__1::allocator<float>&, unsigned long) /usr/lib/llvm-18/include/c++/v1/__memory/allocate_at_least.h:55:19
    #5 0x622581e328a0 in std::__1::__split_buffer<float, std::__1::allocator<float>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<float>&) /usr/lib/llvm-18/include/c++/v1/__split_buffer:343:25
    #6 0x622581e2b26e in std::__1::vector<float, std::__1::allocator<float>>::reserve(unsigned long) /usr/lib/llvm-18/include/c++/v1/vector:1425:49
    #7 0x62258233bd1b in infinity::InMemQueryScratch@diskann_utils<float>::InMemQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long, unsigned long, bool) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:212:23
    #8 0x622582336b98 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::InitializeQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:203:32
    #9 0x622582336409 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::BuildWithDataPopulated(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:127:13
    #10 0x62258232de0b in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Build(infinity::LocalFileHandle@local_file_handle&, unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:111:9
    #11 0x622582317996 in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildMergedVamanaIndex(infinity::LocalFileHandle@local_file_handle&, infinity::LocalFileHandle@local_file_handle&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:78:23
    #12 0x62258231002c in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildIndex(unsigned int, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:339:13
    #13 0x62258230b648 in void DiskAnnTest::TestCreateIndex<infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>>() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:69:24
    #14 0x62258230a524 in DiskAnnTest_test1_Test::TestBody() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:88:5
    #15 0x622586cfc168 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #16 0x622586caab41 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #17 0x622586c6f0e5 in testing::Test::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2674:5
    #18 0x622586c70777 in testing::TestInfo::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2853:11
    #19 0x622586c718d5 in testing::TestSuite::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:3012:30
    #20 0x622586c90306 in testing::internal::UnitTestImpl::RunAllTests() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5870:44
    #21 0x622586cfcc88 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #22 0x622586caf206 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #23 0x622586c8f6d9 in testing::UnitTest::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5444:10
    #24 0x622581c4af70 in RUN_ALL_TESTS() /home/huikong/Code/work/infinity/third_party/googletest/googletest/include/gtest/gtest.h:2293:73
    #25 0x622581c4af06 in main /home/huikong/Code/work/infinity/src/unit_test/main.cpp:19:12
    #26 0x70b456c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #27 0x70b456c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
    #28 0x622581b6f644 in _start (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xeb1644) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)

Indirect leak of 192 byte(s) in 6 object(s) allocated from:
    #0 0x622581c48ab1 in operator new(unsigned long) (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xf8aab1) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)
    #1 0x62258233bb81 in infinity::InMemQueryScratch@diskann_utils<float>::InMemQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long, unsigned long, bool) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/inner/diskann_utils.cppm:210:34
    #2 0x622582336b98 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::InitializeQueryScratch(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:203:32
    #3 0x622582336409 in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::BuildWithDataPopulated(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:127:13
    #4 0x62258232de0b in infinity::MemVamana@vamana_alg<float, unsigned long, (infinity::MetricType@index_base)2>::Build(infinity::LocalFileHandle@local_file_handle&, unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/vamana_alg.cppm:111:9
    #5 0x622582317996 in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildMergedVamanaIndex(infinity::LocalFileHandle@local_file_handle&, infinity::LocalFileHandle@local_file_handle&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:78:23
    #6 0x62258231002c in infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>::BuildIndex(unsigned int, unsigned int, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>&, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path, std::__1::__fs::filesystem::path) /home/huikong/Code/work/infinity/src/storage/knn_index/knn_diskann/diskann_index_data.cppm:339:13
    #7 0x62258230b648 in void DiskAnnTest::TestCreateIndex<infinity::DiskAnnIndexData@diskann_index_data<float, unsigned long, (infinity::MetricType@index_base)2>>() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:69:24
    #8 0x62258230a524 in DiskAnnTest_test1_Test::TestBody() /home/huikong/Code/work/infinity/src/unit_test/storage/knnindex/knn_diskann/test_build_diskann.cpp:88:5
    #9 0x622586cfc168 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #10 0x622586caab41 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #11 0x622586c6f0e5 in testing::Test::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2674:5
    #12 0x622586c70777 in testing::TestInfo::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2853:11
    #13 0x622586c718d5 in testing::TestSuite::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:3012:30
    #14 0x622586c90306 in testing::internal::UnitTestImpl::RunAllTests() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5870:44
    #15 0x622586cfcc88 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2599:10
    #16 0x622586caf206 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:2635:14
    #17 0x622586c8f6d9 in testing::UnitTest::Run() /home/huikong/Code/work/infinity/third_party/googletest/googletest/src/gtest.cc:5444:10
    #18 0x622581c4af70 in RUN_ALL_TESTS() /home/huikong/Code/work/infinity/third_party/googletest/googletest/include/gtest/gtest.h:2293:73
    #19 0x622581c4af06 in main /home/huikong/Code/work/infinity/src/unit_test/main.cpp:19:12
    #20 0x70b456c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #21 0x70b456c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
    #22 0x622581b6f644 in _start (/home/huikong/Code/work/infinity/build/Debug/src/test_main+0xeb1644) (BuildId: 3e8da96fee0705d5b701ce17c23a108c86634607)

SUMMARY: AddressSanitizer: 304464 byte(s) leaked in 60 allocation(s).

@small-turtle-1 small-turtle-1 added the bug Something isn't working label Oct 8, 2024
JinHai-CN pushed a commit that referenced this issue Oct 11, 2024
### What problem does this PR solve?

Fixes #1995 mentioned memory leak in diskann.

Issue link:#1988

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant