/proc/modules has Null references causing python parsing issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
plainbox-provider-checkbox (Ubuntu) |
Fix Released
|
High
|
Jeff Lane |
Bug Description
EDIT: this originally looked like some sort of regression in the module_resource script of plainbox-
This is a line from 4.15's /proc/modules data:
e1000e 249856 0 - Live 0x (null)
And this is the same module info from 4.13:
e1000e 249856 0 - Live 0x0000000000000000
That null character at the end appears to be causing the script to choke.
For that reason, because /proc/modules has somehow changed to include null references (0xNULL is invalid, where 0x0000000 is parsable), I've added a kernel task to this bug.
Original Summary:
I ran into this issue (and came across some further glitches) while running canonical-
$ /usr/lib/
Traceback (most recent call last):
File "/usr/lib/
sys.
File "/usr/lib/
for module in modules:
File "/usr/lib/
yield get_module(line)
File "/usr/lib/
"offset": int(offset, 16)}
ValueError: invalid literal for int() with base 16: '0x'
result file is attached to the ticket, as well as the console log ...
Related branches
- Sylvain Pineau (community): Approve
-
Diff: 12 lines (+1/-0)1 file modifiedjobs/resource.pxu (+1/-0)
summary: |
- problem plainbox-provider while running canonical-certification-server - on 18.04 / s390x + Problem with plainbox-provider while running canonical-certification- + server on 18.04 / s390x |
description: | updated |
Changed in plainbox-provider-checkbox (Ubuntu): | |
assignee: | nobody → Jeff Lane (bladernr) |
Changed in plainbox-provider-checkbox (Ubuntu): | |
status: | Fix Committed → In Progress |
Changed in plainbox-provider-checkbox (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-z-systems: | |
status: | New → Fix Released |
Outcome: job passed certification: :module plainbox: :uncategorised ------- ------- ------- ------- ------- ------- ------- ------- ------- --- 6gxdhm_ 0.80e53c0441ed7 7c4cf9047854d34 6bc637d09c9c379 47a2f263c82c421 d37b6a/ module_ resource" , line 73, in <module> exit(main( )) 6gxdhm_ 0.80e53c0441ed7 7c4cf9047854d34 6bc637d09c9c379 47a2f263c82c421 d37b6a/ module_ resource" , line 62, in main 6gxdhm_ 0.80e53c0441ed7 7c4cf9047854d34 6bc637d09c9c379 47a2f263c82c421 d37b6a/ module_ resource" , line 57, in get_modules 6gxdhm_ 0.80e53c0441ed7 7c4cf9047854d34 6bc637d09c9c379 47a2f263c82c421 d37b6a/ module_ resource" , line 49, in get_module ------- ------- ------- ------- ------- ------- ------- ------- ------- --- >8 --- ------- -----[ Collect information about dpkg version ]------ ------- ------ certification: :dpkg plainbox: :uncategorised ------- ------- ------- ------- ------- ------- ------- ------- ------- --- ------- ------- ------- ------- ------- ------- ------- ------- ------- --- >8 --- certification: :miscellanea/ submission- resources plainbox: :miscellanea certification: :dkms_info_ json' has failed certification: :dmi' has failed certification: :dmi_attachment ' has failed certification: :module' has failed certification: :raw_devices_ dmi_json' has failed
-------------[ Running job 23 / 113. Estimated time left: unknown ]-------------
------------------[ Collect information about kernel modules ]------------------
ID: com.canonical.
Category: com.canonical.
... 8< -------
Traceback (most recent call last):
File "/tmp/nest-
sys.
File "/tmp/nest-
for module in modules:
File "/tmp/nest-
yield get_module(line)
File "/tmp/nest-
"offset": int(offset, 16)}
ValueError: invalid literal for int() with base 16: '0x'
-------
Outcome: job failed
-------------[ Running job 24 / 113. Estimated time left: unknown ]-------------
-------
ID: com.canonical.
Category: com.canonical.
... 8< -------
version: 1.19.0.5
architecture: s390x
-------
Outcome: job passed
-------------[ Running job 25 / 113. Estimated time left: unknown ]-------------
-------------[ Check that data for a complete result are present ]--------------
ID: com.canonical.
Category: com.canonical.
Job cannot be started because:
- required dependency 'com.canonical.
- required dependency 'com.canonical.
- required dependency 'com.canonical.
- required dependency 'com.canonical.
- required dependency 'com.canonical.
Outcome: job cannot be started