smem crashed with IndexError in showpie()

Bug #652839 reported by Eliah Kagan
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
smem (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: smem

This occurred in smem 0.9-3 on Ubuntu 10.10. I ran the command:

smem --pie name -s pss

That caused the crash, and the bug is reproducible by running the same command again. It crashes immediately, without displaying a graphical plot. The output is:

Traceback (most recent call last):
  File "/usr/bin/smem", line 636, in <module>
    showpids()
  File "/usr/bin/smem", line 246, in showpids
    showtable(pt.keys(), fields, columns.split(), options.sort or 'pss')
  File "/usr/bin/smem", line 455, in showtable
    showpie(l, sort)
  File "/usr/bin/smem", line 498, in showpie
    while values and (t + values[-1 - c] < (tm * .02) or
IndexError: list index out of range

However, this command reliably succeeds, producing a graphical plot with no errors:

smem --pie name -s rss

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: smem 0.9-3
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Fri Oct 1 05:30:53 2010
Dependencies:

ExecutablePath: /usr/bin/smem
InstallationMedia: Xubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100406)
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/smem --pie name -s pss
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.utf8
PythonArgs: ['/usr/bin/smem', '--pie', 'name', '-s', 'pss']
SourcePackage: smem
Title: smem crashed with IndexError in showpie()
UserGroups: adm admin cdrom lpadmin plugdev sambashare

Revision history for this message
Eliah Kagan (degeneracypressure) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Eliah Kagan (degeneracypressure) wrote :

For some reason, I am no longer able to reproduce this bug. The command that caused it before no longer causes it. Perhaps an update to python2 fixed it. Or maybe it reflected a problem specific to my system. In any case, if nobody else can reproduce it, then I think we should consider it fixed, unless other people are having the problem.

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

This bug report is being closed due to your last comment regarding this being fixed with an update.

I did attempt to reproduce this is Xubuntu 10.04, and was not able to. Thanks for the followup comment. It is really appreciated.

Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

visibility: private → public
Changed in smem (Ubuntu):
status: New → Invalid
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.