Your message dated Mon, 23 Jan 2012 22:23:56 +1100
with message-id <[email protected]>
and subject line Fixed in 3.3.2
has caused the Debian Bug report #614513,
regarding pmap: Kbytes column is zero when '-x' is used
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
614513: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614513
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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



--- End Message ---
--- Begin Message ---
Package: procps
Version: 1:3.3.2-1

I missed this in the changelog but procps 3.3.2 had the fix for pmap -x
showing no values.
-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5


--- End Message ---

Reply via email to