[mythtv] lirc_client.c sending empty CODE cmd to LIRC -> segfault

David Kubicek foceni at gmail.com
Tue Feb 9 20:42:30 UTC 2010


Hello,

I was just playing with the optional lircrcd LIRC daemon and it kept 
segfaulting on me. I found the bug in the daemon (latest CVS version), 
but the reason for this is MythTV sending an empty CODE command. Until 
the bug is fixed in either of these two applications, it'll break 
advanced LIRC configurations...

I haven't looked into MythTV, so I have no patch for you, but I'll be 
sending a patch to LIRC people. If you actually want the patch and it 
would be integrated soon (e.i. not in 6 months:)) Well, the command 
packet is actually from lircd, but it really originates in MythTV.

LOG:

lircrcd[3673]: received command: "CODE 01007f0000000000 1e Down 
imon_ultrabay_pad"
...
lircrcd[3673]: received command: "CODE 01007f0000000000 22 Down 
imon_ultrabay_pad"
...
lircrcd[3673]: received command: "CODE "

Segfault in lircrcd (not relevant for you):

#0  0xb764af93 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1  0xb764acd5 in strdup () from /lib/tls/i686/cmov/libc.so.6
#2  0x0804a121 in code_func (fd=-1217294348, message=0x0, arguments=0x0) 
at lircrcd.c:489
#3  0x0804adbd in get_command (argc=2, argv=0xbfe70a04) at lircrcd.c:646
#4  loop (argc=2, argv=0xbfe70a04) at lircrcd.c:737
#5  main (argc=2, argv=0xbfe70a04) at lircrcd.c:1010


-- 
David Kubicek


More information about the mythtv-dev mailing list