[Bug 2080518] Re: /usr/bin/w:11:print_host:print_from:showinfo:main

Shengjing Zhu 2080518 at bugs.launchpad.net
Mon Sep 30 10:25:53 UTC 2024


all autopkgtest regressions have been retried, and then passed.

I installed propcps/noble-proposed, and tested in noble vm.

root at n-vm-1:~# w
 10:25:02 up 4 days,  2:04,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT
root     pts/0    -                10:21    2.00s  0.02s   ?    w
root at n-vm-1:~# w -s
 10:25:03 up 4 days,  2:04,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM               IDLE WHAT
root     pts/0    -                 3.00s w -s
root at n-vm-1:~# w -h
root     pts/0    -                10:21    1.00s  0.02s   ?    w -h
root at n-vm-1:~# w -hs
root     pts/0    -                 3.00s w -hs
root at n-vm-1:~# w -hfip
root     pts/0    -                10:21    0.00s  0.02s   ?    2289/2743 w -hfip
root at n-vm-1:~# w -hfips
root     pts/0    -                 3.00s 2289/2744 w -hfips


All these commands run successfully.


** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to procps in Ubuntu.
https://bugs.launchpad.net/bugs/2080518

Title:
  /usr/bin/w:11:print_host:print_from:showinfo:main

Status in procps package in Ubuntu:
  Fix Released
Status in procps source package in Noble:
  Fix Committed

Bug description:
  [Impact]

  * Running `w -s` crashes. Segmentation fault. It only crashes when
  there are users in `w` output.

  [ Test Plan ]

  * Launch a noble vm. If run `w` doesn't show any user (for example the shell is launched by lxc exec), then run `login -f root` to populate a user in `w` output.
  * Install the version from -proposed, and run `w -hs`. It shouldn't crash.
  * Run other `w` options, like without `-s`, and combine `-s` with other options as well. They all shouldn't crash.

  [ Where problems could occur ]

  * The backported patch only affects the `w` utility in procps. The
  tests should cover most options of `w` utility. It may have
  regressions if we miss some tests for the options.

  [ Original description ]

  Running `w -hs` crashes.

  The Ubuntu Error Tracker has been receiving reports about a problem regarding procps.  This problem was most recently seen with package version 2:4.0.4-4ubuntu4, the problem page at https://errors.ubuntu.com/problem/373d37cffbad5aec5447c867001913ba8278a791 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

  917 crashes in the last month on Ubuntu 24.04 makes it #31 on
  https://errors.ubuntu.com/?release=Ubuntu%2024.04&period=month

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




More information about the foundations-bugs mailing list