Bug 10644 - smem is not working properly and missing its man page
Summary: smem is not working properly and missing its man page
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA3-32-ok MGA3-64-ok
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2013-06-28 18:14 CEST by Malo Deniélou
Modified: 2014-05-08 18:04 CEST (History)
2 users (show)

See Also:
Source RPM: smem
CVE:
Status comment:


Attachments

Description Malo Deniélou 2013-06-28 18:14:23 CEST
Description of problem:
smem does not have any man page

Steps to Reproduce:
1. > man smem
No manual entry for smem

Reproducible: 

Steps to Reproduce:
Comment 1 Malo Deniélou 2013-06-29 21:23:54 CEST
Additionally, smem does not work properly:

Steps to Reproduce:
1. > smem
  PID User     Command                         Swap      USS      PSS      RSS 
2. See that no process information is actually displayed

And it fails for some options.
Steps to Reproduce:
1. > smem -u
Traceback (most recent call last):
  File "/usr/bin/smem", line 676, in <module>
    showusers()
  File "/usr/bin/smem", line 392, in showusers
    pt = usertotals(p)
  File "/usr/bin/smem", line 369, in usertotals
    maps = pidmaps(pid)
  File "/usr/bin/smem", line 153, in pidmaps
    start, end = f[0].split('-')
ValueError: need more than 1 value to unpack

Status: NEW => ASSIGNED
Summary: smem is missing its man page => smem is not working properly and missing its man page

Comment 2 Malo Deniélou 2013-06-29 21:39:34 CEST
I have uploaded a patched and updated package for Mageia 3.

You can test this by just running smem, smem -u, and other smem options and see that it now works.

This is an easy one for QA trainees :-).

Suggested advisory:
========================

Updated smem packages fix a parsing issue in user info which made smem report an empty list of processes and made smem -u crash.

This update also adds the missing man page (patch by danf).

========================

Updated packages in core/updates_testing:
========================
smem-1.2-2.2.mga3.noarch.rpm

Source RPMs: 
smem-1.2-2.2.mga3.src.rpm

Assignee: pierre-malo.denielou => qa-bugs

Comment 3 martyn vidler 2013-06-30 09:37:09 CEST
MGA3 32 Tested

Installed smem 1.2.2mga3
 
As reported comment 1 it failed same results

 rsync://www.mirrorservice.org/mageia.org/pub/mageia/distrib/3/i586/media/core/updates_testing/smem-1.2-2.2.mga3.noarch.rpm
installing smem-1.2-2.2.mga3.noarch.rpm from /var/cache/urpmi/rpms
Preparing...                     #####
      1/1: smem                  #####
      1/1: removing smem-1.2-2.mga3.noarch

man smem works

>smem Now produces output
>smem -u
User     Count     Swap      USS      PSS      RSS
spiky       45        0   341788   381666   620236

smem --pie option works
smem --bar option works
Used most of the options all worked


Test complete MGA3 32

CC: (none) => martynvidler
Whiteboard: (none) => MGA3-32-ok

Comment 4 martyn vidler 2013-06-30 10:04:14 CEST
Tested MGA3 64 ok

Carried out same tests as comment 3

Eveything worked

Validating
smem-1.2-2.2.mga3.noarch.rpm


Can sysadmin push from core_updates_testing to core_updates

Thank you

Keywords: (none) => validated_update
Whiteboard: MGA3-32-ok => MGA3-32-ok MGA3-64-ok
CC: (none) => sysadmin-bugs

Comment 5 claire robinson 2013-06-30 14:47:14 CEST
Advisory uploaded
Comment 6 Nicolas Vigier 2013-07-01 21:22:37 CEST
http://advisories.mageia.org/MGAA-2013-0042.html

Status: ASSIGNED => RESOLVED
CC: (none) => boklm
Resolution: (none) => FIXED

Nicolas Vigier 2014-05-08 18:04:20 CEST

CC: boklm => (none)


Note You need to log in before you can comment on or make changes to this bug.