← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 471452] Re: lircd segfaults with commandir driver

 

lircd[2766]: segfault at 8 ip 0806abf0 sp bf88f770 error 4 in
lircd[8048000+29000]

Mythbuntu 
9.10 Karmic
2.6.31-20-generic #57-Ubuntu

lircd 0.8.6

i can reproduce this segfault when configuring both a receive and a
transmit with usb uirt2 (see hardware.conf) . If I configure remote only
(comment out the transmitter) the remote works fine. If i configure
transmitter only (comment out the the remote) the tranmitter works fine.
If both are configured, remote does not work and segfault caused by
following irsend command

--begin

irsend -d /dev/lircd1 SEND_ONCE SAE8000 3

-- end

Have  also reproduce using hd homerun as remote and usbuirt2 as
transmitter,

Have not directly reproduced yet, but believe this may happen in other
combinations. I also have an Hauppage HD PVR which I failed to configure
as a transmitter (hence the purchase of the usb uirt2). This may have
been the cause although I am unsure.

I tried to reverse the order of the transmitter and remote (based on
some online comments) but problem still appear to happen with
transmitter first and remote second or the other way around

I am a newbie to this so apologize in advance if I have omitted details
or if this is a known issue. I may be able to help test resolution
(dependign on complexity of install)

--- begin

	# /etc/lirc/hardware.conf
#

#Chosen IR Transmitter
TRANSMITTER="SAE8000"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER="uirt2_raw"
TRANSMITTER_DEVICE="/dev/ttyUSB0"	
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF="/usr/share/lirc/extras/transmitters/scientificatlanta/general.conf"
TRANSMITTER_LIRCD_ARGS=""
#Chosen Remote Control
REMOTE="Samsung BN59-00599A (HD HomeRun)"
REMOTE_MODULES=""	
REMOTE_DRIVER="uirt2_raw"
REMOTE_DEVICE="/dev/ttyUSB0"
REMOTE_LIRCD_CONF="samsung/lircd.conf.BN59-00599A"
REMOTE_LIRCD_ARGS=""		

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
REMOTE_SOCKET=""
TRANSMITTER_SOCKET=""


-- end

-- 
lircd segfaults with commandir driver
https://bugs.launchpad.net/bugs/471452
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to lirc in ubuntu.

Status in “lirc” package in Ubuntu: Triaged
Status in “lirc” source package in Lucid: Triaged

Bug description:
Binary package hint: lirc

lirc:
  Installed: 0.8.6-0ubuntu2
  Candidate: 0.8.6-0ubuntu2
  Version table:
 *** 0.8.6-0ubuntu2 0
        500 http://archive.linux.duke.edu karmic/universe Packages
        100 /var/lib/dpkg/status



In Ubuntu 9.10, lirc-0.8.6-0ubuntu2, on both 64-bit and 32-bit platforms, lircd segfaults when /etc/lirc/hardware.conf is configured for the commandir driver.

When using the init script /etc/init.d/lirc to start the daemon, the segfault shows up right away in /var/log/syslog

When testing with 
   /usr/sbin/lircd -n --driver=commandir
lircd stays up, but immediately segfaults when I connect to it with irw

I have not been able to test with any other USB receiver hardware, but I've talked to a friend who is using the same version successfully with a hauppauge PVR card.

syslog.1:Nov  1 19:09:59 mythtv kernel: [ 3048.583449] lircd[4443]: segfault at 4641eddc0 ip 0000000000410db4 sp 00007fffdd868930 error 4 in lircd[400000+2b000]

My /etc/lirc/hardware.conf:

--Begin


# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="CommandIR2_RCVR"
REMOTE_MODULES=""
REMOTE_DRIVER="commandir"
REMOTE_DEVICE=""
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="CommandIR2_XMIT"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER="commandir"
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="false"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""


--end