speedtest-cli crashed with ValueError in get_config(): invalid literal for int() with base 10: ''
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
speedtest-cli (Debian) |
Fix Released
|
Unknown
|
|||
speedtest-cli (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray | ||
Bionic |
Fix Released
|
Undecided
|
William Wilson | ||
Focal |
Fix Released
|
High
|
Brian Murray | ||
Groovy |
Fix Released
|
High
|
Brian Murray |
Bug Description
SRU justification (created by Tj)
[Impact]
Without this patch `speedtest-cli` is unable to download the list of servers it needs to fetch each time it is invoked and causes a Python exception and terminates, rendering the tool unusable.
Applying the upstream fix (commit cadc68b5aef20) and backporting it enables the tool to function as intended.
The fix handles the case where `ignoreids` is empty or contains empty ids.
[Test Plan]
Reproduce:
$ speedtest-cli
Retrieving speedtest.net configuration...
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
shell()
File "/usr/lib/
speedtest = Speedtest(
File "/usr/lib/
self.
File "/usr/lib/
ignore_servers = list(
ValueError: invalid literal for int() with base 10: ''
After applying the fix:
$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from Starlink (176.116.125.19)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by toob Ltd (London) [2.56 km]: 42.699 ms
Testing download speed..
Download: 222.97 Mbit/s
Testing upload speed..
Upload: 41.19 Mbit/s
[Where problems could occur]
Unlikely this can cause any unwanted reaction.
------------
I just tried to run speedtest-cli and it crashed.
ProblemType: Crash
DistroRelease: Ubuntu 21.04
Package: speedtest-cli 2.1.2-2
ProcVersionSign
Uname: Linux 5.11.0-13-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu62
Architecture: amd64
CurrentDesktop: X-Cinnamon
Date: Sun Apr 11 05:52:59 2021
ExecutablePath: /usr/bin/
InstallationDate: Installed on 2018-08-10 (974 days ago)
InstallationMedia: Ubuntu-Server 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
InterpreterPath: /usr/bin/python3.9
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/bin/
Python3Details: /usr/bin/python3.9, Python 3.9.4, python3-minimal, 3.9.2-2
PythonArgs: ['/usr/
PythonDetails: N/A
SourcePackage: speedtest-cli
Title: speedtest-cli crashed with ValueError in get_config(): invalid literal for int() with base 10: ''
UpgradeStatus: Upgraded to hirsute on 2021-04-11 (0 days ago)
UserGroups: adm cdrom dip kvm libvirt lpadmin lxd plugdev sambashare sbuild sudo
tags: | removed: need-duplicate-check |
Changed in speedtest-cli (Ubuntu): | |
importance: | Undecided → Medium |
Changed in speedtest-cli (Debian): | |
status: | Unknown → Fix Released |
description: | updated |
tags: | added: bionic |
tags: | added: verification-needed-bionic |
Status changed to 'Confirmed' because the bug affects multiple users.