iotop crashes every start

Bug #897411 reported by pioruns
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
iotop (Ubuntu)
Fix Released
Undecided
Unassigned
Oneiric
Triaged
High
Unassigned

Bug Description

Xubuntu 11.10 i386
iotop output from terminal attached.
I am using oneiric-proposed repo.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: iotop 0.4.3-1ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-13.22-generic 3.0.6
Uname: Linux 3.0.0-13-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Mon Nov 28 20:37:25 2011
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
SourcePackage: iotop
UpgradeStatus: Upgraded to oneiric on 2011-11-23 (4 days ago)

CVE References

Revision history for this message
pioruns (pioruns) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in iotop (Ubuntu):
status: New → Confirmed
Revision history for this message
Ricardo Graça (devius) wrote :

Running as root with sudo iotop works, but it fails when running as a regular user.

Revision history for this message
pioruns (pioruns) wrote :

@Ricardo Graça (devius):
Yes, I know that. But iotop should return appropriate message about that, like It do in Debian:

$ iotop
Netlink error: Operacja niedozwolona (1)
iotop requires root or the NET_ADMIN capability.

Observed behavior of iotop from Ubuntu is quite different, isn't?

Revision history for this message
Ricardo Graça (devius) wrote :

@pioruns It should just work even when run by a regular user. I have been using it for years and never faced this problem before.

Revision history for this message
pioruns (pioruns) wrote :

I used this program first time in Debian, and it already ask of root privileges. If it's a bug, and iotop should work fine with user privileges, we have a regression and it should be fixed.

Revision history for this message
Paul Wise (Debian) (pabs) wrote : iotop now requires root privileges

iotop 0.4.4 has reached Ubuntu, so iotop will no longer crash.

Linux itself now requires root privileges to access the information
required by iotop. This was changed in response to the discovery of a
security issue (CVE-2011-2494) caused by exposing the taskstats data to
non-root users.

https://bugs.launchpad.net/bugs/cve/2011-2494

 status fixreleased

Changed in iotop (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
pioruns (pioruns) wrote :

@Paul Wise (Debian) (pabs):

Please don't tag it as "Fix Released".
I still have crash message when I try to start it as user. There SHOULD BE a message "This program requires root privileges to work" or something like that. Instead, I have:
$ iotop
Traceback (most recent call last):
  File "/usr/bin/iotop", line 16, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 563, in main
    main_loop()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 553, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 465, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 457, in run_iotop_window
    process_list = ProcessList(taskstats_connection, options)
  File "/usr/lib/python2.7/dist-packages/iotop/data.py", line 373, in __init__
    self.update_process_counts()
  File "/usr/lib/python2.7/dist-packages/iotop/data.py", line 429, in update_process_counts
    stats = self.taskstats_connection.get_single_task_stats(thread)
  File "/usr/lib/python2.7/dist-packages/iotop/data.py", line 158, in get_single_task_stats
    reply = GeNlMessage.recv(self.connection)
  File "/usr/lib/python2.7/dist-packages/iotop/genetlink.py", line 50, in recv
    msg = conn.recv()
  File "/usr/lib/python2.7/dist-packages/iotop/netlink.py", line 229, in recv
    raise err
OSError: Netlink error: Operation not permitted (1)

Is that correct behaviour, in your opinion?

Checked with iotop, version 0.4.3-1ubuntu1, architecture i386.

Changed in iotop (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
pioruns (pioruns) wrote :

Sorry about my misunderstanding:) OK, version 0.4.4 fixes the problem, but where is it? I don't have it in my system, neither package search don't show this version.
Package iotop

    lucid (admin): simple top-like I/O monitor [universe]
    0.4-1: all
    maverick (admin): simple top-like I/O monitor [universe]
    0.4-2: all
    natty (admin): simple top-like I/O monitor [universe]
    0.4-2: all
    oneiric (admin): simple top-like I/O monitor [universe]
    0.4.3-1ubuntu1: all
    precise (admin): simple top-like I/O monitor [universe]

Revision history for this message
Paul Wise (Debian) (pabs) wrote : iotop 0.4.4 is in precise/universe

rmadison says it is in precise/universe:

     iotop | 0.4.4-3 | precise/universe | source, amd64, armel, armhf, i386, powerpc

I guess you need to apt-get update.

I'm just the Debian maintainer who sometimes looks at bugs on launchpad
that might apply to Debian. If you want this change backported to
oneiric or elsewhere you will have to ask an Ubuntu person.

 status fixreleased

--
bye,
pabs

http://wiki.debian.org/PaulWise

Changed in iotop (Ubuntu):
status: Confirmed → Fix Released
Changed in iotop (Ubuntu Oneiric):
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.