I notice sometimes that pilight (dev version) 'crashes' but the daemon still 'runs'.
It happened twice now. One time on 26dec and today 15jan.
Think this information is not enough to tell something about the issue? Guess I need to run 'GNU Debugger' in screen and hope I can catch the bug?
ps afx
service pilight status returned:
pilight.err
After this the service wont start with 'service pilight start' but I can run pilight-daemon -D , so it seems. After a restart it runs as normal.
*EDIT
Trying to use gdb but get some errors:
backtrace:
It happened twice now. One time on 26dec and today 15jan.
Think this information is not enough to tell something about the issue? Guess I need to run 'GNU Debugger' in screen and hope I can catch the bug?
ps afx
Code:
pi@pilight:~ $ ps afx |grep pilight
367 ? Ss 0:02 avahi-daemon: running [pilight.local]
service pilight status returned:
Code:
Jan 15 18:16:51 pilight pilight[565]: *** Error in `/usr/local/sbin/pilight-daemon': double free or corruption (fasttop): 0x75902188 ***
Jan 15 18:16:51 pilight pilight[565]: -- STACKTRACE (13 FRAMES) --
Jan 15 18:16:51 pilight pilight[565]: __default_sa_restorer_v2 ip = 0x76b11180, sp = 0x6bafdf60
Jan 15 18:16:51 pilight pilight[565]: gsignal ip = 0x76b0ff70, sp = 0x6bafe250
Jan 15 18:16:51 pilight pilight[565]: abort ip = 0x76b11324, sp = 0x6bafe258
Jan 15 18:16:51 pilight pilight[565]: __fsetlocking ip = 0x76b4b954, sp = 0x6bafe370
Jan 15 18:16:51 pilight pilight[565]: _IO_str_seekoff ip = 0x76b51b80, sp = 0x6bafe4a8
Jan 15 18:16:51 pilight pilight[565]: _IO_str_seekoff ip = 0x76b52b24, sp = 0x6bafe4d0
Jan 15 18:16:51 pilight pilight[565]: json_delete ip = 0x3f088, sp = 0x6bafe528
Jan 15 18:16:51 pilight pilight[565]: send_queue ip = 0x22b30, sp = 0x6bafe540
Jan 15 18:16:51 pilight pilight[565]: control_device ip = 0x23a88, sp = 0x6bafeda0
Jan 15 18:16:51 pilight pilight[565]: thread ip = 0x88c84, sp = 0x6bafede0
Jan 15 18:16:51 pilight pilight[565]: start_thread ip = 0x76ee4e90, sp = 0x6bafee60
Jan 15 18:16:51 pilight pilight[565]: clone ip = 0x76bb3598, sp = 0x6bafefa0
Code:
[Jan 15 18:16:51:253129] pilight-daemon: -- STACKTRACE (13 FRAMES) --
[Jan 15 18:16:51:257428] pilight-daemon: __default_sa_restorer_v2 ip = 0x76b11180, sp = 0x6bafdf60
[Jan 15 18:16:51:259436] pilight-daemon: gsignal ip = 0x76b0ff70, sp = 0x6bafe250
[Jan 15 18:16:51:261345] pilight-daemon: abort ip = 0x76b11324, sp = 0x6bafe258
[Jan 15 18:16:51:263200] pilight-daemon: __fsetlocking ip = 0x76b4b954, sp = 0x6bafe370
[Jan 15 18:16:51:265140] pilight-daemon: _IO_str_seekoff ip = 0x76b51b80, sp = 0x6bafe4a8
[Jan 15 18:16:51:266985] pilight-daemon: _IO_str_seekoff ip = 0x76b52b24, sp = 0x6bafe4d0
[Jan 15 18:16:51:272747] pilight-daemon: json_delete ip = 0x3f088, sp = 0x6bafe528
[Jan 15 18:16:51:274491] pilight-daemon: send_queue ip = 0x22b30, sp = 0x6bafe540
[Jan 15 18:16:51:276125] pilight-daemon: control_device ip = 0x23a88, sp = 0x6bafeda0
[Jan 15 18:16:51:277680] pilight-daemon: thread ip = 0x88c84, sp = 0x6bafede0
[Jan 15 18:16:51:279725] pilight-daemon: start_thread ip = 0x76ee4e90, sp = 0x6bafee60
[Jan 15 18:16:51:281759] pilight-daemon: clone ip = 0x76bb3598, sp = 0x6bafefa0
After this the service wont start with 'service pilight start' but I can run pilight-daemon -D , so it seems. After a restart it runs as normal.
*EDIT
Trying to use gdb but get some errors:
Code:
root@pilight:~/pilight/build# gdb pilight-daemon
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 pilight-daemon...done.
(gdb) run -D
Starting program: /root/pilight/build/pilight-daemon -D
[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.
0x76d68de8 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb)
backtrace:
Code:
(gdb) backtrace
#0 0x76d68de8 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
#1 0x76d654b4 in OPENSSL_cpuid_setup () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
#2 0x76fdeffc in call_init (l=<optimized out>, argc=2, argv=0x7efff294, env=0x7efff2a0) at dl-init.c:78
#3 0x76fdf0d8 in _dl_init (main_map=0x76fff958, argc=2, argv=0x7efff294, env=0x7efff2a0) at dl-init.c:126
#4 0x76fcfd84 in _dl_start_user () from /lib/ld-linux-armhf.so.3
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) frame 4
#4 0x76fcfd84 in _dl_start_user () from /lib/ld-linux-armhf.so.3
(gdb) frame 3
#3 0x76fdf0d8 in _dl_init (main_map=0x76fff958, argc=2, argv=0x7efff294, env=0x7efff2a0) at dl-init.c:126
126 dl-init.c: No such file or directory.
(gdb) frame 2
#2 0x76fdeffc in call_init (l=<optimized out>, argc=2, argv=0x7efff294, env=0x7efff2a0) at dl-init.c:78
78 in dl-init.c
(gdb) frame 1
#1 0x76d654b4 in OPENSSL_cpuid_setup () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) frame 0
#0 0x76d68de8 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb)