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

Steve Langasek 2045986 at bugs.launchpad.net
Fri Jan 5 23:53:16 UTC 2024


Description: Highly Optimized Radio Scanning Tool
 horst is a small, lightweight IEEE802.11 WLAN analyzer with a text
 interface. [...]

The SRU justification given is:

> 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.

The user experience before this patch is an error message and a segfault.
The user experience after this patch is a different error message and (hopefully) no segfault.

This is not a significant improvement to the user experience for a
package installed on a system where it is completely useless and in my
view does not meet the threshold of an SRU.

** Changed in: horst (Ubuntu Mantic)
       Status: In Progress => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2045986

Title:
  [SRU] no WiFi card, ends with segfault

Status in horst package in Ubuntu:
  Fix Released
Status in horst source package in Focal:
  Confirmed
Status in horst source package in Jammy:
  Confirmed
Status in horst source package in Lunar:
  Confirmed
Status in horst source package in Mantic:
  Won't Fix
Status in horst source package in Noble:
  Fix Released

Bug description:
  [ 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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horst/+bug/2045986/+subscriptions




More information about the Ubuntu-sponsors mailing list