dkms_info fails with exception when parsing modalias
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
High
|
Unassigned |
Bug Description
When I ran dkms_info on my machine, it failed with an exception.
Here is the log:
$ /usr/lib/
[000051ms] Started
[000051ms] Querying dkms database
[000065ms] Looking for packages that provide: /usr/src/
[000112ms] Looking for kernel modules in /var/lib/
[000113ms] Looking at inserted kernel modules
[000113ms] Inspecting module ttm
[000116ms] Looking for modalias objects matching
[000116ms] Inspecting module backport
[000119ms] Inspecting module chash
[000121ms] Inspecting module i915
[000124ms] Looking for modalias objects matching
[000124ms] Looking for modalias files in /sys/devices
Traceback (most recent call last):
File "/usr/lib/
return self._dispatch()
File "/usr/lib/
result = ingredient.
File "/usr/lib/
return self._dispatch(
File "/usr/lib/
retval = command.
File "/usr/lib/
dkms_pkg = DkmsPackage(
File "/usr/lib/
self.
File "/usr/lib/
install_mods[m] = match_patterns(
File "/usr/lib/
hw_modaliases = get_system_
File "/usr/lib/
(modalias_type, modalias_string) = data.split(":", 1)
ValueError: not enough values to unpack (expected 2, got 1)
Then I found some of modalias files are empty. For instance:
$ cat /sys/devices/
I don't know if it's normal or there is bug with the driver. But I think it would be better to have a check before parsing it.
Changed in plainbox-provider-checkbox: | |
importance: | Undecided → High |
Changed in plainbox-provider-checkbox: | |
status: | New → Fix Released |