[Bug 2045986] [NEW] [SRU] no WiFi card, ends with segfault

Launchpad Bug Tracker 2045986 at bugs.launchpad.net
Sun Dec 31 22:37:34 UTC 2023


You have been subscribed to a public bug by Sudip Mukherjee (sudipmuk):

[ Impact ]

The usage of horst is not affect and horst is perfectly usable on a system where a wifi hardware is present.
But if any user who does not have a wifi hardware executes horst then it will segfault which is unexpected and the user will not expect a segfault.
This ultimateley affects the user experience.

[ Test Plan ]

There needs to be two tests:
1. Execute horst on a system where wifi hardware is not present to confirm the segfault is fixed.
2. Execute horst on a system where wifi hardware is present and then horst should work normally.

[ Where problems could occur ]

The patch checks if the wifi interface, which horst will try to use, is
present on the system or not. It will then exit gracefully if the
interface is not present instead of trying to use a non-existent device.
This is not changing any other part of the code and the check is added
at the beginnning. So, there is very minimum chance of it affecting the
normal functioning of horst.

[ Other Info ]

* All versions from Focal are affected by this.

[ Original Bug Description ]

Ubuntu 22.04.3, amd64

PC has no WiFi card. Horst crashes:

$ horst -v
5.1 (build date: Nov 28 2021 18:51:58)

$ horst
failed to find nl80211
Segmentation fault (core dumped)

$ gdb horst
...
(gdb) run
Starting program: /usr/sbin/horst
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
failed to find nl80211

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7e40bc6 in genl_family_get_id () from /lib/x86_64-linux-gnu/libnl-genl-3.so.200
(gdb)

** Affects: horst (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Affects: horst (Ubuntu Focal)
     Importance: Undecided
         Status: Confirmed

** Affects: horst (Ubuntu Jammy)
     Importance: Undecided
         Status: Confirmed

** Affects: horst (Ubuntu Lunar)
     Importance: Undecided
         Status: Confirmed

** Affects: horst (Ubuntu Mantic)
     Importance: Undecided
         Status: Confirmed

** Affects: horst (Ubuntu Noble)
     Importance: Undecided
         Status: Confirmed


** Tags: focal jammy lunar mantic noble
-- 
[SRU] no WiFi card, ends with segfault
https://bugs.launchpad.net/bugs/2045986
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list