Activity log for bug #1761341

Date Who What changed Old value New value Message
2018-04-05 00:27:08 lan1967 bug added bug
2018-04-05 00:30:40 Apport retracing service tags amd64 apport-crash bionic need-duplicate-check amd64 apport-crash bionic
2018-04-05 00:30:41 Apport retracing service lsb (Ubuntu): importance Undecided Medium
2018-04-05 00:30:42 Apport retracing service bug added subscriber Crash bug triagers for Ubuntu packages
2022-09-13 11:06:50 Ioanna Alifieraki lsb (Ubuntu): assignee Ioanna Alifieraki (joalif)
2022-09-13 11:06:56 Ioanna Alifieraki bug added subscriber Ioanna Alifieraki
2022-09-13 11:06:59 Ioanna Alifieraki lsb (Ubuntu): status New Confirmed
2022-09-13 11:07:29 Ioanna Alifieraki nominated for series Ubuntu Bionic
2022-09-13 11:07:29 Ioanna Alifieraki bug task added lsb (Ubuntu Bionic)
2022-09-13 11:07:29 Ioanna Alifieraki nominated for series Ubuntu Focal
2022-09-13 11:07:29 Ioanna Alifieraki bug task added lsb (Ubuntu Focal)
2022-09-13 11:07:29 Ioanna Alifieraki nominated for series Ubuntu Jammy
2022-09-13 11:07:29 Ioanna Alifieraki bug task added lsb (Ubuntu Jammy)
2022-09-13 11:07:40 Ioanna Alifieraki lsb (Ubuntu Bionic): assignee Ioanna Alifieraki (joalif)
2022-09-13 11:07:43 Ioanna Alifieraki lsb (Ubuntu Focal): assignee Ioanna Alifieraki (joalif)
2022-09-13 11:07:45 Ioanna Alifieraki lsb (Ubuntu Jammy): assignee Ioanna Alifieraki (joalif)
2022-09-13 11:07:50 Ioanna Alifieraki lsb (Ubuntu Bionic): status New Confirmed
2022-09-13 11:07:53 Ioanna Alifieraki lsb (Ubuntu Focal): status New Confirmed
2022-09-13 11:07:56 Ioanna Alifieraki lsb (Ubuntu Jammy): status New Confirmed
2022-09-16 12:52:16 Ioanna Alifieraki description satana@satana:~$ lsb_release LSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch satana@satana:~$ snap list Name Version Rev Tracking Developer Notes core 16-2.32.1 4327 stable canonical core satana@satana:~$ ProblemType: Crash DistroRelease: Ubuntu 18.04 Package: lsb-release 9.20170808ubuntu1 [modified: usr/share/pyshared/lsb_release.py] ProcVersionSignature: Ubuntu 4.15.0-14.15-generic 4.15.15 Uname: Linux 4.15.0-14-generic x86_64 ApportVersion: 2.20.9-0ubuntu2 Architecture: amd64 Date: Wed Mar 28 15:36:11 2018 ExecutablePath: /usr/bin/lsb_release InstallationDate: Installed on 2016-09-15 (566 days ago) InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2) InterpreterPath: /usr/bin/python3.6 PackageArchitecture: all ProcCmdline: /usr/bin/python3 -Es /usr/bin/lsb_release -i -s Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-2 PythonArgs: ['/usr/bin/lsb_release', '-i', '-s'] PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-4 SourcePackage: lsb Title: lsb_release crashed with ValueError in <lambda>(): could not convert string to float: '6.06 LTS' UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: [Description] In some cases lsb_release script can crash with the following trace : Traceback (most recent call last): File "/usr/bin/lsb_release", line 95, in <module> main() File "/usr/bin/lsb_release", line 59, in main distinfo = lsb_release.get_distro_information() File "/usr/lib/python3/dist-packages/lsb_release.py", line 356, in get_distro_information distinfo = guess_debian_release() File "/usr/lib/python3/dist-packages/lsb_release.py", line 246, in guess_debian_release get_distro_info(distinfo['ID']) File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info RELEASES_ORDER.sort(key=lambda n: float(n[0])) File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda> RELEASES_ORDER.sort(key=lambda n: float(n[0])) ValueError: could not convert string to float: '6.06 LTS The root cause of this is that function get_distro_info() while parsing the '/usr/share/distro-info/ubuntu.csv' and expects to find a float at the beginning of each line, instead it find a string ("6.06 LTS"). There is a fix for this bug upstream: https://salsa.debian.org/debian/lsb/-/commit/4b36f9d31c00233ea20415542633729ab3799e61 and is already in kinetic. [Test Case] The easier way to reproduce this bug is to hack /usr/share/pyshared/lsb_release.py file change the get_distro_info definition from def get_distro_info(origin='Debian'): to def get_distro_info(origin='Ubuntu'): and run $ lsb_release Traceback (most recent call last): File "/usr/bin/lsb_release", line 25, in <module> import lsb_release File "/usr/lib/python3/dist-packages/lsb_release.py", line 58, in <module> get_distro_info() File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info RELEASES_ORDER.sort(key=lambda n: float(n[0])) File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda> RELEASES_ORDER.sort(key=lambda n: float(n[0])) ValueError: could not convert string to float: '6.06 LTS' [Regression Potential] The fix changes the way get_distro_info function parses the csv file and instead of expecting a float at the beginning of the line, it now expects a string and isolates the numerical part. The regression potential is small and would affect the behavior of lsb_release executable. [Other] Debian bug : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980566 Fix : https://salsa.debian.org/debian/lsb/-/commit/4b36f9d31c00233ea20415542633729ab3799e61 Affected releases : Jammy, Focal, Bionic
2022-09-16 12:53:50 Ioanna Alifieraki description [Description] In some cases lsb_release script can crash with the following trace : Traceback (most recent call last): File "/usr/bin/lsb_release", line 95, in <module> main() File "/usr/bin/lsb_release", line 59, in main distinfo = lsb_release.get_distro_information() File "/usr/lib/python3/dist-packages/lsb_release.py", line 356, in get_distro_information distinfo = guess_debian_release() File "/usr/lib/python3/dist-packages/lsb_release.py", line 246, in guess_debian_release get_distro_info(distinfo['ID']) File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info RELEASES_ORDER.sort(key=lambda n: float(n[0])) File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda> RELEASES_ORDER.sort(key=lambda n: float(n[0])) ValueError: could not convert string to float: '6.06 LTS The root cause of this is that function get_distro_info() while parsing the '/usr/share/distro-info/ubuntu.csv' and expects to find a float at the beginning of each line, instead it find a string ("6.06 LTS"). There is a fix for this bug upstream: https://salsa.debian.org/debian/lsb/-/commit/4b36f9d31c00233ea20415542633729ab3799e61 and is already in kinetic. [Test Case] The easier way to reproduce this bug is to hack /usr/share/pyshared/lsb_release.py file change the get_distro_info definition from def get_distro_info(origin='Debian'): to def get_distro_info(origin='Ubuntu'): and run $ lsb_release Traceback (most recent call last): File "/usr/bin/lsb_release", line 25, in <module> import lsb_release File "/usr/lib/python3/dist-packages/lsb_release.py", line 58, in <module> get_distro_info() File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info RELEASES_ORDER.sort(key=lambda n: float(n[0])) File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda> RELEASES_ORDER.sort(key=lambda n: float(n[0])) ValueError: could not convert string to float: '6.06 LTS' [Regression Potential] The fix changes the way get_distro_info function parses the csv file and instead of expecting a float at the beginning of the line, it now expects a string and isolates the numerical part. The regression potential is small and would affect the behavior of lsb_release executable. [Other] Debian bug : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980566 Fix : https://salsa.debian.org/debian/lsb/-/commit/4b36f9d31c00233ea20415542633729ab3799e61 Affected releases : Jammy, Focal, Bionic [Description] In some cases lsb_release script can crash with the following trace : Traceback (most recent call last): File "/usr/bin/lsb_release", line 95, in <module> main() File "/usr/bin/lsb_release", line 59, in main distinfo = lsb_release.get_distro_information() File "/usr/lib/python3/dist-packages/lsb_release.py", line 356, in get_distro_information distinfo = guess_debian_release() File "/usr/lib/python3/dist-packages/lsb_release.py", line 246, in guess_debian_release get_distro_info(distinfo['ID']) File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info RELEASES_ORDER.sort(key=lambda n: float(n[0])) File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda> RELEASES_ORDER.sort(key=lambda n: float(n[0])) ValueError: could not convert string to float: '6.06 LTS The root cause of this is that function get_distro_info() while parsing the '/usr/share/distro-info/ubuntu.csv' and expects to find a float at the beginning of each line, instead it find a string ("6.06 LTS"). There is a fix for this bug upstream: https://salsa.debian.org/debian/lsb/-/commit/4b36f9d31c00233ea20415542633729ab3799e61 and is already in kinetic. [Test Case] The easier way to reproduce this bug is to hack /usr/share/pyshared/lsb_release.py file change the get_distro_info definition from def get_distro_info(origin='Debian'): to def get_distro_info(origin='Ubuntu'): and run $ lsb_release Traceback (most recent call last):   File "/usr/bin/lsb_release", line 25, in <module>     import lsb_release   File "/usr/lib/python3/dist-packages/lsb_release.py", line 58, in <module>     get_distro_info()   File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info     RELEASES_ORDER.sort(key=lambda n: float(n[0]))   File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda>     RELEASES_ORDER.sort(key=lambda n: float(n[0])) ValueError: could not convert string to float: '6.06 LTS' A detailed analysis on how this bug can happen in a real life scenario can be found in comment #3. [Regression Potential] The fix changes the way get_distro_info function parses the csv file and instead of expecting a float at the beginning of the line, it now expects a string and isolates the numerical part. The regression potential is small and would affect the behavior of lsb_release executable. [Other] Debian bug : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980566 Fix : https://salsa.debian.org/debian/lsb/-/commit/4b36f9d31c00233ea20415542633729ab3799e61 Affected releases : Jammy, Focal, Bionic
2022-09-16 12:54:17 Ioanna Alifieraki information type Private Public
2022-09-19 00:25:14 Michael Hudson-Doyle lsb (Ubuntu): status Confirmed Fix Released