Domoticz (stable) randomly dead today

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
karl8754
Posts: 43
Joined: Thursday 15 October 2015 12:00
Target OS: Linux
Domoticz version: stable
Location: Wales
Contact:

Domoticz (stable) randomly dead today

Post by karl8754 » Saturday 08 December 2018 15:29

My Domoticz install has been working smoothly for years and I've made no changes to the system since updating to the current stable version at the start of October. It crashed some time around 03:00 today and I've been unable to get it start since then.

Version: V4.9701 (stable)
Platform: Ubuntu 16.04/xenial (LXC container)
Hardware: Z.me Z-Wave, Honeywell HGI80, RFXCOM rfxtrx433e


startup log:

Code: Select all

2018-12-08 11:34:49.782  Status: Domoticz V4.9701 (c)2012-2018 GizMoCuz                      
2018-12-08 11:34:49.782  Status: Build Hash: b47a877f, Date: 2018-06-23 15:27:56             
2018-12-08 11:34:49.783  Status: Startup Path: /home/domoticz/domoticz/                      
2018-12-08 11:34:49.787  Sunrise: 08:05:00 SunSet: 16:04:00                                  
2018-12-08 11:34:49.787  Day length: 07:59:00 Sun at south: 12:05:00                         
2018-12-08 11:34:49.787  Civil twilight start: 07:25:00 Civil twilight end: 16:44:00         
2018-12-08 11:34:49.787  Nautical twilight start: 06:43:00 Nautical twilight end: 17:27:00   
2018-12-08 11:34:49.787  Astronomical twilight start: 06:02:00 Astronomical twilight end: 18:07:00
2018-12-08 11:34:49.787  Status: EventSystem: reset all events...                            
2018-12-08 11:34:49.798  Status: PluginSystem: Started, Python version '3.5.2'.              
2018-12-08 11:34:49.799  Active notification Subsystems: gcm (1/13)                          
2018-12-08 11:34:49.799  Status: WebServer(HTTP) started on address: :: with port 8080       
2018-12-08 11:34:49.800  Status: WebServer(SSL) started on address: :: with port 443         
2018-12-08 11:34:49.801  Status: Proxymanager started.                                       
2018-12-08 11:34:49.801  Status: Camera: settings (re)loaded                                 
2018-12-08 11:34:49.801  Starting shared server on: :::6144                                  
2018-12-08 11:34:49.801  Status: TCPServer: shared server started...                         
2018-12-08 11:34:49.802  Status: RxQueue: queue worker started...                            
2018-12-08 11:34:51.802  Status: Kodi: Started                                               
2018-12-08 11:34:51.802  Status: Wunderground: Worker started...                             
2018-12-08 11:34:51.802  Status: (LGTV) Started.                                             
2018-12-08 11:34:51.802  Status: (Battery) Started.                                          
2018-12-08 11:34:51.802  Status: EventSystem: reset all events...
2018-12-08 11:34:49.799  Active notification Subsystems: gcm (1/13)                          
2018-12-08 11:34:49.799  Status: WebServer(HTTP) started on address: :: with port 8080       
2018-12-08 11:34:49.800  Status: WebServer(SSL) started on address: :: with port 443         
2018-12-08 11:34:49.801  Status: Proxymanager started.                                       
2018-12-08 11:34:49.801  Status: Camera: settings (re)loaded                                 
2018-12-08 11:34:49.801  Starting shared server on: :::6144                                  
2018-12-08 11:34:49.801  Status: TCPServer: shared server started...                         
2018-12-08 11:34:49.802  Status: RxQueue: queue worker started...                            
2018-12-08 11:34:51.802  Status: Kodi: Started                                               
2018-12-08 11:34:51.802  Status: Wunderground: Worker started...                             
2018-12-08 11:34:51.802  Status: (LGTV) Started.                                             
2018-12-08 11:34:51.802  Status: (Battery) Started.                                          
2018-12-08 11:34:51.802  Status: EventSystem: reset all events...                            
2018-12-08 11:34:51.803  Status: EventSystem: reset all device statuses...                   
*** buffer overflow detected ***: ./domoticz terminated                                


======= Backtrace: =========                                                                 
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f30b594b7e5]                                    
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f30b59ed11c]                         
/lib/x86_64-linux-gnu/libc.so.6(+0x117120)[0x7f30b59eb120]                                   
/lib/x86_64-linux-gnu/libc.so.6(+0x116689)[0x7f30b59ea689]                                   
/lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7f30b594f6b0]                     
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x139b)[0x7f30b592250b]                         
/lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7f30b59ea714]                         
/lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f30b59ea66d]                          
./domoticz(_ZN4http6server10CWebServer14GetJSonDevicesERN4Json5ValueERKSsS6_S6_S6_S6_S6_bbblS6_S6_+0x2eeb)[0x77b23b] 
./domoticz(_ZN12CEventSystem13UpdateJsonMapERNS_14_tDeviceStatusEm+0x27e)[0x61db8e]          
./domoticz(_ZN12CEventSystem16GetCurrentStatesEv+0x634)[0x62c784]                            
./domoticz(_ZN12CEventSystem16StartEventSystemEv+0x70)[0x62d000]                             
./domoticz(_ZN10MainWorker7Do_WorkEv+0xe9)[0x6831b9]                                         
./domoticz[0xb5c789]                                                                         
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f30b61b26ba]                               
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f30b59db3dd]                                  


======= Memory map: ========                                                                 
00400000-00ed2000 r-xp 00000000 00:28 29221                              /home/domoticz/domoticz/domoticz
010d2000-010dd000 r--p 00ad2000 00:28 29221                              /home/domoticz/domoticz/domoticz
010dd000-010e3000 rw-p 00add000 00:28 29221                              /home/domoticz/domoticz/domoticz
010e3000-010ed000 rw-p 00000000 00:00 0                                                      
01a27000-01bf1000 rw-p 00000000 00:00 0                                  [heap]              
7f3096ffe000-7f3096fff000 ---p 00000000 00:00 0                                              
7f3096fff000-7f30977ff000 rw-p 00000000 00:00 0                                              
7f30977ff000-7f3097800000 ---p 00000000 00:00 0                                              
7f3097800000-7f3098000000 rw-p 00000000 00:00 0                                              
7f3098000000-7f309807f000 rw-p 00000000 00:00 0                                              
7f309807f000-7f309c000000 ---p 00000000 00:00 0                                              
7f309c000000-7f309c021000 rw-p 00000000 00:00 0                                              
7f309c021000-7f30a0000000 ---p 00000000 00:00 0         
<snip>
System log:

Code: Select all

2018-12-08 12:08:52.007  Status: RxQueue: queue worker started...
2018-12-08 12:08:54.008  Status: Kodi: Started
2018-12-08 12:08:54.008  Status: Wunderground: Worker started...
2018-12-08 12:08:54.008  Status: (LGTV) Started.
2018-12-08 12:08:54.008  Status: (Battery) Started.
2018-12-08 12:08:54.008  Status: EventSystem: reset all events...
2018-12-08 12:08:54.008  Status: EventSystem: reset all device statuses...
2018-12-08 12:08:54.037  Error: Domoticz received fatal signal 6 !...
2018-12-08 12:08:54.038  Error:   /home/domoticz/domoticz/domoticz() [0x609fe8]
2018-12-08 12:08:54.038  Error:   /home/domoticz/domoticz/domoticz(_Z14signal_handleri+0x52) [0x60a0a2]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f291bf5e390]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38) [0x7f291b6ab428]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f291b6ad02a]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(+0x777ea) [0x7f291b6ed7ea]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c) [0x7f291b78f11c]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(+0x117120) [0x7f291b78d120]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(+0x116689) [0x7f291b78c689]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80) [0x7f291b6f16b0]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x139b) [0x7f291b6c450b]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84) [0x7f291b78c714]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d) [0x7f291b78c66d]
2018-12-08 12:08:54.038  Error:   /home/domoticz/domoticz/domoticz(_ZN4http6server10CWebServer14GetJSonDevicesERN4Json5ValueERKSsS6_S6_S6_S6_S6_bbblS6_S6_+0x2eeb) [0x77b23b]
2018-12-08 12:08:54.038  Error:   /home/domoticz/domoticz/domoticz(_ZN12CEventSystem13UpdateJsonMapERNS_14_tDeviceStatusEm+0x27e) [0x61db8e]
2018-12-08 12:08:54.038  Error:   /home/domoticz/domoticz/domoticz(_ZN12CEventSystem16GetCurrentStatesEv+0x634) [0x62c784]
2018-12-08 12:08:54.038  Error:   /home/domoticz/domoticz/domoticz(_ZN12CEventSystem16StartEventSystemEv+0x70) [0x62d000]
2018-12-08 12:08:54.038  Error:   /home/domoticz/domoticz/domoticz(_ZN10MainWorker7Do_WorkEv+0xe9) [0x6831b9]
2018-12-08 12:08:54.038  Error:   /home/domoticz/domoticz/domoticz() [0xb5c789]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7f291bf546ba]
2018-12-08 12:08:54.038  Error:   /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f291b77d3dd]
Logs are showing buffer overflow and 'fatal signal 6', used valgrind as per this post, which gives this:

Code: Select all

==1875== Memcheck, a memory error detector
==1875== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==1875== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==1875== Command: ./domoticz -log domoticz_01.log
==1875== Parent PID: 422
==1875== 
--1875-- WARNING: Serious error when reading debug info
--1875-- When reading debug info from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0:
--1875-- Ignoring non-Dwarf2/3/4 block in .debug_info
--1875-- WARNING: Serious error when reading debug info
--1875-- When reading debug info from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0:
--1875-- Last block truncated in .debug_info; ignoring
--1875-- WARNING: Serious error when reading debug info
--1875-- When reading debug info from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0:
--1875-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
==1875== 
==1875== Process terminating with default action of signal 6 (SIGABRT)
==1875==    at 0x64DE428: raise (raise.c:54)
==1875==    by 0x64E0029: abort (abort.c:89)
==1875==    by 0x65207E9: __libc_message (libc_fatal.c:175)
==1875==    by 0x65C215B: __fortify_fail (fortify_fail.c:37)
==1875==    by 0x65C015F: __chk_fail (chk_fail.c:28)
==1875==    by 0x65BF6C8: _IO_str_chk_overflow (vsprintf_chk.c:31)
==1875==    by 0x65246AF: _IO_default_xsputn (genops.c:455)
==1875==    by 0x64F750A: vfprintf (vfprintf.c:1632)
==1875==    by 0x65BF753: __vsprintf_chk (vsprintf_chk.c:82)
==1875==    by 0x65BF6AC: __sprintf_chk (sprintf_chk.c:31)
==1875==    by 0x77B23A: http::server::CWebServer::GetJSonDevices(Json::Value&, std::string const&, std::string const&, std::string const&, std::string const&, std::string const&, std::string const&, bool, bool, bool, long, std::string const&, std::string const&) (in /home/domoticz/domoticz/domoticz)
==1875==    by 0x61DB8D: CEventSystem::UpdateJsonMap(CEventSystem::_tDeviceStatus&, unsigned long) (in /home/domoticz/domoticz/domoticz)
==1875== 
==1875== HEAP SUMMARY:
==1875==     in use at exit: 3,170,293 bytes in 17,349 blocks
==1875==   total heap usage: 181,657 allocs, 164,308 frees, 17,133,455 bytes allocated
==1875== 
==1875== LEAK SUMMARY:
==1875==    definitely lost: 32 bytes in 2 blocks
==1875==    indirectly lost: 0 bytes in 0 blocks
==1875==      possibly lost: 280,696 bytes in 281 blocks
==1875==    still reachable: 2,889,565 bytes in 17,066 blocks
==1875==                       of which reachable via heuristic:
==1875==                         stdstring          : 324,679 bytes in 4,607 blocks
==1875==                         length64           : 232,352 bytes in 1,110 blocks
==1875==         suppressed: 0 bytes in 0 blocks
==1875== Rerun with --leak-check=full to see details of leaked memory
==1875== 
==1875== For counts of detected and suppressed errors, rerun with: -v
==1875== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 209 from 27)

Not really sure where to go from here.
Any help / ideas for getting this sorted would be much appreciated!

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests