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

fix hang up with command 'drop table system.query_log sync' #33293

Merged

Conversation

zhanghuajieHIT
Copy link
Contributor

Changelog category (leave one):

  • Bug Fix (user-visible misbehaviour in official stable or prestable release)

Detailed description / Documentation draft:
Problem phenomenon:
When I use 'drop table system.query_log sync', the client will hangup.
Problem root cause:
When called to dropTableDataTask() in process of drop table, the table.unique() return false. This is because 'table' in Class SystemLog does not free the smart pointer.

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Dec 29, 2021
@KochetovNicolai
Copy link
Member

I don't completely know what logic here should be, however, don't think it is a correct fix.

The idea that we don't delete storage until there is any reference to storage object. And executing select definitely should have one.
As I understand there are two options - drop table in async mode and do not wait for executing selects, or drop table in sync mode and wait.
I would expect that even if you drop with async, you can create table afterwards anyway, even if there is not-yet-destroyed object with the same name.
@tavplubix what do you think?

@zhanghuajieHIT
Copy link
Contributor Author

I don't completely know what logic here should be, however, don't think it is a correct fix.

The idea that we don't delete storage until there is any reference to storage object. And executing select definitely should have one. As I understand there are two options - drop table in async mode and do not wait for executing selects, or drop table in sync mode and wait. I would expect that even if you drop with async, you can create table afterwards anyway, even if there is not-yet-destroyed object with the same name. @tavplubix what do you think?

Normally, the storage will not be deleted until there is any reference to storage object.
But, the 'table' in Class SystemLog is a copy of storage which was initialized in prepareTable function. And, the storage will not be destroyed until a new storage is created. So, if there is no query_log need to be recorded, the table.unique() will always return false.
The table.use_count() will be two, one is 'table' in Class SystemLog, the other one is in tables_marked_dropped.
So, I don't think Class SystemLog should keep storage. If we want to get storage, we can use 'DatabaseCatalog::instance().tryGetTable'

@tavplubix tavplubix added the can be tested Allows running workflows for external contributors label Jan 10, 2022
@tavplubix
Copy link
Member

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Jan 10, 2022

update

✅ Branch has been successfully updated

Copy link
Member

@tavplubix tavplubix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix LGTM, but it would be great to add an integration test

@zhanghuajieHIT
Copy link
Contributor Author

Thanks.
I add one use case, pls review. 3Q

@tavplubix tavplubix merged commit 3b7f8a4 into ClickHouse:master Jan 13, 2022
@zhanghuajieHIT zhanghuajieHIT deleted the hangup_in_drop_query_log_sync branch January 13, 2022 09:54
@Algunenano
Copy link
Member

I'm not sure how or why, but this PR fixed a crash when shutting down CH after a manual ALTER in system.query_log.

Without this fix something like this would cause fatal errors around 50% of the times (beware it's shutting down the server):

SELECT 1;
SELECT 10;
SYSTEM FLUSH LOGS;
show create table system.query_log;
ALTER TABLE system.query_log MODIFY TTL event_date + INTERVAL 100 MINUTE;
show create table system.query_log;
SYSTEM FLUSH LOGS;
ALTER TABLE system.query_log MODIFY TTL event_date + INTERVAL 80 MINUTE;
show create table system.query_log;
ALTER TABLE system.query_log MODIFY TTL event_date + INTERVAL 120 MINUTE;
show create table system.query_log;
SELECT 1;
SELECT 10;
SYSTEM FLUSH LOGS;
SYSTEM SHUTDOWN;

Backtrace in debug mode to get a clearer stack:

2022.07.27 16:03:01.707995 [ 473725 ] {} <Fatal> BaseDaemon: (version 21.13.1.1, build id: EB6905557018C241ED3F281422FED31D9E40D3B7) (from thread 473714) Terminate called for uncaught exception:
2022.07.27 16:03:01.708157 [ 473725 ] {} <Fatal> BaseDaemon: std::exception. Code: 1001, type: std::__1::system_error, e.what() = recursive_mutex lock failed: Invalid argument, Stack trace (when copying this message, always include the lines below):
2022.07.27 16:03:01.708242 [ 473725 ] {} <Fatal> BaseDaemon: 
2022.07.27 16:03:01.708325 [ 473725 ] {} <Fatal> BaseDaemon: 0. ./build_chcmake/./contrib/libcxx/include/exception:133: std::exception::capture() @ 0x15dc5482 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.708410 [ 473725 ] {} <Fatal> BaseDaemon: 1. ./build_chcmake/./contrib/libcxx/include/exception:111: std::exception::exception() @ 0x15dc5450 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.708494 [ 473725 ] {} <Fatal> BaseDaemon: 2. ./build_chcmake/./contrib/libcxx/src/support/runtime/stdexcept_default.ipp:33: std::runtime_error::runtime_error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x2dc9fc7d in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.708598 [ 473725 ] {} <Fatal> BaseDaemon: 3. ./build_chcmake/./contrib/libcxx/src/system_error.cpp:250: std::__1::system_error::system_error(std::__1::error_code, char const*) @ 0x2dca8cc7 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.708692 [ 473725 ] {} <Fatal> BaseDaemon: 4. ./build_chcmake/./contrib/libcxx/src/system_error.cpp:287: std::__1::__throw_system_error(int, char const*) @ 0x2dca92af in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.708785 [ 473725 ] {} <Fatal> BaseDaemon: 5. ./build_chcmake/./contrib/libcxx/src/mutex.cpp:74: std::__1::recursive_mutex::lock() @ 0x2dc9d1b1 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.708878 [ 473725 ] {} <Fatal> BaseDaemon: 6. ./build_chcmake/./contrib/libcxx/include/__mutex_base:91: std::__1::lock_guard<std::__1::recursive_mutex>::lock_guard(std::__1::recursive_mutex&) @ 0x231ef823 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.708969 [ 473725 ] {} <Fatal> BaseDaemon: 7. ./build_chcmake/./src/Access/MemoryAccessStorage.cpp:322: DB::MemoryAccessStorage::subscribeForChangesImpl(StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::function<void (StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::shared_ptr<DB::IAccessEntity const> const&)> const&) const::$_1::operator()() const @ 0x231eecb8 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.709145 [ 473725 ] {} <Fatal> BaseDaemon: 8. ./build_chcmake/./contrib/libcxx/include/type_traits:3676: decltype(std::__1::forward<DB::MemoryAccessStorage::subscribeForChangesImpl(StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::function<void (StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::shared_ptr<DB::IAccessEntity const> const&)> const&) const::$_1&>(fp)()) std::__1::__invoke<DB::MemoryAccessStorage::subscribeForChangesImpl(StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::function<void (StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::shared_ptr<DB::IAccessEntity const> const&)> const&) const::$_1&>(DB::MemoryAccessStorage::subscribeForChangesImpl(StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::function<void (StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::shared_ptr<DB::IAccessEntity const> const&)> const&) const::$_1&) @ 0x231eec3d in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.709316 [ 473725 ] {} <Fatal> BaseDaemon: 9. ./build_chcmake/./contrib/libcxx/include/__functional_base:349: void std::__1::__invoke_void_return_wrapper<void>::__call<DB::MemoryAccessStorage::subscribeForChangesImpl(StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::function<void (StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::shared_ptr<DB::IAccessEntity const> const&)> const&) const::$_1&>(DB::MemoryAccessStorage::subscribeForChangesImpl(StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::function<void (StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::shared_ptr<DB::IAccessEntity const> const&)> const&) const::$_1&) @ 0x231eebfd in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.709454 [ 473725 ] {} <Fatal> BaseDaemon: 10. ./build_chcmake/./contrib/libcxx/include/functional:1608: std::__1::__function::__default_alloc_func<DB::MemoryAccessStorage::subscribeForChangesImpl(StrongTypedef<wide::
2022.07.27 16:03:01.709559 [ 473725 ] {} <Trace> BaseDaemon: Received signal 6
2022.07.27 16:03:01.709971 [ 474161 ] {} <Fatal> BaseDaemon: ########################################
2022.07.27 16:03:01.710118 [ 474161 ] {} <Fatal> BaseDaemon: (version 21.13.1.1, build id: EB6905557018C241ED3F281422FED31D9E40D3B7) (from thread 473714) (no query) Received signal Aborted (6)
2022.07.27 16:03:01.710243 [ 474161 ] {} <Fatal> BaseDaemon: 
2022.07.27 16:03:01.710395 [ 474161 ] {} <Fatal> BaseDaemon: Stack trace: 0x7f857068e36c 0x7f857063e838 0x7f8570628535 0x22fc5d5c 0x2dce1e72 0x2dce1da2 0x15d92e8b 0x230cff0b 0x230cfdc0 0x230cfcab 0x230cfa0a 0x15d98771 0x15d98719 0x22d9be0c 0x239a31b0 0x239e084b 0x239e05aa 0x15d98771 0x15d98719 0x15dfadcc 0x1a593c6b 0x1a593c99 0x1a971a2c 0x1a9717aa 0x15d98771 0x15d98719 0x1a5989ac 0x2390a0a7 0x2391138d 0x23911319 0x2391113d 0x23910f98 0x23910ed5 0x23909d15 0x2392c2d3 0x2392c299 0x2392c25d 0x2392c21d 0x2392bffb 0x15d98771 0x15d98719
2022.07.27 16:03:01.710589 [ 474161 ] {} <Fatal> BaseDaemon: 4. ? @ 0x7f857068e36c in ?
2022.07.27 16:03:01.710695 [ 474161 ] {} <Fatal> BaseDaemon: 5. gsignal @ 0x7f857063e838 in ?
2022.07.27 16:03:01.710795 [ 474161 ] {} <Fatal> BaseDaemon: 6. abort @ 0x7f8570628535 in ?
2022.07.27 16:03:01.783548 [ 474161 ] {} <Fatal> BaseDaemon: 7. ./build_chcmake/./base/daemon/BaseDaemon.cpp:0: terminate_handler() @ 0x22fc5d5c in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.827600 [ 474161 ] {} <Fatal> BaseDaemon: 8. ./build_chcmake/./contrib/libcxxabi/src/cxa_handlers.cpp:59: std::__terminate(void (*)()) @ 0x2dce1e72 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:01.871708 [ 474161 ] {} <Fatal> BaseDaemon: 9. ./build_chcmake/./contrib/libcxxabi/src/cxa_handlers.cpp:89: std::terminate() @ 0x2dce1da2 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:04.111860 [ 474161 ] {} <Fatal> BaseDaemon: 10. ? @ 0x15d92e8b in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:06.329837 [ 474161 ] {} <Fatal> BaseDaemon: 11. ? @ 0x230cff0b in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:06.505268 [ 474161 ] {} <Fatal> BaseDaemon: 12. ./build_chcmake/./src/Access/ContextAccess.h:66: DB::ContextAccess::~ContextAccess() @ 0x230cfdc0 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:06.679656 [ 474161 ] {} <Fatal> BaseDaemon: 13. ./build_chcmake/./contrib/libcxx/include/memory:1397: std::__1::default_delete<DB::ContextAccess>::operator()(DB::ContextAccess*) const @ 0x230cfcab in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:06.857283 [ 474161 ] {} <Fatal> BaseDaemon: 14. ./build_chcmake/./contrib/libcxx/include/memory:2565: std::__1::__shared_ptr_pointer<DB::ContextAccess*, std::__1::shared_ptr<DB::ContextAccess>::__shared_ptr_default_delete<DB::ContextAccess, DB::ContextAccess>, std::__1::allocator<DB::ContextAccess> >::__on_zero_shared() @ 0x230cfa0a in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:06.873406 [ 474161 ] {} <Fatal> BaseDaemon: 15. ./build_chcmake/./contrib/libcxx/include/memory:2476: std::__1::__shared_count::__release_shared() @ 0x15d98771 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:06.889460 [ 474161 ] {} <Fatal> BaseDaemon: 16. ./build_chcmake/./contrib/libcxx/include/memory:2517: std::__1::__shared_weak_count::__release_shared() @ 0x15d98719 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:06.974133 [ 474161 ] {} <Fatal> BaseDaemon: 17. ./build_chcmake/./contrib/libcxx/include/memory:3213: std::__1::shared_ptr<DB::ContextAccess const>::~shared_ptr() @ 0x22d9be0c in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:07.390391 [ 474161 ] {} <Fatal> BaseDaemon: 18. ./build_chcmake/./src/Interpreters/Context.cpp:464: DB::Context::~Context() @ 0x239a31b0 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:07.853884 [ 474161 ] {} <Fatal> BaseDaemon: 19. ./build_chcmake/./contrib/libcxx/include/memory:1397: std::__1::default_delete<DB::Context>::operator()(DB::Context*) const @ 0x239e084b in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:08.323950 [ 474161 ] {} <Fatal> BaseDaemon: 20. ./build_chcmake/./contrib/libcxx/include/memory:2565: std::__1::__shared_ptr_pointer<DB::Context*, std::__1::shared_ptr<DB::Context>::__shared_ptr_default_delete<DB::Context, DB::Context>, std::__1::allocator<DB::Context> >::__on_zero_shared() @ 0x239e05aa in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:08.340223 [ 474161 ] {} <Fatal> BaseDaemon: 21. ./build_chcmake/./contrib/libcxx/include/memory:2476: std::__1::__shared_count::__release_shared() @ 0x15d98771 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:08.356461 [ 474161 ] {} <Fatal> BaseDaemon: 22. ./build_chcmake/./contrib/libcxx/include/memory:2517: std::__1::__shared_weak_count::__release_shared() @ 0x15d98719 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:08.392303 [ 474161 ] {} <Fatal> BaseDaemon: 23. ./build_chcmake/./contrib/libcxx/include/memory:3213: std::__1::shared_ptr<DB::Context const>::~shared_ptr() @ 0x15dfadcc in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:08.926640 [ 474161 ] {} <Fatal> BaseDaemon: 24. ./build_chcmake/./src/Functions/FunctionBinaryArithmetic.h:1887: DB::BinaryArithmeticOverloadResolver<DB::PlusImpl, DB::NamePlus, true, true>::~BinaryArithmeticOverloadResolver() @ 0x1a593c6b in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:09.460188 [ 474161 ] {} <Fatal> BaseDaemon: 25. ./build_chcmake/./src/Functions/FunctionBinaryArithmetic.h:1887: DB::BinaryArithmeticOverloadResolver<DB::PlusImpl, DB::NamePlus, true, true>::~BinaryArithmeticOverloadResolver() @ 0x1a593c99 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:10.430795 [ 474161 ] {} <Fatal> BaseDaemon: 26. ./build_chcmake/./contrib/libcxx/include/memory:1398: std::__1::default_delete<DB::BinaryArithmeticOverloadResolver<DB::PlusImpl, DB::NamePlus, true, true> >::operator()(DB::BinaryArithmeticOverloadResolver<DB::PlusImpl, DB::NamePlus, true, true>*) const @ 0x1a971a2c in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:11.400215 [ 474161 ] {} <Fatal> BaseDaemon: 27. ./build_chcmake/./contrib/libcxx/include/memory:2565: std::__1::__shared_ptr_pointer<DB::BinaryArithmeticOverloadResolver<DB::PlusImpl, DB::NamePlus, true, true>*, std::__1::default_delete<DB::BinaryArithmeticOverloadResolver<DB::PlusImpl, DB::NamePlus, true, true> >, std::__1::allocator<DB::BinaryArithmeticOverloadResolver<DB::PlusImpl, DB::NamePlus, true, true> > >::__on_zero_shared() @ 0x1a9717aa in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:11.419087 [ 474161 ] {} <Fatal> BaseDaemon: 28. ./build_chcmake/./contrib/libcxx/include/memory:2476: std::__1::__shared_count::__release_shared() @ 0x15d98771 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:11.434424 [ 474161 ] {} <Fatal> BaseDaemon: 29. ./build_chcmake/./contrib/libcxx/include/memory:2517: std::__1::__shared_weak_count::__release_shared() @ 0x15d98719 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:11.969685 [ 474161 ] {} <Fatal> BaseDaemon: 30. ./build_chcmake/./contrib/libcxx/include/memory:3213: std::__1::shared_ptr<DB::IFunctionOverloadResolver>::~shared_ptr() @ 0x1a5989ac in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:12.705027 [ 474161 ] {} <Fatal> BaseDaemon: 31. ./build_chcmake/./src/Interpreters/ActionsDAG.h:66: DB::ActionsDAG::Node::~Node() @ 0x2390a0a7 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:13.790133 [ 474161 ] {} <Fatal> BaseDaemon: 32. ./build_chcmake/./contrib/libcxx/include/__memory/base.h:118: void std::__1::destroy_at<DB::ActionsDAG::Node>(DB::ActionsDAG::Node*) @ 0x2391138d in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse



2022.07.27 16:03:14.534413 [ 474161 ] {} <Fatal> BaseDaemon: 33. ./build_chcmake/./contrib/libcxx/include/__memory/allocator_traits.h:551: void std::__1::allocator_traits<std::__1::allocator<std::__1::__list_node<DB::ActionsDAG::Node, void*> > >::__destroy<DB::ActionsDAG::Node>(std::__1::integral_constant<bool, false>, std::__1::allocator<std::__1::__list_node<DB::ActionsDAG::Node, void*> >&, DB::ActionsDAG::Node*) @ 0x23911319 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse

2022.07.27 16:03:15.275875 [ 474161 ] {} <Fatal> BaseDaemon: 34. ./build_chcmake/./contrib/libcxx/include/__memory/allocator_traits.h:487: void std::__1::allocator_traits<std::__1::allocator<std::__1::__list_node<DB::ActionsDAG::Node, void*> > >::destroy<DB::ActionsDAG::Node>(std::__1::allocator<std::__1::__list_node<DB::ActionsDAG::Node, void*> >&, DB::ActionsDAG::Node*) @ 0x2391113d in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:16.016991 [ 474161 ] {} <Fatal> BaseDaemon: 35. ./build_chcmake/./contrib/libcxx/include/list:764: std::__1::__list_imp<DB::ActionsDAG::Node, std::__1::allocator<DB::ActionsDAG::Node> >::clear() @ 0x23910f98 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:16.759259 [ 474161 ] {} <Fatal> BaseDaemon: 36. ./build_chcmake/./contrib/libcxx/include/list:747: std::__1::__list_imp<DB::ActionsDAG::Node, std::__1::allocator<DB::ActionsDAG::Node> >::~__list_imp() @ 0x23910ed5 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:17.502489 [ 474161 ] {} <Fatal> BaseDaemon: 37. ./build_chcmake/./contrib/libcxx/include/list:836: std::__1::list<DB::ActionsDAG::Node, std::__1::allocator<DB::ActionsDAG::Node> >::~list() @ 0x23909d15 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:18.321521 [ 474161 ] {} <Fatal> BaseDaemon: 38. ./build_chcmake/./src/Interpreters/ActionsDAG.h:45: DB::ActionsDAG::~ActionsDAG() @ 0x2392c2d3 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:19.141845 [ 474161 ] {} <Fatal> BaseDaemon: 39. ./build_chcmake/./contrib/libcxx/include/memory:892: std::__1::allocator<DB::ActionsDAG>::destroy(DB::ActionsDAG*) @ 0x2392c299 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:19.966880 [ 474161 ] {} <Fatal> BaseDaemon: 40. ./build_chcmake/./contrib/libcxx/include/__memory/allocator_traits.h:541: void std::__1::allocator_traits<std::__1::allocator<DB::ActionsDAG> >::__destroy<DB::ActionsDAG>(std::__1::integral_constant<bool, true>, std::__1::allocator<DB::ActionsDAG>&, DB::ActionsDAG*) @ 0x2392c25d in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:20.779470 [ 474161 ] {} <Fatal> BaseDaemon: 41. ./build_chcmake/./contrib/libcxx/include/__memory/allocator_traits.h:487: void std::__1::allocator_traits<std::__1::allocator<DB::ActionsDAG> >::destroy<DB::ActionsDAG>(std::__1::allocator<DB::ActionsDAG>&, DB::ActionsDAG*) @ 0x2392c21d in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:21.596139 [ 474161 ] {} <Fatal> BaseDaemon: 42. ./build_chcmake/./contrib/libcxx/include/memory:2611: std::__1::__shared_ptr_emplace<DB::ActionsDAG, std::__1::allocator<DB::ActionsDAG> >::__on_zero_shared() @ 0x2392bffb in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:21.612257 [ 474161 ] {} <Fatal> BaseDaemon: 43. ./build_chcmake/./contrib/libcxx/include/memory:2476: std::__1::__shared_count::__release_shared() @ 0x15d98771 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
2022.07.27 16:03:21.628282 [ 474161 ] {} <Fatal> BaseDaemon: 44. ./build_chcmake/./contrib/libcxx/include/memory:2517: std::__1::__shared_weak_count::__release_shared() @ 0x15d98719 in /mnt/ch/ClickHouse_prod/build_chcmake/programs/clickhouse
....

For sure it affected official builds from 21.9 to 21.12 included.

Similar tickets in #30388 and

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can be tested Allows running workflows for external contributors pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants