Re: z-Way Server stops working
Posted: 03 Mar 2017 04:52
Run z-way via gdb. Once it crash, please do "info thr" and "bt"
Code: Select all
GNU gdb (Raspbian 7.7.1+dfsg-5+rpi1) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./z-way-server...(no debugging symbols found)...done.
(gdb) r
Starting program: /opt/z-way-server/z-way-server
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Cannot access memory at address 0x0
Program received signal SIGILL, Illegal instruction.
0x7666dde8 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) c
Continuing.
Z-Way version v2.3.0 from 2017-01-27 20:35:38 +0300 (build 910991fa4621bda7c7978d37cfe96364549f9c13)
Looking for modules in ./modules
Module modhomekit.so loaded
Module modskininstaller.so loaded
Module modhttp.so loaded
Module modsockets.so loaded
Module moddhs.so loaded
Module modiconinstaller.so loaded
Module modnotification2ext.so loaded
Module modenocean.so loaded
Module modzwave.so loaded
Module modcrypto.so loaded
Module modinstaller.so loaded
Module modzbw.so loaded
Module modws.so loaded
Using default configuration file config.xml
Error: 'debug-port' number is out of range. Skipping it.
[New Thread 0x756c1450 (LWP 1269)]
[New Thread 0x74ec1450 (LWP 1270)]
[New Thread 0x74eb1450 (LWP 1271)]
[New Thread 0x74ea1450 (LWP 1272)]
[New Thread 0x74e91450 (LWP 1273)]
[New Thread 0x74e81450 (LWP 1274)]
[New Thread 0x742ff450 (LWP 1275)]
[New Thread 0x738ff450 (LWP 1276)]
Got NULL from _zdata_find(capDH, "level")
Got NULL from _zdata_find(capDH, "prevLevel")
Got NULL from _zdata_find(capDH, "level")
Got NULL from _zdata_find(capDH, "prevLevel")
Got NULL from _zdata_find(capDH, "level")
Got NULL from _zdata_find(capDH, "prevLevel")
Got NULL from _zdata_find(capDH, "level")
Got NULL from _zdata_find(capDH, "prevLevel")
Got NULL from _zdata_find(capDH, "level")
Got NULL from _zdata_find(capDH, "prevLevel")
[New Thread 0x72cff450 (LWP 1277)]
[New Thread 0x720ff450 (LWP 1278)]
[New Thread 0x718ff450 (LWP 1279)]
[New Thread 0x710ff450 (LWP 1741)]
[New Thread 0x706ff450 (LWP 1742)]
[Thread 0x706ff450 (LWP 1742) exited]
[Thread 0x710ff450 (LWP 1741) exited]
[New Thread 0x710ff450 (LWP 1784)]
[New Thread 0x706ff450 (LWP 1785)]
[Thread 0x706ff450 (LWP 1785) exited]
[Thread 0x710ff450 (LWP 1784) exited]
Program received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x718ff450 (LWP 1279)]
0x769882f4 in send () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) info thr
Id Target Id Frame
* 12 Thread 0x718ff450 (LWP 1279) "zway/core" 0x769882f4 in send () at ../sysdeps/unix/syscall-template.S:81
11 Thread 0x720ff450 (LWP 1278) "zway/core" 0x76987cb0 in read () at ../sysdeps/unix/syscall-template.S:81
10 Thread 0x72cff450 (LWP 1277) "zway/timers" 0x76403360 in nanosleep () at ../sysdeps/unix/syscall-template.S:81
9 Thread 0x738ff450 (LWP 1276) "zway/core" 0x7642e964 in select () at ../sysdeps/unix/syscall-template.S:81
8 Thread 0x742ff450 (LWP 1275) "zway/webserver" 0x7642e964 in select () at ../sysdeps/unix/syscall-template.S:81
7 Thread 0x74e81450 (LWP 1274) "zway/core" 0x76987780 in __lll_lock_wait (futex=futex@entry=0x1bc98, private=<optimized out>)
at ../ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c:46
6 Thread 0x74e91450 (LWP 1273) "v8:SweeperThrea" 0x76986a40 in do_futex_wait (isem=isem@entry=0x6475c) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
5 Thread 0x74ea1450 (LWP 1272) "v8:SweeperThrea" 0x76986a40 in do_futex_wait (isem=isem@entry=0x64654) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
4 Thread 0x74eb1450 (LWP 1271) "v8:SweeperThrea" 0x76986a40 in do_futex_wait (isem=isem@entry=0x6454c) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
3 Thread 0x74ec1450 (LWP 1270) "v8:SweeperThrea" 0x76986a40 in do_futex_wait (isem=isem@entry=0x64444) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
2 Thread 0x756c1450 (LWP 1269) "OptimizingCompi" 0x76986a40 in do_futex_wait (isem=isem@entry=0x642fc) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
1 Thread 0x7634b000 (LWP 1266) "z-way-server" 0x76403360 in nanosleep () at ../sysdeps/unix/syscall-template.S:81
(gdb) bt
#0 0x769882f4 in send () at ../sysdeps/unix/syscall-template.S:81
#1 0x762d0a30 in HttpConnection::Write() () from ./modules/modhomekit.so
#2 0x762d1a34 in HttpConnection::SendResponse(unsigned short, std::string, std::string) () from ./modules/modhomekit.so
#3 0x762c21c4 in zwjs::HapConnection::HandleCallback(std::string const&, std::string const&, std::map<std::string, std::string, ci_less, std::allocator<std::pair<std::string const, std::string> > > const&, std::string const&) () from ./modules/modhomekit.so
#4 0x762bd190 in zwjs::HapConnection::HandleRequest(std::string const&, std::string const&, std::map<std::string, std::string, ci_less, std::allocator<std::pair<std::string const, std::string> > > const&, std::string const&) () from ./modules/modhomekit.so
#5 0x762c633c in zwjs::HapServer::CustomPollConnections(std::vector<HttpConnection*, std::allocator<HttpConnection*> > const&) () from ./modules/modhomekit.so
#6 0x762d3a6c in HttpServer::Poll(long) () from ./modules/modhomekit.so
#7 0x762c9d14 in zwjs::HomeKitInstanceContext::ServerFunc(ZRefCountedPointer<zwjs::Thread>) () from ./modules/modhomekit.so
#8 0x76f86510 in zwjs::Thread::ThreadFuncNative(void*) () from ./libs/libzwayjs.so
#9 0x7697fe90 in start_thread (arg=0x718ff450) at pthread_create.c:311
#10 0x76435598 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/nptl/../clone.S:92 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Code: Select all
> sudo systemctl status z-way-server.service
● z-way-server.service - LSB: RaZberry Z-Wave service
Loaded: loaded (/etc/init.d/z-way-server)
Active: active (exited) since So 2017-05-28 21:24:56 CEST; 4 days ago
Process: 2684 ExecStop=/etc/init.d/z-way-server stop (code=exited, status=0/SUCCESS)
Process: 2712 ExecStart=/etc/init.d/z-way-server start (code=exited, status=0/SUCCESS)
Mai 28 21:24:56 raspberrypi systemd[1]: Started LSB: RaZberry Z-Wave service.
Mai 28 21:24:56 raspberrypi z-way-server[2712]: Starting z-way-server: done.
> sudo systemctl start z-way-server.service
> sudo systemctl status z-way-server.service
● z-way-server.service - LSB: RaZberry Z-Wave service
Loaded: loaded (/etc/init.d/z-way-server)
Active: active (exited) since So 2017-05-28 21:24:56 CEST; 4 days ago
Process: 2684 ExecStop=/etc/init.d/z-way-server stop (code=exited, status=0/SUCCESS)
Process: 2712 ExecStart=/etc/init.d/z-way-server start (code=exited, status=0/SUCCESS)
Mai 28 21:24:56 raspberrypi systemd[1]: Started LSB: RaZberry Z-Wave service.
Mai 28 21:24:56 raspberrypi z-way-server[2712]: Starting z-way-server: done.
Jun 02 07:06:58 raspberrypi systemd[1]: Started LSB: RaZberry Z-Wave service.
> sudo systemctl restart z-way-server.service
> sudo systemctl status z-way-server.service
● z-way-server.service - LSB: RaZberry Z-Wave service
Loaded: loaded (/etc/init.d/z-way-server)
Active: active (running) since Fr 2017-06-02 07:08:54 CEST; 1min 29s ago
Process: 28078 ExecStop=/etc/init.d/z-way-server stop (code=exited, status=0/SUCCESS)
Process: 28083 ExecStart=/etc/init.d/z-way-server start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/z-way-server.service
└─28086 z-way-server
Jun 02 07:08:54 raspberrypi z-way-server[28083]: Starting z-way-server: done.
Jun 02 07:08:54 raspberrypi systemd[1]: Started LSB: RaZberry Z-Wave service.
Code: Select all
[2017-06-01 23:57:57.535] [I] [core] Notification: device-info (device-temperature): {"dev":"EN-WZ Temperatur","l":"24 °C"}
[2017-06-01 23:57:57.566] [I] [core] Notification: device-info (device-status): {"dev":"EN-WZ Meßwerte","l":"24 °C"}
[2017-06-01 23:58:09.055] [I] [core] Notification: device-info (device-temperature): {"dev":"EN-WZ Temperatur","l":"23.9 °C"}
[2017-06-01 23:58:09.103] [I] [core] Notification: device-info (device-status): {"dev":"EN-WZ Meßwerte","l":"23.9 °C"}
[2017-06-01 23:58:27.089] [I] [core] Notification: device-info (device-temperature): {"dev":"EN-WZ Temperatur","l":"24 °C"}
[2017-06-01 23:58:27.119] [I] [core] Notification: device-info (device-status): {"dev":"EN-WZ Meßwerte","l":"24 °C"}
[2017-06-01 23:58:32.129] [I] [core] Notification: device-info (device-temperature): {"dev":"EN-WZ Temperatur","l":"23.9 °C"}
[2017-06-01 23:58:32.177] [I] [core] Notification: device-info (device-status): {"dev":"EN-WZ Meßwerte","l":"23.9 °C"}
[2017-06-02 00:00:01.154] [I] [core] ---------- all notifications older than 7 days deleted ----------
[2017-06-02 07:08:55.325] [I] [core] Executing script: /*** Z-Way Home Automation Engine main executable ***************************** ...
[2017-06-02 07:08:55.334] [I] [core] Executing script: // Comon utilities and functions ...
[2017-06-02 07:08:55.341] [I] [core] Executing script: // This script transforms old formats to new ...
[2017-06-02 07:09:32.279] [I] [core] Executing script: /*! EventEmitter2 https://github.com/hij1nx/EventEmitter2 Copyright (c) 2013 hij1nx Licensed under the MIT license.*/ ...
[2017-06-02 07:09:33.290] [I] [core] Executing script: // Underscore.js 1.7.0 http://underscorejs.org (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors ...
[2017-06-02 07:09:33.833] [I] [core] Executing script: /*! Papa Parse v4.1.2 https://github.com/mholt/PapaParse */ ...
[2017-06-02 07:09:33.859] [I] [core] Executing script: /* @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ ...
[2017-06-02 07:09:33.883] [I] [core] Executing script: // BAOS_API_2011_01_29_001 ...
[2017-06-02 07:09:33.884] [I] [core] Executing script: // Converts IntelHex into binary 128 kB file ...
[2017-06-02 07:09:33.885] [I] [core] Executing script: // Public domain version of Base64 encoder/decoder found somewhere in the Internet ...
[2017-06-02 07:09:33.895] [I] [core] Executing script: //--------------------------------------------------------------------- ...