-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
ModbusTCPClient::connect() conn-000-addr=192.168.1.27;_running=0
2025-10-03 10:43:29.019 [24138] LOG_DEBUG modbus_tcp connect 192.168.1.27:502 start...
2025-10-03 10:43:29.020 [24138] LOG_INFO modbus_tcp serveraddr is ip format
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
2025-10-03 10:43:29.238 [24140] LOG_DEBUG 192.168.1.27:502: tcp connect suc:
2025-10-03 10:43:29.238 [24140] LOG_INFO 192.168.1.27:502: tcp start rec data
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=1
----------id=1;address=2
---------id=1;value=0
--input.id=1;data_point.size()=1
======================================
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
ModbusTCPClient::connect() conn-000-addr=192.168.1.27;ret=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
ModbusTCPClient::connect() conn-111-addr=192.168.1.27;_process_thread=1
[2025-10-03 10:43:30] ModbusTCPInput::start conn_status: 3;collect_status:2;_running:1;_poll_thread:1
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=1
----------id=1;address=2
---------id=1;value=0
--input.id=1;data_point.size()=1
======================================
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
MQTT connecting -222- to tcp://192.168.1.27:1883 with _connected 0
--------------------------------------
Failed to start output processor
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=1
----------id=1;address=2
---------id=1;value=0
--input.id=1;data_point.size()=1
======================================
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
MQTT connecting -222- to tcp://192.168.1.27:1883 with _connected 0
Failed to start output processor
GatewayManager::start()00: 1
Gateway manager started. Press Ctrl+C or Ctrl+Z to stop.
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=1
[2025-10-03 10:43:32] Initialized upload,logs and download directories
[2025-10-03 10:43:32] Server started on port :8082
----------id=1;address=2
---------id=1;value=0
--input.id=1;data_point.size()=1
======================================
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=1
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
----------id=1;address=2
---------id=1;value=0
--input.id=1;data_point.size()=1
======================================
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
get- pathMoudle: collectconn
collectconn:in
Database opened: ./jcdz-db.db
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=1
----------id=1;address=2
---------id=1;value=0
--input.id=1;data_point.size()=1
======================================
SQL sql=:SELECT CollectConnNO, Name,ConnType,ProtocolType, Path,DnsIP,Port,Timeout,Memo,ConnStatus,ConnTime,CollectStatus,CollectTime,ChanCount,ComName,ComBaudRate,ComParityCheck,ComStopBit,RegDevName,RegDevId,RegMode,RegFactType,RegFactChan,RegFactNO FROM IOT_CollectConn_info;
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
[2025-10-03 10:43:35] GET /api/collectconn - Status: 200 - Remote: 192.168.20.27:61079
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
--------------------------------------
-------data_points.size()=1
ModbusTCPInput::pollData() conn-id=1;dp.id=1;elapsed=0
get- pathMoudle: collectconn
collectconn:in
stop ----: conn
[2025-10-03 10:43:36] ModbusTCPInput::stop conn_status: 0;collect_status:5;_running:1;_poll_thread:1
==24138== Thread 14:
==24138== Conditional jump or move depends on uninitialised value(s)
==24138== at 0x25B4A3: JCNetopTcpclient::Stop() (JCNetopTcpclient.cpp:293)
==24138== by 0x2466FF: ModbusTCPClient::disconnect() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x162DC3: ModbusTCPInput::stop() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x168BF7: GatewayManager::stopInputProcessors(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1B1868: CollectConn::get[abi:cxx11](httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x18F56A: handle_get(httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x2145B0: void std::__invoke_impl<void, void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&>(std::__invoke_other, void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x206BBE: std::enable_if<std::__and_<std::is_void<void>, std::__is_invocable<void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&> >::value, void>::type std::__invoke_r<void, void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&>(void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1F38D2: std::_Function_handler<void (httplib::Request const&, httplib::Response&), void (*)(httplib::Request const&, httplib::Response&)>::_M_invoke(std::_Any_data const&, httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1DF3FA: std::function<void (httplib::Request const&, httplib::Response&)>::operator()(httplib::Request const&, httplib::Response&) const (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1A18B8: httplib::Server::dispatch_request(httplib::Request&, httplib::Response&, std::vector<std::pair<boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >, std::function<void (httplib::Request const&, httplib::Response&)> >, std::allocator<std::pair<boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >, std::function<void (httplib::Request const&, httplib::Response&)> > > > const&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1A15AA: httplib::Server::routing(httplib::Request&, httplib::Response&, httplib::Stream&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== Uninitialised value was created by a heap allocation
==24138== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24138== by 0x24608E: ModbusTCPClient::ModbusTCPClient(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x16249E: ModbusTCPInput::ModbusTCPInput(InputConfig&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x183FC0: void __gnu_cxx::new_allocator<ModbusTCPInput>::construct<ModbusTCPInput, InputConfig&>(ModbusTCPInput*, InputConfig&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x182F5D: void std::allocator_traits<std::allocator<ModbusTCPInput> >::construct<ModbusTCPInput, InputConfig&>(std::allocator<ModbusTCPInput>&, ModbusTCPInput*, InputConfig&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1817A7: std::_Sp_counted_ptr_inplace<ModbusTCPInput, std::allocator<ModbusTCPInput>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<InputConfig&>(std::allocator<ModbusTCPInput>, InputConfig&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x17F945: std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<ModbusTCPInput, std::allocator<ModbusTCPInput>, InputConfig&>(ModbusTCPInput*&, std::_Sp_alloc_shared_tag<std::allocator<ModbusTCPInput> >, InputConfig&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x17DD45: std::__shared_ptr<ModbusTCPInput, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<ModbusTCPInput>, InputConfig&>(std::_Sp_alloc_shared_tag<std::allocator<ModbusTCPInput> >, InputConfig&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x17BA86: std::shared_ptr<ModbusTCPInput>::shared_ptr<std::allocator<ModbusTCPInput>, InputConfig&>(std::_Sp_alloc_shared_tag<std::allocator<ModbusTCPInput> >, InputConfig&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x178230: std::shared_ptr<ModbusTCPInput> std::allocate_shared<ModbusTCPInput, std::allocator<ModbusTCPInput>, InputConfig&>(std::allocator<ModbusTCPInput> const&, InputConfig&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x174553: std::shared_ptr<ModbusTCPInput> std::make_shared<ModbusTCPInput, InputConfig&>(InputConfig&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x169B98: GatewayManager::createProcessors(std::vector<GatewayConfig, std::allocator<GatewayConfig> >&, bool) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138==
==24138== Invalid read of size 8
==24138== at 0x145344: std::vector<GatewayConfig, std::allocator<GatewayConfig> >::size() const (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x174BED: std::vector<GatewayConfig, std::allocator<GatewayConfig> >::vector(std::vector<GatewayConfig, std::allocator<GatewayConfig> > const&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x16A073: GatewayManager::getGateways() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x168C18: GatewayManager::stopInputProcessors(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1B1868: CollectConn::get[abi:cxx11](httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x18F56A: handle_get(httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x2145B0: void std::__invoke_impl<void, void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&>(std::__invoke_other, void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x206BBE: std::enable_if<std::__and_<std::is_void<void>, std::__is_invocable<void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&> >::value, void>::type std::__invoke_r<void, void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&>(void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1F38D2: std::_Function_handler<void (httplib::Request const&, httplib::Response&), void (*)(httplib::Request const&, httplib::Response&)>::_M_invoke(std::_Any_data const&, httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1DF3FA: std::function<void (httplib::Request const&, httplib::Response&)>::operator()(httplib::Request const&, httplib::Response&) const (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1A18B8: httplib::Server::dispatch_request(httplib::Request&, httplib::Response&, std::vector<std::pair<boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >, std::function<void (httplib::Request const&, httplib::Response&)> >, std::allocator<std::pair<boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >, std::function<void (httplib::Request const&, httplib::Response&)> > > > const&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1A15AA: httplib::Server::routing(httplib::Request&, httplib::Response&, httplib::Stream&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== Address 0xa0 is not stack'd, malloc'd or (recently) free'd
==24138==
==24138==
==24138== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==24138== Access not within mapped region at address 0xA0
==24138== at 0x145344: std::vector<GatewayConfig, std::allocator<GatewayConfig> >::size() const (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x174BED: std::vector<GatewayConfig, std::allocator<GatewayConfig> >::vector(std::vector<GatewayConfig, std::allocator<GatewayConfig> > const&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x16A073: GatewayManager::getGateways() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x168C18: GatewayManager::stopInputProcessors(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1B1868: CollectConn::get[abi:cxx11](httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x18F56A: handle_get(httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x2145B0: void std::__invoke_impl<void, void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&>(std::__invoke_other, void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x206BBE: std::enable_if<std::__and_<std::is_void<void>, std::__is_invocable<void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&> >::value, void>::type std::__invoke_r<void, void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&>(void (*&)(httplib::Request const&, httplib::Response&), httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1F38D2: std::_Function_handler<void (httplib::Request const&, httplib::Response&), void (*)(httplib::Request const&, httplib::Response&)>::_M_invoke(std::_Any_data const&, httplib::Request const&, httplib::Response&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1DF3FA: std::function<void (httplib::Request const&, httplib::Response&)>::operator()(httplib::Request const&, httplib::Response&) const (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1A18B8: httplib::Server::dispatch_request(httplib::Request&, httplib::Response&, std::vector<std::pair<boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >, std::function<void (httplib::Request const&, httplib::Response&)> >, std::allocator<std::pair<boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >, std::function<void (httplib::Request const&, httplib::Response&)> > > > const&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1A15AA: httplib::Server::routing(httplib::Request&, httplib::Response&, httplib::Stream&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== If you believe this happened as a result of a stack
==24138== overflow in your program's main thread (unlikely but
==24138== possible), you can try to increase the size of the
==24138== main thread stack using the --main-stacksize= flag.
==24138== The main thread stack size used in this run was 8388608.
==24138==
==24138== HEAP SUMMARY:
==24138== in use at exit: 485,052 bytes in 1,234 blocks
==24138== total heap usage: 3,183 allocs, 1,949 frees, 799,663 bytes allocated
==24138==
==24138== Thread 1:
==24138== 304 bytes in 1 blocks are possibly lost in loss record 403 of 561
==24138== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24138== by 0x40147D9: calloc (rtld-malloc.h:44)
==24138== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==24138== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==24138== by 0x4E657B4: allocate_stack (allocatestack.c:430)
==24138== by 0x4E657B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==24138== by 0x26BC48: zsummer::log4z::ThreadHelper::start() (log4z.cpp:1145)
==24138== by 0x26D5CE: zsummer::log4z::LogerManager::start() (log4z.cpp:1490)
==24138== by 0x268BF0: JCCommuLib::JCCommuLib() (JCCommuLib.cpp:34)
==24138== by 0x268ECB: JCCommuLib::getInstance() (JCCommuLib.cpp:67)
==24138== by 0x19142B: main (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138==
==24138== 304 bytes in 1 blocks are possibly lost in loss record 404 of 561
==24138== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24138== by 0x40147D9: calloc (rtld-malloc.h:44)
==24138== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==24138== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==24138== by 0x4E657B4: allocate_stack (allocatestack.c:430)
==24138== by 0x4E657B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==24138== by 0x4C5E328: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30)
==24138== by 0x2697F3: std::thread::thread<void (JCCommuLib::*)(), JCCommuLib*, void>(void (JCCommuLib::*&&)(), JCCommuLib*&&) (std_thread.h:143)
==24138== by 0x26950A: JCCommuLib::Run() (JCCommuLib.cpp:106)
==24138== by 0x191455: main (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138==
==24138== 304 bytes in 1 blocks are possibly lost in loss record 405 of 561
==24138== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24138== by 0x40147D9: calloc (rtld-malloc.h:44)
==24138== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==24138== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==24138== by 0x4E657B4: allocate_stack (allocatestack.c:430)
==24138== by 0x4E657B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==24138== by 0x4AD526D: Paho_thread_start (in /usr/local/lib/libpaho-mqtt3a.so.1.3.15)
==24138== by 0x4AB8F14: MQTTAsync_connect (in /usr/local/lib/libpaho-mqtt3a.so.1.3.15)
==24138== by 0x24FCAF: MQTTClientWrapper::connect(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x167AB5: MQTTOutput::start() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1683DE: GatewayManager::start() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x191529: main (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138==
==24138== 304 bytes in 1 blocks are possibly lost in loss record 406 of 561
==24138== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24138== by 0x40147D9: calloc (rtld-malloc.h:44)
==24138== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==24138== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==24138== by 0x4E657B4: allocate_stack (allocatestack.c:430)
==24138== by 0x4E657B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==24138== by 0x4AD526D: Paho_thread_start (in /usr/local/lib/libpaho-mqtt3a.so.1.3.15)
==24138== by 0x4AB8F4A: MQTTAsync_connect (in /usr/local/lib/libpaho-mqtt3a.so.1.3.15)
==24138== by 0x24FCAF: MQTTClientWrapper::connect(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x167AB5: MQTTOutput::start() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1683DE: GatewayManager::start() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x191529: main (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138==
==24138== 304 bytes in 1 blocks are possibly lost in loss record 407 of 561
==24138== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24138== by 0x40147D9: calloc (rtld-malloc.h:44)
==24138== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==24138== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==24138== by 0x4E657B4: allocate_stack (allocatestack.c:430)
==24138== by 0x4E657B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==24138== by 0x4C5E328: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30)
==24138== by 0x173E3D: std::thread::thread<void (GatewayManager::*)(), GatewayManager*, void>(void (GatewayManager::*&&)(), GatewayManager*&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1684B0: GatewayManager::start() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x191529: main (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138==
==24138== 608 bytes in 2 blocks are possibly lost in loss record 472 of 561
==24138== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24138== by 0x40147D9: calloc (rtld-malloc.h:44)
==24138== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==24138== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==24138== by 0x4E657B4: allocate_stack (allocatestack.c:430)
==24138== by 0x4E657B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==24138== by 0x4C5E328: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30)
==24138== by 0x17202D: std::thread::thread<void (ModbusTCPInput::*)(), ModbusTCPInput*, void>(void (ModbusTCPInput::*&&)(), ModbusTCPInput*&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x162682: ModbusTCPInput::start() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x168330: GatewayManager::start() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x191529: main (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138==
==24138== 608 bytes in 2 blocks are possibly lost in loss record 473 of 561
==24138== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24138== by 0x40147D9: calloc (rtld-malloc.h:44)
==24138== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==24138== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==24138== by 0x4E657B4: allocate_stack (allocatestack.c:430)
==24138== by 0x4E657B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==24138== by 0x4C5E328: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30)
==24138== by 0x24731D: std::thread::thread<void (ModbusTCPClient::*)(), ModbusTCPClient*, void>(void (ModbusTCPClient::*&&)(), ModbusTCPClient*&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x2464FE: ModbusTCPClient::connect() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1626C9: ModbusTCPInput::start() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x168330: GatewayManager::start() (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x191529: main (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138==
==24138== 1,520 bytes in 5 blocks are possibly lost in loss record 544 of 561
==24138== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24138== by 0x40147D9: calloc (rtld-malloc.h:44)
==24138== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==24138== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==24138== by 0x4E657B4: allocate_stack (allocatestack.c:430)
==24138== by 0x4E657B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==24138== by 0x4C5E328: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30)
==24138== by 0x206F09: std::thread::thread<httplib::ThreadPool::worker, , void>(httplib::ThreadPool::worker&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1F3D40: void __gnu_cxx::new_allocator<std::thread>::construct<std::thread, httplib::ThreadPool::worker>(std::thread*, httplib::ThreadPool::worker&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1E8DAE: void std::allocator_traits<std::allocator<std::thread> >::construct<std::thread, httplib::ThreadPool::worker>(std::allocator<std::thread>&, std::thread*, httplib::ThreadPool::worker&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1E8EC9: void std::vector<std::thread, std::allocator<std::thread> >::_M_realloc_insert<httplib::ThreadPool::worker>(__gnu_cxx::__normal_iterator<std::thread*, std::vector<std::thread, std::allocator<std::thread> > >, httplib::ThreadPool::worker&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1DB9FD: void std::vector<std::thread, std::allocator<std::thread> >::emplace_back<httplib::ThreadPool::worker>(httplib::ThreadPool::worker&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1968F9: httplib::ThreadPool::ThreadPool(unsigned long) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x19DB2D: httplib::Server::Server()::{lambda()#1}::operator()() const (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x208603: httplib::ThreadPool* std::__invoke_impl<httplib::ThreadPool*, httplib::Server::Server()::{lambda()#1}&>(std::__invoke_other, httplib::Server::Server()::{lambda()#1}&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138==
==24138== 3,040 bytes in 10 blocks are possibly lost in loss record 549 of 561
==24138== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24138== by 0x40147D9: calloc (rtld-malloc.h:44)
==24138== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==24138== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==24138== by 0x4E657B4: allocate_stack (allocatestack.c:430)
==24138== by 0x4E657B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==24138== by 0x4C5E328: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30)
==24138== by 0x206F09: std::thread::thread<httplib::ThreadPool::worker, , void>(httplib::ThreadPool::worker&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1F3D40: void __gnu_cxx::new_allocator<std::thread>::construct<std::thread, httplib::ThreadPool::worker>(std::thread*, httplib::ThreadPool::worker&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1E8DAE: void std::allocator_traits<std::allocator<std::thread> >::construct<std::thread, httplib::ThreadPool::worker>(std::allocator<std::thread>&, std::thread*, httplib::ThreadPool::worker&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1DB9B7: void std::vector<std::thread, std::allocator<std::thread> >::emplace_back<httplib::ThreadPool::worker>(httplib::ThreadPool::worker&&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1968F9: httplib::ThreadPool::ThreadPool(unsigned long) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x19DB2D: httplib::Server::Server()::{lambda()#1}::operator()() const (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x208603: httplib::ThreadPool* std::__invoke_impl<httplib::ThreadPool*, httplib::Server::Server()::{lambda()#1}&>(std::__invoke_other, httplib::Server::Server()::{lambda()#1}&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138== by 0x1F6A4D: std::enable_if<std::__and_<std::__not_<std::is_void<httplib::TaskQueue*> >, std::is_convertible<std::__invoke_result<httplib::Server::Server()::{lambda()#1}&>::type, httplib::TaskQueue*> >::value, httplib::TaskQueue*>::type std::__invoke_r<httplib::TaskQueue*, httplib::Server::Server()::{lambda()#1}&>(httplib::Server::Server()::{lambda()#1}&) (in /home/sxp/shui/jcdzarm/webserver/main-new)
==24138==
==24138== LEAK SUMMARY:
==24138== definitely lost: 0 bytes in 0 blocks
==24138== indirectly lost: 0 bytes in 0 blocks
==24138== possibly lost: 7,296 bytes in 24 blocks
==24138== still reachable: 477,756 bytes in 1,210 blocks
==24138== of which reachable via heuristic:
==24138== length64 : 119,744 bytes in 438 blocks
==24138== suppressed: 0 bytes in 0 blocks
==24138== Reachable blocks (those to which a pointer was found) are not shown.
==24138== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==24138==
==24138== For lists of detected and suppressed errors, rerun with: -s
==24138== ERROR SUMMARY: 11 errors from 11 contexts (suppressed: 0 from 0)
Segmentation fault