Bug 1175600

Summary: [abrt] lirc: __fdelt_chk(): lircrcd killed by SIGABRT
Product: [Fedora] Fedora Reporter: Michael Chapman <redhat-bugzilla>
Component: lircAssignee: Alec Leamas <leamas.alec>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: bnocera, jarodwilson, leamas.alec, raveit65.sun
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/17e586ea1e370e9d4f8e07e3dc3a4184306cddd5
Whiteboard: abrt_hash:179874d04e772109ac1007acc3af0e3c5f5fbd33
Fixed In Version: 0.9.3-5.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-19 18:55:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status none

Description Michael Chapman 2014-12-18 07:32:36 UTC
Version-Release number of selected component:
lirc-0.9.1a-4.fc21

Additional info:
reporter:       libreport-2.3.0
backtrace_rating: 4
cmdline:        lircrcd /home/mchapman/.lircrc
crash_function: __fdelt_chk
executable:     /usr/bin/lircrcd
kernel:         3.17.6-300.fc21.x86_64
runlevel:       N 5
type:           CCpp
uid:            500

Truncated backtrace:
Thread no. 1 (2 frames)
 #5 __fdelt_chk at fdelt_chk.c:25
 #6 loop at lircrcd.c:642

Comment 1 Michael Chapman 2014-12-18 07:32:40 UTC
Created attachment 970411 [details]
File: backtrace

Comment 2 Michael Chapman 2014-12-18 07:32:41 UTC
Created attachment 970412 [details]
File: cgroup

Comment 3 Michael Chapman 2014-12-18 07:32:42 UTC
Created attachment 970413 [details]
File: core_backtrace

Comment 4 Michael Chapman 2014-12-18 07:32:44 UTC
Created attachment 970414 [details]
File: dso_list

Comment 5 Michael Chapman 2014-12-18 07:32:45 UTC
Created attachment 970415 [details]
File: limits

Comment 6 Michael Chapman 2014-12-18 07:32:48 UTC
Created attachment 970416 [details]
File: maps

Comment 7 Michael Chapman 2014-12-18 07:32:49 UTC
Created attachment 970417 [details]
File: open_fds

Comment 8 Michael Chapman 2014-12-18 07:32:50 UTC
Created attachment 970418 [details]
File: proc_pid_status

Comment 9 Alec Leamas 2015-07-30 16:22:50 UTC
Hi!

Sorry for late reply....

This boils down to a bug  or limitation in the select(2) call: the FD_ macros behaviour is undefined if the file descriptor is > 1024. Since linux supports such descriptors, we have a problem. I have been able to reproduce the same type of crash on lircd.

The correct solution seem to be to use poll(2) instead, which doesn't have this limitation. However, we are now in the process of releasing 0.9.3, and this change is too big to be done before that.

Filed upstream bug https://sourceforge.net/p/lirc/tickets/109/

Comment 10 Fedora Update System 2015-09-07 12:39:40 UTC
lirc-0.9.3-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15270

Comment 11 Fedora Update System 2015-09-07 18:20:16 UTC
lirc-0.9.3-4.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update lirc'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15270

Comment 12 Fedora Update System 2015-09-09 14:24:24 UTC
lirc-0.9.3-5.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15465

Comment 13 Fedora Update System 2015-09-10 05:51:23 UTC
lirc-0.9.3-5.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update lirc'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15465

Comment 14 Fedora Update System 2015-09-19 18:55:12 UTC
lirc-0.9.3-5.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.