urfkill crash due to missing RKILL_NFC type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
urfkill (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Work is being done to leverage urfkill for "Flight Mode" support on Ubuntu Touch ( and potentially Desktop in the future ). See the following blueprint for details:
https:/
When the current version of urfkill ( 0.4.0-4 ) is run on Saucy, it will crash due to the fact that urfkill's version of <rfkill.h> doesn't include the new NFC RFKILL type included by the <linux/rfkill.h>. This results in a runtime assertion during creation of urfkill's killswitch devices.
To recreate:
1. Build urfkill for armhf
2. Install on a current touch image
3. Create a urfkill.conf file with key_control=false
4. Start urfkill in the foreground and specify the config file mentioned in the previous step
5. urfkill will segfault in urf-utils.
Note, this bug was reproduced on a Touch system, and as such requires a fix for bug #1218563 ( see linked branch ).
Related branches
Changed in urfkill (Ubuntu): | |
status: | New → Confirmed |
This bug was fixed in the package urfkill - 0.4.0-4ubuntu1
---------------
urfkill (0.4.0-4ubuntu1) trusty; urgency=low
[ Tony Espy ] patches/ 02_fix_ arm_profile_ crash.patch: check for patches/ 03_fix_ nfc_crash. patch: add support for the
* debian/control: create urfkill-dbg package.
* debian/rules: added dh_strip logic for new -dbg package.
* debian/
for the existence of DMI devices before creating an instance
of DmiInfo to prevent a crash.
* debian/
new RFKILL_NFC type to prevent an assertion/crash. (LP: #1218567)
[ Mathieu Trudel-Lapierre ]
* debian/rules: use --with autotools_dev to update config.{sub,guess} on
build so as to fix building on arm64.
-- Mathieu Trudel-Lapierre <email address hidden> Mon, 09 Dec 2013 11:20:16 -0500