You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each query execute increase memory and never free, it has a memory leak somewhere..
==80461== Thread 1:
==80461== 8 bytes in 1 blocks are definitely lost in loss record 28 of 422
==80461== at 0x4F02312: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so)
==80461== by 0x4FCE907: pthread_condattr_init (in /lib/libthr.so.3)
==80461== by 0x80896E4: posix_event (posix_event.ipp:41)
==80461== by 0x80896E4: conditionally_enabled_event (conditionally_enabled_event.hpp:38)
==80461== by 0x80896E4: scheduler (scheduler.ipp:123)
==80461== by 0x80896E4: io_context (io_context.ipp:39)
==80461== by 0x80896E4: CDatabaseManager::CDatabaseManager() (DBManager.cpp:149)
==80461== by 0x805283C: main (Main.cpp:56)
==80461==
==80461== 8 bytes in 1 blocks are definitely lost in loss record 29 of 422
==80461== at 0x4F02312: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so)
==80461== by 0x4FCE907: pthread_condattr_init (in /lib/libthr.so.3)
==80461== by 0x80896E4: posix_event (posix_event.ipp:41)
==80461== by 0x80896E4: conditionally_enabled_event (conditionally_enabled_event.hpp:38)
==80461== by 0x80896E4: scheduler (scheduler.ipp:123)
==80461== by 0x80896E4: io_context (io_context.ipp:39)
==80461== by 0x80896E4: CDatabaseManager::CDatabaseManager() (DBManager.cpp:149)
==80461== by 0x809740A: Instance (CSingleton.hpp:11)
==80461== by 0x809740A: Start() (Main.cpp:315)
==80461== by 0x8052898: main (Main.cpp:64)
==80461==
==80461== 8 bytes in 1 blocks are definitely lost in loss record 30 of 422
==80461== at 0x4F02312: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so)
==80461== by 0x4FCE907: pthread_condattr_init (in /lib/libthr.so.3)
==80461== by 0x811521A: posix_event (posix_event.ipp:41)
==80461== by 0x811521A: conditionally_enabled_event (conditionally_enabled_event.hpp:38)
==80461== by 0x811521A: boost::asio::detail::scheduler::scheduler(boost::asio::execution_context&, int, bool) (scheduler.ipp:123)
==80461== by 0x811635E: io_context (io_context.ipp:39)
==80461== by 0x811635E: boost::asio::execution_context::service* boost::asio::detail::service_registry::create<amy::mysql_service, boost::asio::io_context>(void*) (mysql_service.ipp:14)
==80461== by 0x8112F9F: boost::asio::detail::service_registry::do_use_service(boost::asio::execution_context::service::key const&, boost::asio::execution_context::service* ()(void), void*) (service_registry.ipp:132)
==80461== by 0x810D30B: use_serviceamy::mysql_service (service_registry.hpp:39)
==80461== by 0x810D30B: use_serviceamy::mysql_service (io_context.hpp:42)
==80461== by 0x810D30B: basic_io_object (basic_io_object.hpp:117)
==80461== by 0x810D30B: basic_connector (basic_connector.hpp:27)
==80461== by 0x810D30B: mysql::MySQL::MySQL(boost::asio::io_context&) (mysql.cpp:14)
==80461== by 0x8089210: construct<mysql::MySQL, boost::asio::io_context&> (aligned_buffer.h:99)
==80461== by 0x8089210: construct<mysql::MySQL, boost::asio::io_context&> (alloc_traits.h:475)
==80461== by 0x8089210: _Sp_counted_ptr_inplaceboost::asio::io_context& (shared_ptr_base.h:526)
==80461== by 0x8089210: __shared_count<mysql::MySQL, std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr_base.h:637)
==80461== by 0x8089210: __shared_ptr<std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr_base.h:1295)
==80461== by 0x8089210: shared_ptr<std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr.h:344)
==80461== by 0x8089210: allocate_shared<mysql::MySQL, std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr.h:691)
==80461== by 0x8089210: make_shared<mysql::MySQL, boost::asio::io_context&> (shared_ptr.h:707)
==80461== by 0x8089210: CDatabaseManager::Connect(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char) (DBManager.cpp:161)
==80461== by 0x8096F8E: Start() (Main.cpp:315)
==80461== by 0x8052898: main (Main.cpp:64)
==80461==
==80461== 8 bytes in 1 blocks are definitely lost in loss record 31 of 422
==80461== at 0x4F02312: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so)
==80461== by 0x4FCE907: pthread_condattr_init (in /lib/libthr.so.3)
==80461== by 0x811521A: posix_event (posix_event.ipp:41)
==80461== by 0x811521A: conditionally_enabled_event (conditionally_enabled_event.hpp:38)
==80461== by 0x811521A: boost::asio::detail::scheduler::scheduler(boost::asio::execution_context&, int, bool) (scheduler.ipp:123)
==80461== by 0x81154FD: resolver_service_base (resolver_service_base.ipp:47)
==80461== by 0x81154FD: boost::asio::execution_context::service* boost::asio::detail::service_registry::create<boost::asio::detail::resolver_serviceboost::asio::ip::tcp, boost::asio::io_context>(void*) (resolver_service.hpp:58)
==80461== by 0x8112F9F: boost::asio::detail::service_registry::do_use_service(boost::asio::execution_context::service::key const&, boost::asio::execution_context::service* ()(void), void*) (service_registry.ipp:132)
==80461== by 0x810D4A5: use_service<boost::asio::detail::resolver_serviceboost::asio::ip::tcp > (service_registry.hpp:39)
==80461== by 0x810D4A5: use_service<boost::asio::detail::resolver_serviceboost::asio::ip::tcp > (io_context.hpp:42)
==80461== by 0x810D4A5: io_object_implboost::asio::io_context (io_object_impl.hpp:86)
==80461== by 0x810D4A5: basic_resolverboost::asio::io_context (basic_resolver.hpp:126)
==80461== by 0x810D4A5: mysql::MySQL::MySQL(boost::asio::io_context&) (mysql.cpp:14)
==80461== by 0x8089210: construct<mysql::MySQL, boost::asio::io_context&> (aligned_buffer.h:99)
==80461== by 0x8089210: construct<mysql::MySQL, boost::asio::io_context&> (alloc_traits.h:475)
==80461== by 0x8089210: _Sp_counted_ptr_inplaceboost::asio::io_context& (shared_ptr_base.h:526)
==80461== by 0x8089210: __shared_count<mysql::MySQL, std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr_base.h:637)
==80461== by 0x8089210: __shared_ptr<std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr_base.h:1295)
==80461== by 0x8089210: shared_ptr<std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr.h:344)
==80461== by 0x8089210: allocate_shared<mysql::MySQL, std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr.h:691)
==80461== by 0x8089210: make_shared<mysql::MySQL, boost::asio::io_context&> (shared_ptr.h:707)
==80461== by 0x8089210: CDatabaseManager::Connect(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char) (DBManager.cpp:161)
==80461== by 0x8096F8E: Start() (Main.cpp:315)
==80461== by 0x8052898: main (Main.cpp:64)
The text was updated successfully, but these errors were encountered:
Each query execute increase memory and never free, it has a memory leak somewhere..
==80461== Thread 1:
==80461== 8 bytes in 1 blocks are definitely lost in loss record 28 of 422
==80461== at 0x4F02312: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so)
==80461== by 0x4FCE907: pthread_condattr_init (in /lib/libthr.so.3)
==80461== by 0x80896E4: posix_event (posix_event.ipp:41)
==80461== by 0x80896E4: conditionally_enabled_event (conditionally_enabled_event.hpp:38)
==80461== by 0x80896E4: scheduler (scheduler.ipp:123)
==80461== by 0x80896E4: io_context (io_context.ipp:39)
==80461== by 0x80896E4: CDatabaseManager::CDatabaseManager() (DBManager.cpp:149)
==80461== by 0x805283C: main (Main.cpp:56)
==80461==
==80461== 8 bytes in 1 blocks are definitely lost in loss record 29 of 422
==80461== at 0x4F02312: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so)
==80461== by 0x4FCE907: pthread_condattr_init (in /lib/libthr.so.3)
==80461== by 0x80896E4: posix_event (posix_event.ipp:41)
==80461== by 0x80896E4: conditionally_enabled_event (conditionally_enabled_event.hpp:38)
==80461== by 0x80896E4: scheduler (scheduler.ipp:123)
==80461== by 0x80896E4: io_context (io_context.ipp:39)
==80461== by 0x80896E4: CDatabaseManager::CDatabaseManager() (DBManager.cpp:149)
==80461== by 0x809740A: Instance (CSingleton.hpp:11)
==80461== by 0x809740A: Start() (Main.cpp:315)
==80461== by 0x8052898: main (Main.cpp:64)
==80461==
==80461== 8 bytes in 1 blocks are definitely lost in loss record 30 of 422
==80461== at 0x4F02312: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so)
==80461== by 0x4FCE907: pthread_condattr_init (in /lib/libthr.so.3)
==80461== by 0x811521A: posix_event (posix_event.ipp:41)
==80461== by 0x811521A: conditionally_enabled_event (conditionally_enabled_event.hpp:38)
==80461== by 0x811521A: boost::asio::detail::scheduler::scheduler(boost::asio::execution_context&, int, bool) (scheduler.ipp:123)
==80461== by 0x811635E: io_context (io_context.ipp:39)
==80461== by 0x811635E: boost::asio::execution_context::service* boost::asio::detail::service_registry::create<amy::mysql_service, boost::asio::io_context>(void*) (mysql_service.ipp:14)
==80461== by 0x8112F9F: boost::asio::detail::service_registry::do_use_service(boost::asio::execution_context::service::key const&, boost::asio::execution_context::service* ()(void), void*) (service_registry.ipp:132)
==80461== by 0x810D30B: use_serviceamy::mysql_service (service_registry.hpp:39)
==80461== by 0x810D30B: use_serviceamy::mysql_service (io_context.hpp:42)
==80461== by 0x810D30B: basic_io_object (basic_io_object.hpp:117)
==80461== by 0x810D30B: basic_connector (basic_connector.hpp:27)
==80461== by 0x810D30B: mysql::MySQL::MySQL(boost::asio::io_context&) (mysql.cpp:14)
==80461== by 0x8089210: construct<mysql::MySQL, boost::asio::io_context&> (aligned_buffer.h:99)
==80461== by 0x8089210: construct<mysql::MySQL, boost::asio::io_context&> (alloc_traits.h:475)
==80461== by 0x8089210: _Sp_counted_ptr_inplaceboost::asio::io_context& (shared_ptr_base.h:526)
==80461== by 0x8089210: __shared_count<mysql::MySQL, std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr_base.h:637)
==80461== by 0x8089210: __shared_ptr<std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr_base.h:1295)
==80461== by 0x8089210: shared_ptr<std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr.h:344)
==80461== by 0x8089210: allocate_shared<mysql::MySQL, std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr.h:691)
==80461== by 0x8089210: make_shared<mysql::MySQL, boost::asio::io_context&> (shared_ptr.h:707)
==80461== by 0x8089210: CDatabaseManager::Connect(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char) (DBManager.cpp:161)
==80461== by 0x8096F8E: Start() (Main.cpp:315)
==80461== by 0x8052898: main (Main.cpp:64)
==80461==
==80461== 8 bytes in 1 blocks are definitely lost in loss record 31 of 422
==80461== at 0x4F02312: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so)
==80461== by 0x4FCE907: pthread_condattr_init (in /lib/libthr.so.3)
==80461== by 0x811521A: posix_event (posix_event.ipp:41)
==80461== by 0x811521A: conditionally_enabled_event (conditionally_enabled_event.hpp:38)
==80461== by 0x811521A: boost::asio::detail::scheduler::scheduler(boost::asio::execution_context&, int, bool) (scheduler.ipp:123)
==80461== by 0x81154FD: resolver_service_base (resolver_service_base.ipp:47)
==80461== by 0x81154FD: boost::asio::execution_context::service* boost::asio::detail::service_registry::create<boost::asio::detail::resolver_serviceboost::asio::ip::tcp, boost::asio::io_context>(void*) (resolver_service.hpp:58)
==80461== by 0x8112F9F: boost::asio::detail::service_registry::do_use_service(boost::asio::execution_context::service::key const&, boost::asio::execution_context::service* ()(void), void*) (service_registry.ipp:132)
==80461== by 0x810D4A5: use_service<boost::asio::detail::resolver_serviceboost::asio::ip::tcp > (service_registry.hpp:39)
==80461== by 0x810D4A5: use_service<boost::asio::detail::resolver_serviceboost::asio::ip::tcp > (io_context.hpp:42)
==80461== by 0x810D4A5: io_object_implboost::asio::io_context (io_object_impl.hpp:86)
==80461== by 0x810D4A5: basic_resolverboost::asio::io_context (basic_resolver.hpp:126)
==80461== by 0x810D4A5: mysql::MySQL::MySQL(boost::asio::io_context&) (mysql.cpp:14)
==80461== by 0x8089210: construct<mysql::MySQL, boost::asio::io_context&> (aligned_buffer.h:99)
==80461== by 0x8089210: construct<mysql::MySQL, boost::asio::io_context&> (alloc_traits.h:475)
==80461== by 0x8089210: _Sp_counted_ptr_inplaceboost::asio::io_context& (shared_ptr_base.h:526)
==80461== by 0x8089210: __shared_count<mysql::MySQL, std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr_base.h:637)
==80461== by 0x8089210: __shared_ptr<std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr_base.h:1295)
==80461== by 0x8089210: shared_ptr<std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr.h:344)
==80461== by 0x8089210: allocate_shared<mysql::MySQL, std::allocatormysql::MySQL, boost::asio::io_context&> (shared_ptr.h:691)
==80461== by 0x8089210: make_shared<mysql::MySQL, boost::asio::io_context&> (shared_ptr.h:707)
==80461== by 0x8089210: CDatabaseManager::Connect(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char) (DBManager.cpp:161)
==80461== by 0x8096F8E: Start() (Main.cpp:315)
==80461== by 0x8052898: main (Main.cpp:64)
The text was updated successfully, but these errors were encountered: