• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Nightly segfaults
#1
Today I updated to pilight v7.0-228-g5a40a80. Starting pilight it segfaults, even with pilight -V (segfault after output). I installed pilight-dbg. pilight-daemon -D says

Code:
[Sep 04 14:18:22:336980] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/divide.lua v1.0
[Sep 04 14:18:22:341008] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/modulus.lua v1.0
[Sep 04 14:18:22:344172] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/minus.lua v1.0
[Sep 04 14:18:22:347649] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/or.lua v1.0
[Sep 04 14:18:22:351831] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/and.lua v1.0
[Sep 04 14:18:22:355067] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/multiply.lua v1.0
[Sep 04 14:18:22:357444] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/plus.lua v1.0
[Sep 04 14:18:22:360291] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/le.lua v1.0
[Sep 04 14:18:22:362827] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/ne.lua v1.0
[Sep 04 14:18:22:365434] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/ge.lua v1.0
[Sep 04 14:18:22:367895] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/gt.lua v1.0
[Sep 04 14:18:22:371489] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/lt.lua v1.0
[Sep 04 14:18:22:374177] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/intdivide.lua v1.0
[Sep 04 14:18:22:376570] pilight-daemon: DEBUG: loaded event action /usr/local/pilight/operators/eq.lua v1.0
[Sep 04 14:18:22:383419] pilight-daemon: INFO: version v7.0-228-g5a40a80
[Sep 04 14:18:22:386066] pilight-daemon: DEBUG: ssdp sent search
[Sep 04 14:18:22:489092] pilight-daemon: INFO: no pilight daemon found, daemonizing
Speicherzugriffsfehler    (german for segmentation fault)

But pilight-debug runs fine.

Can anyone help me?
 
Reply
#2
Can confirm segfault here.
 
Reply
#3
I need proper debug output as described in the manual to fix it.
 
Reply
#4
Nothing logged even at log level 5
 
Reply
#5
Use the steps as described in the manual.
 
Reply
#6
Some debug information can be found in the other thread in following posts:

https://forum.pilight.org/Thread-Illegal...5#pid21435
and
https://forum.pilight.org/Thread-Illegal...8#pid21438
 
Reply
#7
@apartmedia:
Thank You a lot, this helped me getting a running system again.

I tried to run pilight-daemon -D with gdb and got after loading the lua-scripts

Code:
[Sep 05 10:19:47:321343] pilight-daemon: INFO: version v7.0-228-g5a40a80
[Sep 05 10:19:47:323150] pilight-daemon: DEBUG: ssdp sent search
[Sep 05 10:19:47:429111] pilight-daemon: INFO: no pilight daemon found, daemonizing
*** Error in `/usr/local/sbin/pilight-daemon': realloc(): invalid next size: 0x00031df8 ***

Program received signal SIGABRT, Aborted.
0xb63edf70 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
Did it again with standard (not pilight-dbg) package:

Code:
Sep 05 10:39:51:663846] pilight-daemon: INFO: version v7.0-228-g5a40a80
[Sep 05 10:39:51:664884] pilight-daemon: NOTICE: already active (pid 2378)

Program received signal SIGSEGV, Segmentation fault.
0xb642fe5c in malloc_consolidate (av=av@entry=0xb64fd4d4 <main_arena>) at malloc.c:4157
4157    malloc.c: Datei oder Verzeichnis nicht gefunden.

and
Code:
(gdb) backtrace
#0  0xb642fe5c in malloc_consolidate (av=av@entry=0xb64fd4d4 <main_arena>) at malloc.c:4157
#1  0xb6431aa0 in _int_malloc (av=av@entry=0xb64fd4d4 <main_arena>, bytes=bytes@entry=1089) at malloc.c:3423
#2  0xb64330bc in _int_realloc (av=av@entry=0xb64fd4d4 <main_arena>, oldp=oldp@entry=0x309d8, oldsize=oldsize@entry=552, nb=nb@entry=1096) at malloc.c:4286
#3  0xb64346f4 in __GI___libc_realloc (Cannot access memory at address 0x1
oldmem=0x309e0, bytes=1088) at malloc.c:3029
#4  0xb6843c18 in ?? () from /usr/local/lib/libpilight.so
Cannot access memory at address 0x1
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Hope I could help.
 
Reply
#8
Should be fixed.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] Triggering generic_switch leads to segfault Ulrich.Arnold 19 1,273 10-23-2019, 09:03 AM
Last Post: Ulrich.Arnold
  ][solved]Segfault when retrieving big chunked http message Niek 21 6,080 11-29-2018, 03:17 PM
Last Post: curlymo
  occasional segfaults in plua_gc_unreg Niek 8 2,135 11-17-2018, 07:14 PM
Last Post: curlymo
  [Solved] config.json not updated Niek 6 1,594 12-31-2017, 03:19 PM
Last Post: curlymo
  [Solved] callback not executing when dns lookup fails Niek 1 717 10-08-2017, 11:44 AM
Last Post: curlymo
  [Solved] Rules switching state based on another device state not working apartmedia 6 2,547 09-27-2017, 01:41 PM
Last Post: apartmedia
  [Solved] connection to main pilight daemon lost TopdRob 20 4,439 09-17-2017, 04:30 PM
Last Post: curlymo
  [Solved] dimmer protocol kaku_dimmer does not react on dimmervalue apartmedia 25 4,271 09-16-2017, 10:29 PM
Last Post: apartmedia
  [Solved] Webgui not working in IE Ulrich.Arnold 7 1,868 09-12-2017, 05:22 PM
Last Post: Ulrich.Arnold
  [Solved] Sunriseset v7 fails after update and gives negative values PPacman 7 1,745 09-06-2017, 06:25 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)