• 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
Bug: double free or corruption in pilight-send
#1
Hey,

with version 8.1.5 i get following errors:

Code:
pi:~# pilight-send -p quigg_gt9000 -i 131519 -u 3 --off -S 127.0.0.1 -P 46125
double free or corruption (fasttop)
Aborted

Tracing back:

Code:
(gdb) backtrace
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x763b7230 in __GI_abort () at abort.c:79
#2  0x7640751c in __libc_message (action=action@entry=do_abort, fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:181
#3  0x7640e044 in malloc_printerr (str=<optimized out>) at malloc.c:5341
#4  0x7640fe60 in _int_free (av=<optimized out>, p=0x418a8, have_lock=0) at malloc.c:4258
#5  0x00011a24 in main (argc=<optimized out>, argv=<optimized out>) at /usr/local/src/pilight-8.1.5/send.c:376

and deeper:

Code:
(gdb) frame 5
#5  0x00011a24 in main (argc=<optimized out>, argv=<optimized out>) at /usr/local/src/pilight-8.1.5/send.c:376
376            json_delete(code);

Are you able to fix that? I can see it only happening when using the quigg_gt9000 protocol...
Because it's failing at the very end, the remote get powered off and on without problems (after fixing the gt9000 for other footers, but that's another thing and is not the source of this problem here!)

Thanks,
Christian
 
Reply
#2
I think it's fixed in the latest lighty.
 
Reply
#3
Hi,

tried the staging branch now, same result:

Code:
pi:~# pilight-send -p quigg_gt9000 -i 131519 -u 3 --off -S 127.0.0.1 -P 42081
double free or corruption (fasttop)
Aborted

Code:
(gdb) backtrace
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x763b3230 in __GI_abort () at abort.c:79
#2  0x7640351c in __libc_message (action=action@entry=do_abort, fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:181
#3  0x7640a044 in malloc_printerr (str=<optimized out>) at malloc.c:5341
#4  0x7640be60 in _int_free (av=<optimized out>, p=0x42070, have_lock=0) at malloc.c:4258
#5  0x00011aec in main ()

But now it's another function which i can't trace back:

Code:
(gdb) frame 5
#5  0x00011aec in main ()
(gdb) frame 4
#4  0x7640be60 in _int_free (av=<optimized out>, p=0x42070, have_lock=0) at malloc.c:4258
4258    malloc.c: No such file or directory.
(gdb) frame 3
#3  0x7640a044 in malloc_printerr (str=<optimized out>) at malloc.c:5341
5341    in malloc.c
(gdb) frame 2
#2  0x7640351c in __libc_message (action=action@entry=do_abort, fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:181
181    ../sysdeps/posix/libc_fatal.c: No such file or directory.
(gdb) frame 1
#1  0x763b3230 in __GI_abort () at abort.c:79
79    abort.c: No such file or directory.

Christian
 
Reply
#4
Can you post the installed version?
Code:
pilight-daemon -V
 
Reply
#5
Sure Smile

Code:
pi:~# pilight-daemon -V
pilight-daemon version 919b8373f9e3188e610093cd565062092be23776
 
Reply
#6
And?
Code:
apt-cache policy pilight | head -n 20
 
Reply
#7
Code:
pi:~# apt-cache policy pilight | head -n 20
pilight:
 Installed: (none)
 Candidate: 8.1.5
 Version table:
    8.1.5 500
       500 hxxp://apt.pilight.org stable/main armhf Packages
    8.1.4 500
       500 hxxp://apt.pilight.org stable/main armhf Packages
    8.1.3 500
       500 hxxp://apt.pilight.org stable/main armhf Packages
    8.1.2 500
       500 hxxp://apt.pilight.org stable/main armhf Packages
    8.1.1 500
       500 hxxp://apt.pilight.org stable/main armhf Packages
    8.1.0 500
       500 hxxp://apt.pilight.org stable/main armhf Packages
    8.0.10 500
       500 hxxp://apt.pilight.org stable/main armhf Packages
    8.0.9 500
       500 hxxp://apt.pilight.org stable/main armhf Packages
 
Reply
#8
It's clearly you haven't installed the latest nightly through the pilight repositories.
 
Reply
#9
True, i compiled myself as i wrote earlier... checked out the latest staging branch from github!
 
Reply
#10
To be sure, can you install using the apt repository.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight-control modify values coolinx 2 78 09-20-2019, 07:24 PM
Last Post: coolinx
  [Fixed] High CPU usage when pilight usb nano disconnects DieterK 1 131 08-13-2019, 05:43 PM
Last Post: curlymo
  pilight Nano USB interface curlymo 228 97,067 07-10-2019, 06:14 PM
Last Post: curlymo
  problems compiling pilight on Odroid C2 WitchDoctor 101 9,708 03-14-2019, 09:01 PM
Last Post: curlymo
  Issue send actions over Socket API in AdHoc network ggtrts 10 777 03-13-2019, 06:32 AM
Last Post: curlymo
  Send pulsestream via API Phunkafizer 19 1,046 02-27-2019, 09:54 PM
Last Post: curlymo
  pilight 8 what chages for custom protocols? polo 11 2,889 02-15-2019, 06:22 PM
Last Post: polo
  pilight-debug shows nothing minhdomanh 3 541 10-18-2018, 07:01 AM
Last Post: felfert
  pilight-send and pilight-daemon DieterK 0 555 06-20-2018, 12:44 AM
Last Post: DieterK
  Lights not switched on or off by rules in pilight 8.1.0 rorie 22 2,485 06-12-2018, 03:56 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)