1: test/sql/storage/read_duckdb/read_duckdb_generated.test WARNING: ThreadSanitizer: data race (pid=19466) Write of size 8 at 0x7248000209a8 by main thread (mutexes: write M0): #0 std::__uniq_ptr_impl<duckdb::Catalog, std::default_delete<duckdb::Catalog>>::reset(duckdb::Catalog*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:203:11 (libduckdb.so+0x287564d) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #1 std::unique_ptr<duckdb::Catalog, std::default_delete<duckdb::Catalog>>::reset(duckdb::Catalog*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:503:7 (libduckdb.so+0x287564d) #2 duckdb::unique_ptr<duckdb::Catalog, std::default_delete<duckdb::Catalog>, true>::reset(duckdb::Catalog*) /home/runner/work/duckdb/duckdb/src/include/duckdb/common/unique_ptr.hpp:54:13 (libduckdb.so+0x287564d) #3 duckdb::AttachedDatabase::Cleanup() /home/runner/work/duckdb/duckdb/src/main/attached_database.cpp:312:10 (libduckdb.so+0x287564d) #4 duckdb::AttachedDatabase::Close(duckdb::DatabaseCloseAction) /home/runner/work/duckdb/duckdb/src/main/attached_database.cpp:307:2 (libduckdb.so+0x287564d) #5 duckdb::AttachedDatabase::InvokeCloseIfLastReference(duckdb::shared_ptr<duckdb::AttachedDatabase, true>) /home/runner/work/duckdb/duckdb/src/main/attached_database.cpp:204:15 (libduckdb.so+0x2875fc8) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #6 duckdb::MetaTransaction::Finalize() /home/runner/work/duckdb/duckdb/src/transaction/meta_transaction.cpp:182:3 (libduckdb.so+0x2ce2c2a) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #7 duckdb::TransactionContext::Rollback(duckdb::optional_ptr<duckdb::ErrorData, true>) /home/runner/work/duckdb/duckdb/src/transaction/transaction_context.cpp:98:15 (libduckdb.so+0x2ce457e) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #8 duckdb::ClientContext::EndQueryInternal(duckdb::ClientContextLock&, bool, bool, duckdb::optional_ptr<duckdb::ErrorData, true>) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:250:18 (libduckdb.so+0x287929b) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #9 duckdb::ClientContext::ExecuteTaskInternal(duckdb::ClientContextLock&, duckdb::BaseQueryResult&, bool) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:639:2 (libduckdb.so+0x28806c0) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #10 duckdb::PendingQueryResult::ExecuteTaskInternal(duckdb::ClientContextLock&) /home/runner/work/duckdb/duckdb/src/main/pending_query_result.cpp:68:18 (libduckdb.so+0x28837ac) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #11 duckdb::PendingQueryResult::ExecuteInternal(duckdb::ClientContextLock&) /home/runner/work/duckdb/duckdb/src/main/pending_query_result.cpp:75:43 (libduckdb.so+0x28837ac) #12 duckdb::ClientContext::ExecutePendingQueryInternal(duckdb::ClientContextLock&, duckdb::PendingQueryResult&) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:1112:15 (libduckdb.so+0x2888412) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #13 duckdb::ClientContext::Query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, duckdb::QueryParameters) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:1005:21 (libduckdb.so+0x2888412) #14 duckdb::Command::ExecuteQuery(duckdb::ExecuteContext&, duckdb::Connection*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long) const /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_command.cpp:191:34 (unittest+0x71131a) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #15 duckdb::Statement::ExecuteInternal(duckdb::ExecuteContext&) const /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_command.cpp:583:16 (unittest+0x718594) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #16 duckdb::Command::Execute(duckdb::ExecuteContext&) const /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_command.cpp:281:3 (unittest+0x712042) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #17 duckdb::SQLLogicTestRunner::ExecuteCommand(duckdb::unique_ptr<duckdb::Command, std::default_delete<duckdb::Command>, true>) /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_test_runner.cpp:88:12 (unittest+0x710da6) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #18 duckdb::SQLLogicTestRunner::ExecuteFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_test_runner.cpp:876:4 (unittest+0x72f348) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #19 void testRunner<false, false>() /home/runner/work/duckdb/duckdb/test/sqlite/test_sqllogictest.cpp:92:10 (unittest+0x745408) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #20 Catch::TestInvokerAsFunction::invoke() const /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:14535:9 (unittest+0x7a0f79) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #21 Catch::TestCase::invoke() const /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:14370:15 (unittest+0x794111) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #22 Catch::RunContext::invokeActiveTestCase() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13136:27 (unittest+0x794111) #23 Catch::RunContext::runCurrentTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13109:17 (unittest+0x790477) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #24 Catch::RunContext::runTest(Catch::TestCase const&) /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:12854:13 (unittest+0x78f019) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #25 Catch::(anonymous namespace)::TestGroup::execute() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13551:45 (unittest+0x799c79) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #26 Catch::Session::runInternal() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13763:39 (unittest+0x799c79) #27 Catch::Session::run() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13719:24 (unittest+0x797d4f) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #28 int Catch::Session::run<char>(int, char const* const*) /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13347:30 (unittest+0x7c1ccf) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #29 main /home/runner/work/duckdb/duckdb/test/unittest.cpp:59:32 (unittest+0x7c1ccf) Previous read of size 8 at 0x7248000209a8 by thread T3: #0 std::__uniq_ptr_impl<duckdb::Catalog, std::default_delete<duckdb::Catalog>>::_M_ptr() const /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:193:51 (libduckdb.so+0x28abf9b) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #1 std::unique_ptr<duckdb::Catalog, std::default_delete<duckdb::Catalog>>::get() const /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:464:21 (libduckdb.so+0x28abf9b) #2 std::unique_ptr<duckdb::Catalog, std::default_delete<duckdb::Catalog>>::operator bool() const /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:481:16 (libduckdb.so+0x28abf9b) #3 duckdb::AttachedDatabase::OnDetach(duckdb::ClientContext&) /home/runner/work/duckdb/duckdb/src/main/attached_database.cpp:262:6 (libduckdb.so+0x28abf9b) #4 duckdb::DatabaseManager::DetachDatabase(duckdb::ClientContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, duckdb::OnEntryNotFound) /home/runner/work/duckdb/duckdb/src/main/database_manager.cpp:215:15 (libduckdb.so+0x28abf9b) #5 duckdb::AttachedDatabaseWrapper::~AttachedDatabaseWrapper() /home/runner/work/duckdb/duckdb/src/function/table/read_duckdb.cpp:192:14 (libduckdb.so+0x1701a8b) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #6 void std::_Destroy<duckdb::AttachedDatabaseWrapper>(duckdb::AttachedDatabaseWrapper*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_construct.h:151:19 (libduckdb.so+0x174da09) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #7 void std::allocator_traits<std::allocator<void>>::destroy<duckdb::AttachedDatabaseWrapper>(std::allocator<void>&, duckdb::AttachedDatabaseWrapper*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/alloc_traits.h:671:4 (libduckdb.so+0x174da09) #8 std::_Sp_counted_ptr_inplace<duckdb::AttachedDatabaseWrapper, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:616:2 (libduckdb.so+0x174da09) #9 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:175:2 (libduckdb.so+0x1703500) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #10 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:361:4 (libduckdb.so+0x1703500) #11 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:1069:11 (libduckdb.so+0x1703500) #12 std::__shared_ptr<duckdb::AttachedDatabaseWrapper, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:1525:31 (libduckdb.so+0x1703500) #13 duckdb::shared_ptr<duckdb::AttachedDatabaseWrapper, true>::~shared_ptr() /home/runner/work/duckdb/duckdb/src/include/duckdb/common/shared_ptr_ipp.hpp:120:24 (libduckdb.so+0x1703500) #14 duckdb::DuckDBReader::~DuckDBReader() /home/runner/work/duckdb/duckdb/src/function/table/read_duckdb.cpp:236:1 (libduckdb.so+0x1703500) #15 void std::_Destroy<duckdb::DuckDBReader>(duckdb::DuckDBReader*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_construct.h:151:19 (libduckdb.so+0x174ddf5) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #16 void std::allocator_traits<std::allocator<void>>::destroy<duckdb::DuckDBReader>(std::allocator<void>&, duckdb::DuckDBReader*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/alloc_traits.h:671:4 (libduckdb.so+0x174ddf5) #17 std::_Sp_counted_ptr_inplace<duckdb::DuckDBReader, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:616:2 (libduckdb.so+0x174ddf5) #18 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:175:2 (libduckdb.so+0x1748bd7) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #19 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:361:4 (libduckdb.so+0x1748bd7) #20 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:1069:11 (libduckdb.so+0x1748bd7) #21 std::__shared_ptr<duckdb::BaseFileReader, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:1525:31 (libduckdb.so+0x1748bd7) #22 duckdb::shared_ptr<duckdb::BaseFileReader, true>::~shared_ptr() /home/runner/work/duckdb/duckdb/src/include/duckdb/common/shared_ptr_ipp.hpp:120:24 (libduckdb.so+0x1748bd7) #23 duckdb::MultiFileReaderData::~MultiFileReaderData() /home/runner/work/duckdb/duckdb/src/include/duckdb/common/multi_file/multi_file_states.hpp:95:8 (libduckdb.so+0x1748bd7) #24 std::default_delete<duckdb::MultiFileReaderData>::operator()(duckdb::MultiFileReaderData*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:93:2 (libduckdb.so+0x1749a8f) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #25 std::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>>::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:398:4 (libduckdb.so+0x1749a8f) #26 void std::_Destroy<duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>>(duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_construct.h:151:19 (libduckdb.so+0x1749a8f) #27 void std::_Destroy_aux<false>::__destroy<duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>*>(duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>*, duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_construct.h:163:6 (libduckdb.so+0x1749a8f) #28 void std::_Destroy<duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>*>(duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>*, duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_construct.h:195:7 (libduckdb.so+0x1749a8f) #29 void std::_Destroy<duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>*, duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>>(duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>*, duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>*, std::allocator<duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>>&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/alloc_traits.h:944:7 (libduckdb.so+0x1749a8f) #30 std::vector<duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>, std::allocator<duckdb::unique_ptr<duckdb::MultiFileReaderData, std::default_delete<duckdb::MultiFileReaderData>, true>>>::~vector() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_vector.h:735:2 (libduckdb.so+0x1749a8f) #31 duckdb::MultiFileGlobalState::~MultiFileGlobalState() /home/runner/work/duckdb/duckdb/src/include/duckdb/common/multi_file/multi_file_states.hpp:135:8 (libduckdb.so+0x1749a8f) #32 duckdb::MultiFileGlobalState::~MultiFileGlobalState() /home/runner/work/duckdb/duckdb/src/include/duckdb/common/multi_file/multi_file_states.hpp:135:8 (libduckdb.so+0x1749ad5) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #33 std::default_delete<duckdb::GlobalTableFunctionState>::operator()(duckdb::GlobalTableFunctionState*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:93:2 (libduckdb.so+0x2673e9d) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #34 std::unique_ptr<duckdb::GlobalTableFunctionState, std::default_delete<duckdb::GlobalTableFunctionState>>::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:398:4 (libduckdb.so+0x2673e9d) #35 duckdb::TableScanGlobalSourceState::~TableScanGlobalSourceState() /home/runner/work/duckdb/duckdb/src/execution/operator/scan/physical_table_scan.cpp:29:7 (libduckdb.so+0x2673e9d) #36 duckdb::TableScanGlobalSourceState::~TableScanGlobalSourceState() /home/runner/work/duckdb/duckdb/src/execution/operator/scan/physical_table_scan.cpp:29:7 (libduckdb.so+0x2674045) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #37 std::default_delete<duckdb::GlobalSourceState>::operator()(duckdb::GlobalSourceState*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:93:2 (libduckdb.so+0x29ae0cb) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #38 std::unique_ptr<duckdb::GlobalSourceState, std::default_delete<duckdb::GlobalSourceState>>::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:398:4 (libduckdb.so+0x29ae0cb) #39 duckdb::Pipeline::~Pipeline() /home/runner/work/duckdb/duckdb/src/include/duckdb/parallel/pipeline.hpp:72:7 (libduckdb.so+0x29ae0cb) #40 void std::_Destroy<duckdb::Pipeline>(duckdb::Pipeline*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_construct.h:151:19 (libduckdb.so+0x29addd9) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #41 void std::allocator_traits<std::allocator<void>>::destroy<duckdb::Pipeline>(std::allocator<void>&, duckdb::Pipeline*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/alloc_traits.h:671:4 (libduckdb.so+0x29addd9) #42 std::_Sp_counted_ptr_inplace<duckdb::Pipeline, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:616:2 (libduckdb.so+0x29addd9) #43 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:175:2 (libduckdb.so+0x18cd78d) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #44 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:361:4 (libduckdb.so+0x18cd78d) #45 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:1069:11 (libduckdb.so+0x18cd78d) #46 std::__shared_ptr<duckdb::Pipeline, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:1525:31 (libduckdb.so+0x18cd78d) #47 duckdb::shared_ptr<duckdb::Pipeline, true>::~shared_ptr() /home/runner/work/duckdb/duckdb/src/include/duckdb/common/shared_ptr_ipp.hpp:120:24 (libduckdb.so+0x18cd78d) #48 duckdb::BasePipelineEvent::~BasePipelineEvent() /home/runner/work/duckdb/duckdb/src/include/duckdb/parallel/base_pipeline_event.hpp:17:7 (libduckdb.so+0x18cd78d) #49 void std::_Destroy<duckdb::PipelineEvent>(duckdb::PipelineEvent*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_construct.h:151:19 (libduckdb.so+0x29b0095) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #50 void std::allocator_traits<std::allocator<void>>::destroy<duckdb::PipelineEvent>(std::allocator<void>&, duckdb::PipelineEvent*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/alloc_traits.h:671:4 (libduckdb.so+0x29b0095) #51 std::_Sp_counted_ptr_inplace<duckdb::PipelineEvent, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:616:2 (libduckdb.so+0x29b0095) #52 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:175:2 (libduckdb.so+0x29a604c) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #53 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:361:4 (libduckdb.so+0x29a604c) #54 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:1069:11 (libduckdb.so+0x29a604c) #55 std::__shared_ptr<duckdb::Event, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:1525:31 (libduckdb.so+0x29a604c) #56 duckdb::shared_ptr<duckdb::Event, true>::~shared_ptr() /home/runner/work/duckdb/duckdb/src/include/duckdb/common/shared_ptr_ipp.hpp:120:24 (libduckdb.so+0x29a604c) #57 duckdb::ExecutorTask::~ExecutorTask() /home/runner/work/duckdb/duckdb/src/parallel/executor_task.cpp:25:1 (libduckdb.so+0x29a604c) #58 duckdb::PipelineTask::~PipelineTask() /home/runner/work/duckdb/duckdb/src/include/duckdb/parallel/pipeline.hpp:27:7 (libduckdb.so+0x29a9b97) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #59 duckdb::PipelineTask::~PipelineTask() /home/runner/work/duckdb/duckdb/src/include/duckdb/parallel/pipeline.hpp:27:7 (libduckdb.so+0x29a9b97) #60 std::default_delete<duckdb::PipelineTask>::operator()(duckdb::PipelineTask*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/unique_ptr.h:93:2 (libduckdb.so+0x29b28a0) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #61 std::_Sp_counted_deleter<duckdb::PipelineTask*, std::default_delete<duckdb::PipelineTask>, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:527:9 (libduckdb.so+0x29b28a0) #62 duckdb::TaskScheduler::ExecuteForever(std::atomic<bool>*) /home/runner/work/duckdb/duckdb/src/parallel/task_scheduler.cpp (libduckdb.so+0x29a4ca4) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #63 duckdb::ThreadExecuteTasks(duckdb::TaskScheduler*, std::atomic<bool>*) /home/runner/work/duckdb/duckdb/src/parallel/task_scheduler.cpp:401:13 (libduckdb.so+0x29a5bde) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #64 void std::__invoke_impl<void, void (*)(duckdb::TaskScheduler*, std::atomic<bool>*), duckdb::TaskScheduler*, std::atomic<bool>*>(std::__invoke_other, void (*&&)(duckdb::TaskScheduler*, std::atomic<bool>*), duckdb::TaskScheduler*&&, std::atomic<bool>*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/invoke.h:61:14 (libduckdb.so+0x29b8997) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #65 std::__invoke_result<void (*)(duckdb::TaskScheduler*, std::atomic<bool>*), duckdb::TaskScheduler*, std::atomic<bool>*>::type std::__invoke<void (*)(duckdb::TaskScheduler*, std::atomic<bool>*), duckdb::TaskScheduler*, std::atomic<bool>*>(void (*&&)(duckdb::TaskScheduler*, std::atomic<bool>*), duckdb::TaskScheduler*&&, std::atomic<bool>*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/invoke.h:96:14 (libduckdb.so+0x29b8997) #66 void std::thread::_Invoker<std::tuple<void (*)(duckdb::TaskScheduler*, std::atomic<bool>*), duckdb::TaskScheduler*, std::atomic<bool>*>>::_M_invoke<0ul, 1ul, 2ul>(std::_Index_tuple<0ul, 1ul, 2ul>) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/std_thread.h:301:13 (libduckdb.so+0x29b8997) #67 std::thread::_Invoker<std::tuple<void (*)(duckdb::TaskScheduler*, std::atomic<bool>*), duckdb::TaskScheduler*, std::atomic<bool>*>>::operator()() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/std_thread.h:308:11 (libduckdb.so+0x29b8997) #68 std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)(duckdb::TaskScheduler*, std::atomic<bool>*), duckdb::TaskScheduler*, std::atomic<bool>*>>>::_M_run() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/std_thread.h:253:13 (libduckdb.so+0x29b8997) #69 <null> <null> (libstdc++.so.6+0xecdb3) (BuildId: ca77dae775ec87540acd7218fa990c40d1c94ab1) Location is heap block of size 352 at 0x724800020880 allocated by main thread: #0 operator new(unsigned long) <null> (unittest+0x157bbb) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #1 std::__new_allocator<std::_Sp_counted_ptr_inplace<duckdb::AttachedDatabase, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>>::allocate(unsigned long, void const*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/new_allocator.h:151:27 (libduckdb.so+0x293e929) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #2 std::allocator_traits<std::allocator<std::_Sp_counted_ptr_inplace<duckdb::AttachedDatabase, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>>>::allocate(std::allocator<std::_Sp_counted_ptr_inplace<duckdb::AttachedDatabase, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>>&, unsigned long) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/alloc_traits.h:478:20 (libduckdb.so+0x293e929) #3 std::__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<duckdb::AttachedDatabase, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>>> std::__allocate_guarded<std::allocator<std::_Sp_counted_ptr_inplace<duckdb::AttachedDatabase, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>>>(std::allocator<std::_Sp_counted_ptr_inplace<duckdb::AttachedDatabase, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>>&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/allocated_ptr.h:98:21 (libduckdb.so+0x293e929) #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<duckdb::AttachedDatabase, std::allocator<void>, duckdb::DatabaseInstance&, duckdb::Catalog&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, duckdb::AttachOptions&>(duckdb::AttachedDatabase*&, std::_Sp_alloc_shared_tag<std::allocator<void>>, duckdb::DatabaseInstance&, duckdb::Catalog&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, duckdb::AttachOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:967:19 (libduckdb.so+0x293e929) #5 std::__shared_ptr<duckdb::AttachedDatabase, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<void>, duckdb::DatabaseInstance&, duckdb::Catalog&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, duckdb::AttachOptions&>(std::_Sp_alloc_shared_tag<std::allocator<void>>, duckdb::DatabaseInstance&, duckdb::Catalog&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, duckdb::AttachOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:1713:14 (libduckdb.so+0x293e929) #6 std::shared_ptr<duckdb::AttachedDatabase>::shared_ptr<std::allocator<void>, duckdb::DatabaseInstance&, duckdb::Catalog&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, duckdb::AttachOptions&>(std::_Sp_alloc_shared_tag<std::allocator<void>>, duckdb::DatabaseInstance&, duckdb::Catalog&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, duckdb::AttachOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr.h:463:4 (libduckdb.so+0x293e929) #7 std::shared_ptr<std::enable_if<!is_array<duckdb::AttachedDatabase>::value, duckdb::AttachedDatabase>::type> std::make_shared<duckdb::AttachedDatabase, duckdb::DatabaseInstance&, duckdb::Catalog&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, duckdb::AttachOptions&>(duckdb::DatabaseInstance&, duckdb::Catalog&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, duckdb::AttachOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr.h:1007:14 (libduckdb.so+0x293e929) #8 duckdb::shared_ptr<duckdb::AttachedDatabase, true> duckdb::make_shared_ptr<duckdb::AttachedDatabase, duckdb::DatabaseInstance&, duckdb::Catalog&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, duckdb::AttachOptions&>(duckdb::DatabaseInstance&, duckdb::Catalog&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, duckdb::AttachOptions&) /home/runner/work/duckdb/duckdb/src/include/duckdb/common/helper.hpp:73:31 (libduckdb.so+0x293e929) #9 duckdb::DatabaseInstance::CreateAttachedDatabase(duckdb::ClientContext&, duckdb::AttachInfo&, duckdb::AttachOptions&) /home/runner/work/duckdb/duckdb/src/main/database.cpp:191:22 (libduckdb.so+0x28a2799) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #10 duckdb::DatabaseManager::AttachDatabase(duckdb::ClientContext&, duckdb::AttachInfo&, duckdb::AttachOptions&) /home/runner/work/duckdb/duckdb/src/main/database_manager.cpp:148:24 (libduckdb.so+0x28a3edb) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #11 duckdb::DuckDBReader::GetAttachedDatabase() /home/runner/work/duckdb/duckdb/src/function/table/read_duckdb.cpp:251:30 (libduckdb.so+0x1702d83) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #12 duckdb::DuckDBReader::DuckDBReader(duckdb::ClientContext&, duckdb::OpenFileInfo, duckdb::DuckDBFileReaderOptions const&) /home/runner/work/duckdb/duckdb/src/function/table/read_duckdb.cpp:198:19 (libduckdb.so+0x17020fa) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #13 void std::_Construct<duckdb::DuckDBReader, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&>(duckdb::DuckDBReader*, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_construct.h:119:25 (libduckdb.so+0x174e51d) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #14 void std::allocator_traits<std::allocator<void>>::construct<duckdb::DuckDBReader, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&>(std::allocator<void>&, duckdb::DuckDBReader*, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/alloc_traits.h:657:4 (libduckdb.so+0x172eadf) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #15 std::_Sp_counted_ptr_inplace<duckdb::DuckDBReader, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&>(std::allocator<void>, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:607:4 (libduckdb.so+0x172eadf) #16 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<duckdb::DuckDBReader, std::allocator<void>, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&>(duckdb::DuckDBReader*&, std::_Sp_alloc_shared_tag<std::allocator<void>>, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:970:6 (libduckdb.so+0x172eadf) #17 std::__shared_ptr<duckdb::DuckDBReader, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<void>, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&>(std::_Sp_alloc_shared_tag<std::allocator<void>>, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr_base.h:1713:14 (libduckdb.so+0x172eadf) #18 std::shared_ptr<duckdb::DuckDBReader>::shared_ptr<std::allocator<void>, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&>(std::_Sp_alloc_shared_tag<std::allocator<void>>, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr.h:463:4 (libduckdb.so+0x172eadf) #19 std::shared_ptr<std::enable_if<!is_array<duckdb::DuckDBReader>::value, duckdb::DuckDBReader>::type> std::make_shared<duckdb::DuckDBReader, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&>(duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/shared_ptr.h:1007:14 (libduckdb.so+0x172eadf) #20 duckdb::shared_ptr<duckdb::DuckDBReader, true> duckdb::make_shared_ptr<duckdb::DuckDBReader, duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&>(duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::DuckDBFileReaderOptions&) /home/runner/work/duckdb/duckdb/src/include/duckdb/common/helper.hpp:73:31 (libduckdb.so+0x172eadf) #21 duckdb::DuckDBMultiFileInfo::CreateReader(duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::BaseFileReaderOptions&, duckdb::MultiFileOptions const&) /home/runner/work/duckdb/duckdb/src/function/table/read_duckdb.cpp:463:9 (libduckdb.so+0x17057c1) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #22 duckdb::MultiFileReader::CreateReader(duckdb::ClientContext&, duckdb::OpenFileInfo const&, duckdb::BaseFileReaderOptions&, duckdb::MultiFileOptions const&, duckdb::MultiFileReaderInterface&) /home/runner/work/duckdb/duckdb/src/common/multi_file/multi_file_reader.cpp:610:19 (libduckdb.so+0x190b15c) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #23 duckdb::MultiFileReader::BindReader(duckdb::ClientContext&, duckdb::vector<duckdb::LogicalType, true, std::allocator<duckdb::LogicalType>>&, duckdb::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, true, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, duckdb::MultiFileList&, duckdb::MultiFileBindData&, duckdb::BaseFileReaderOptions&, duckdb::MultiFileOptions&) /home/runner/work/duckdb/duckdb/src/common/multi_file/multi_file_reader.cpp:569:12 (libduckdb.so+0x190a6d9) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #24 duckdb::DuckDBMultiFileInfo::BindReader(duckdb::ClientContext&, duckdb::vector<duckdb::LogicalType, true, std::allocator<duckdb::LogicalType>>&, duckdb::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, true, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, duckdb::MultiFileBindData&) /home/runner/work/duckdb/duckdb/src/function/table/read_duckdb.cpp:425:35 (libduckdb.so+0x1705321) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #25 duckdb::MultiFileFunction<duckdb::DuckDBMultiFileInfo>::MultiFileBindInternal(duckdb::ClientContext&, duckdb::unique_ptr<duckdb::MultiFileReader, std::default_delete<duckdb::MultiFileReader>, true>, duckdb::shared_ptr<duckdb::MultiFileList, true>, duckdb::vector<duckdb::LogicalType, true, std::allocator<duckdb::LogicalType>>&, duckdb::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, true, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, duckdb::MultiFileOptions, duckdb::unique_ptr<duckdb::BaseFileReaderOptions, std::default_delete<duckdb::BaseFileReaderOptions>, true>, duckdb::unique_ptr<duckdb::MultiFileReaderInterface, std::default_delete<duckdb::MultiFileReaderInterface>, true>) /home/runner/work/duckdb/duckdb/src/include/duckdb/common/multi_file/multi_file_function.hpp:109:14 (libduckdb.so+0x1756391) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #26 duckdb::MultiFileFunction<duckdb::DuckDBMultiFileInfo>::MultiFileBind(duckdb::ClientContext&, duckdb::TableFunctionBindInput&, duckdb::vector<duckdb::LogicalType, true, std::allocator<duckdb::LogicalType>>&, duckdb::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, true, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&) /home/runner/work/duckdb/duckdb/src/include/duckdb/common/multi_file/multi_file_function.hpp:185:10 (libduckdb.so+0x174fc30) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #27 duckdb::Binder::BindTableFunctionInternal(duckdb::TableFunction&, duckdb::TableFunctionRef const&, duckdb::vector<duckdb::Value, true, std::allocator<duckdb::Value>>, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, duckdb::Value, duckdb::CaseInsensitiveStringHashFunction, duckdb::CaseInsensitiveStringEquality, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, duckdb::Value>>>, duckdb::vector<duckdb::LogicalType, true, std::allocator<duckdb::LogicalType>>, duckdb::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, true, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>) /home/runner/work/duckdb/duckdb/src/planner/binder/tableref/bind_table_function.cpp:239:15 (libduckdb.so+0xcee8c4) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #28 duckdb::Binder::Bind(duckdb::TableFunctionRef&) /home/runner/work/duckdb/duckdb/src/planner/binder/tableref/bind_table_function.cpp:462:9 (libduckdb.so+0xcf39ed) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #29 duckdb::Binder::Bind(duckdb::TableRef&) /home/runner/work/duckdb/duckdb/src/planner/binder.cpp:156:12 (libduckdb.so+0xd7e3b3) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #30 duckdb::Binder::BindNode(duckdb::SelectNode&) /home/runner/work/duckdb/duckdb/src/planner/binder/query_node/bind_select_node.cpp:386:20 (libduckdb.so+0xc0fa6e) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #31 duckdb::Binder::BindNode(duckdb::QueryNode&) /home/runner/work/duckdb/duckdb/src/planner/binder/query_node/bind_cte_node.cpp:28:33 (libduckdb.so+0xc1e1cc) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #32 duckdb::Binder::Bind(duckdb::QueryNode&) /home/runner/work/duckdb/duckdb/src/planner/binder.cpp:137:9 (libduckdb.so+0xd7e225) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #33 duckdb::Binder::Bind(duckdb::SelectStatement&) /home/runner/work/duckdb/duckdb/src/planner/binder/statement/bind_select.cpp:11:9 (libduckdb.so+0xc3c7c0) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #34 duckdb::Binder::Bind(duckdb::SQLStatement&) /home/runner/work/duckdb/duckdb/src/planner/binder.cpp:79:10 (libduckdb.so+0xd7de40) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #35 duckdb::Planner::CreatePlan(duckdb::SQLStatement&) /home/runner/work/duckdb/duckdb/src/planner/planner.cpp:45:34 (libduckdb.so+0xd94d59) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #36 duckdb::Planner::CreatePlan(duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>) /home/runner/work/duckdb/duckdb/src/planner/planner.cpp:148:3 (libduckdb.so+0xd96697) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #37 duckdb::ClientContext::CreatePreparedStatementInternal(duckdb::ClientContextLock&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>, duckdb::PendingQueryParameters) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:380:18 (libduckdb.so+0x287c0e0) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #38 duckdb::ClientContext::CreatePreparedStatement(duckdb::ClientContextLock&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>, duckdb::PendingQueryParameters, duckdb::PreparedStatementMode) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:462:9 (libduckdb.so+0x287d172) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #39 duckdb::ClientContext::PendingStatementInternal(duckdb::ClientContextLock&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>, duckdb::PendingQueryParameters const&) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:798:18 (libduckdb.so+0x2883ad0) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #40 duckdb::ClientContext::PendingStatementOrPreparedStatement(duckdb::ClientContextLock&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>, duckdb::shared_ptr<duckdb::PreparedStatementData, true>&, duckdb::PendingQueryParameters const&) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:912:14 (libduckdb.so+0x288731b) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #41 duckdb::ClientContext::PendingStatementOrPreparedStatementInternal(duckdb::ClientContextLock&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>, duckdb::shared_ptr<duckdb::PreparedStatementData, true>&, duckdb::PendingQueryParameters const&) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:885:9 (libduckdb.so+0x2883108) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #42 duckdb::ClientContext::PendingQueryInternal(duckdb::ClientContextLock&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>, duckdb::PendingQueryParameters const&, bool) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:1105:10 (libduckdb.so+0x28849fa) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #43 duckdb::ClientContext::Query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, duckdb::QueryParameters) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:999:24 (libduckdb.so+0x2888342) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #44 duckdb::Command::ExecuteQuery(duckdb::ExecuteContext&, duckdb::Connection*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long) const /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_command.cpp:191:34 (unittest+0x71131a) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #45 duckdb::Statement::ExecuteInternal(duckdb::ExecuteContext&) const /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_command.cpp:583:16 (unittest+0x718594) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #46 duckdb::Command::Execute(duckdb::ExecuteContext&) const /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_command.cpp:281:3 (unittest+0x712042) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #47 duckdb::SQLLogicTestRunner::ExecuteCommand(duckdb::unique_ptr<duckdb::Command, std::default_delete<duckdb::Command>, true>) /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_test_runner.cpp:88:12 (unittest+0x710da6) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #48 duckdb::SQLLogicTestRunner::ExecuteFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_test_runner.cpp:876:4 (unittest+0x72f348) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #49 void testRunner<false, false>() /home/runner/work/duckdb/duckdb/test/sqlite/test_sqllogictest.cpp:92:10 (unittest+0x745408) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #50 Catch::TestInvokerAsFunction::invoke() const /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:14535:9 (unittest+0x7a0f79) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #51 Catch::TestCase::invoke() const /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:14370:15 (unittest+0x794111) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #52 Catch::RunContext::invokeActiveTestCase() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13136:27 (unittest+0x794111) #53 Catch::RunContext::runCurrentTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13109:17 (unittest+0x790477) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #54 Catch::RunContext::runTest(Catch::TestCase const&) /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:12854:13 (unittest+0x78f019) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #55 Catch::(anonymous namespace)::TestGroup::execute() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13551:45 (unittest+0x799c79) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #56 Catch::Session::runInternal() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13763:39 (unittest+0x799c79) #57 Catch::Session::run() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13719:24 (unittest+0x797d4f) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #58 int Catch::Session::run<char>(int, char const* const*) /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13347:30 (unittest+0x7c1ccf) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #59 main /home/runner/work/duckdb/duckdb/test/unittest.cpp:59:32 (unittest+0x7c1ccf) Mutex M0 (0x725400008670) created at: #0 pthread_mutex_lock <null> (unittest+0xda16e) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #1 __gthread_mutex_lock(pthread_mutex_t*) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:762:12 (libduckdb.so+0x2888124) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #2 std::mutex::lock() /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/std_mutex.h:113:17 (libduckdb.so+0x2888124) #3 std::lock_guard<std::mutex>::lock_guard(std::mutex&) /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/std_mutex.h:250:19 (libduckdb.so+0x2888124) #4 duckdb::ClientContextLock::ClientContextLock(std::mutex&) /home/runner/work/duckdb/duckdb/src/include/duckdb/main/client_context.hpp:326:52 (libduckdb.so+0x2888124) #5 duckdb::TemplatedUniqueIf<duckdb::ClientContextLock, true>::templated_unique_single_t duckdb::make_uniq<duckdb::ClientContextLock, std::mutex&>(std::mutex&) /home/runner/work/duckdb/duckdb/src/include/duckdb/common/helper.hpp:65:76 (libduckdb.so+0x2888124) #6 duckdb::ClientContext::LockContext() /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:170:9 (libduckdb.so+0x2888124) #7 duckdb::ClientContext::Query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, duckdb::QueryParameters) /home/runner/work/duckdb/duckdb/src/main/client_context.cpp:971:14 (libduckdb.so+0x2888124) #8 duckdb::Connection::Query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) /home/runner/work/duckdb/duckdb/src/main/connection.cpp:109:25 (libduckdb.so+0x289ae45) (BuildId: 29c35c6ef69ac53e31e0e0db975a6d138a97fa89) #9 duckdb::SQLLogicTestRunner::Reconnect() /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_test_runner.cpp:169:7 (unittest+0x716de6) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #10 duckdb::SQLLogicTestRunner::LoadDatabase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool) /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_test_runner.cpp:154:2 (unittest+0x71c802) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #11 duckdb::SQLLogicTestRunner::ExecuteFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) /home/runner/work/duckdb/duckdb/test/sqlite/sqllogic_test_runner.cpp:752:2 (unittest+0x728056) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #12 void testRunner<false, false>() /home/runner/work/duckdb/duckdb/test/sqlite/test_sqllogictest.cpp:92:10 (unittest+0x745408) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #13 Catch::TestInvokerAsFunction::invoke() const /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:14535:9 (unittest+0x7a0f79) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #14 Catch::TestCase::invoke() const /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:14370:15 (unittest+0x794111) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #15 Catch::RunContext::invokeActiveTestCase() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13136:27 (unittest+0x794111) #16 Catch::RunContext::runCurrentTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13109:17 (unittest+0x790477) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #17 Catch::RunContext::runTest(Catch::TestCase const&) /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:12854:13 (unittest+0x78f019) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #18 Catch::(anonymous namespace)::TestGroup::execute() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13551:45 (unittest+0x799c79) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #19 Catch::Session::runInternal() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13763:39 (unittest+0x799c79) #20 Catch::Session::run() /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13719:24 (unittest+0x797d4f) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #21 int Catch::Session::run<char>(int, char const* const*) /home/runner/work/duckdb/duckdb/test/../third_party/catch/catch.hpp:13347:30 (unittest+0x7c1ccf) (BuildId: 690d4c4738a13dd4dcb7724ffb325199c2d5d6c3) #22 main /home/runner/work/duckdb/duckdb/test/unittest.cpp:59:32 (unittest+0x7c1ccf)
Uh oh!
There was an error while loading.Please reload this page.
Note that I currently kept the checkpointing in the destructor as a last back-up, but I am not sure if we should? As technically that should never happen now - maybe we can instead log an error there? See my
FIXMEinsrc/main/attached_database.cpp.Fixeshttps://github.com/duckdblabs/duckdb-internal/issues/6643