Package: procps
Version: 1:3.2.8-9
Severity: normal

The memory size reported in the Kbytes column is zero when using the '-x'
option with pmap.

This issue is seen in procps versions 1:3.2.8-9 and 1:3.2.8-10 (currently in
stable/squeeze, testing/wheezy, and unstable/sid )

Line 170 in pmap.c has the following
    unsigned KLONG start, end, diff=0;
the "=0" is causing the problem, so this line should read
    unsigned KLONG start, end, diff;

The problem is caused by the following two lines (57 & 58) in the patch file
"pmaps_smaps.patch" which are patching the orig source incorrectly.
-    unsigned KLONG start, end, diff;
+    unsigned KLONG start, end, diff=0;


Example output of the error.
$ ./pmap -x 2143
2143:   /usr/lib/gnome-applets/gweather-applet-2 --oaf-activate-
iid=OAFIID:GNOME_GWeatherApplet_Factory --oaf-ior-fd=24
Address   Kbytes     RSS   Dirty Mode   Mapping
08048000       0      20       0 r-x--  gweather-applet-2
08057000       0       4       4 rw---  gweather-applet-2
089c5000       0   35360   35308 rw---    [ anon ]
...

Example output after modifing the "diff=0" to "diff".
$ ./pmap_fixed -x 2143
2143:   /usr/lib/gnome-applets/gweather-applet-2 --oaf-activate-
iid=OAFIID:GNOME_GWeatherApplet_Factory --oaf-ior-fd=24
Address   Kbytes     RSS   Dirty Mode   Mapping
08048000      60      20       0 r-x--  gweather-applet-2
08057000       4       4       4 rw---  gweather-applet-2
089c5000   55960   35360   35308 rw---    [ anon ]
...




-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages procps depends on:
ii  initscripts             2.88dsf-13.1     scripts for initializing and shutt
ii  libc6                   2.11.2-7         Embedded GNU C Library: Shared lib
ii  libncurses5             5.7+20100313-5   shared libraries for terminal hand
ii  libncursesw5            5.7+20100313-5   shared libraries for terminal hand
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip

Versions of packages procps recommends:
ii  psmisc                        22.11-1    utilities that use the proc file s

procps suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to