[Pkg-lirc-maint] Bug#872375: lirc: irrecord segfaults when recording a button

Alec Leamas leamas.alec at gmail.com
Sun Feb 11 19:26:04 UTC 2018



On 11/02/18 19:07, James Bottomley wrote:
> I'm getting this same segfault as well.  My old remote fell apart, so I
> was trying to train the IR receiver on a new one (well, the unused VCR
> section of the current TV remote.
> 
> This is what I get:
> 
> Starting program: /usr/bin/irrecord -d /dev/lirc0 -f

[long message cut]
> Press RETURN to continue. 

> Usually you should not create a new config file for devinput
> devices. LIRC is installed with a devinput.lircd.conf file which 
> is built for the current system which works with all remotes 
> supported by the kernel. There might be a need to update 
> this file so it matches the current kernel. For this, use the 
> lirc-make-devinput(1) script.
> 
> Press RETURN to continue.

> Now hold down button "KEY_A".
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000000000 in ?? ()


This means that you are using irrecord with the devinput driver (the
default from /etc/lirc_options.conf) and feeding it data from
/dev/lirc0. This makes no sense, and a crash is not much of a surprise.

As hinted in the message above, you should either use the default driver
and the /dev/lirc0 device OR the devinput driver and a /dev/input device
(in the latter case, the 'auto' device can often be used).

Furthermore, when using the devinput driver irrecord is not really
supported. In case the shipped devinput.lircd.conf does not work, the
script lirc-make-devinput(1!) can create a devibput.lircd.conf which
matches the current kernel. Please refer to the configuration guide [1]

That said, the devinpuut and default drivers could do a better job
verifying the devices before they go ahead and try to process the input.


Cheers!
--alec

[1] http://lirc.org/html/configuration-guide.html



More information about the Pkg-lirc-maint mailing list