Your message dated Thu, 28 May 2009 09:17:20 +0000
with message-id <[email protected]>
and subject line Bug#508435: fixed in procps 1:3.2.8-1
has caused the Debian Bug report #508435,
regarding "ps --sort" doesn't work for time arguments (patch included)
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.)
--
508435: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508435
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: procps
Version: 3.2.7
Source: 3.2.7
User: Alfredo Esteban de la Torre
When I invoke "ps -e --sort=time" I get:
$ ps -e --sort=time
PID TTY TIME CMD
1 ? 00:00:01 init
2 ? 00:00:00 kthreadd
3 ? 00:00:00 migration/0
4 ? 00:00:00 ksoftirqd/0
[...]
5897 ? 00:00:01 nm-applet
5898 ? 00:00:00 gnome-volume-ma
5900 ? 00:00:00 gnome-power-man
5908 ? 00:00:00 gvfsd-burn
5914 ? 00:00:00 gvfsd-trash
5926 ? 00:00:01 tomboy
5934 ? 00:00:09 conky
5938 ? 00:03:24 firefox
6016 ? 00:00:02 liferea-bin
6093 ? 00:00:00 gnome-terminal
6152 ? 00:00:00 gnome-pty-helpe
6153 pts/0 00:00:00 bash
6174 ? 00:00:00 encfs
7119 ? 00:00:05 gedit
7177 pts/0 00:00:00 ps
I expected the rows sorted by the TIME column value.
In the other hand, when I invoke "ps -eo etime,comm --sort=etime" and
"ps -eo etime,comm --sort=-etime" I get the same output rather than
the reverse order.
The cause is the same: Sort functions are not referenced for this
arguments (time and etime) in:
static const format_struct format_array[]
I'm using Debian Etch, kernel 2.6.18-6-686 and libc6 2.3.6.ds1-13etch7.
Tags: patch
Index: output.c
===================================================================
RCS file: /cvsroot/procps/procps/ps/output.c,v
retrieving revision 1.62
diff -r1.62 output.c
112a113,126
> #define cook_time(P) (P->utime + P->stime) / Hertz
>
> #define cook_etime(P) seconds_since_boot - (unsigned long)(P->start_time /
> Hertz)
>
> #define CMP_COOKED_TIME(NAME) \
> static int sr_ ## NAME (const proc_t* P, const proc_t* Q) { \
> unsigned long p_time,q_time; \
> p_time=cook_ ##NAME (P); \
> q_time=cook_ ##NAME (Q); \
> if (p_time < q_time) return -1; \
> if (p_time > q_time) return 1; \
> return 0; \
> }
>
187a202,204
> CMP_COOKED_TIME(time)
> CMP_COOKED_TIME(etime)
>
411c428
< t = seconds_since_boot - (unsigned long)(pp->start_time / Hertz);
---
> t = cook_etime(pp);
479c496
< t = (pp->utime + pp->stime) / Hertz;
---
> t = cook_time(pp);
1289c1306
< {"atime", "TIME", pr_time, sr_nop, 8, 0, SOE,
ET|RIGHT}, /*cputime*/ /* was 6 wide */
---
> {"atime", "TIME", pr_time, sr_time, 8, 0, SOE, ET|RIGHT},
> /*cputime*/ /* was 6 wide */
1308c1325
< {"cputime", "TIME", pr_time, sr_nop, 8, 0, DEC,
ET|RIGHT}, /*time*/
---
> {"cputime", "TIME", pr_time, sr_time, 8, 0, DEC, ET|RIGHT},
> /*time*/
1323c1340
< {"etime", "ELAPSED", pr_etime, sr_nop, 11, 0, U98,
ET|RIGHT}, /* was 7 wide */
---
> {"etime", "ELAPSED", pr_etime, sr_etime, 11, 0, U98,
> ET|RIGHT}, /* was 7 wide */
1466c1483
< {"time", "TIME", pr_time, sr_nop, 8, 0, U98,
ET|RIGHT}, /*cputime*/ /* was 6 wide */
---
> {"time", "TIME", pr_time, sr_time, 8, 0, U98, ET|RIGHT},
> /*cputime*/ /* was 6 wide */
--- End Message ---
--- Begin Message ---
Source: procps
Source-Version: 1:3.2.8-1
We believe that the bug you reported is fixed in the latest version of
procps, which is due to be installed in the Debian FTP archive:
libproc-dev_3.2.8-1_i386.deb
to pool/main/p/procps/libproc-dev_3.2.8-1_i386.deb
procps_3.2.8-1.diff.gz
to pool/main/p/procps/procps_3.2.8-1.diff.gz
procps_3.2.8-1.dsc
to pool/main/p/procps/procps_3.2.8-1.dsc
procps_3.2.8-1_i386.deb
to pool/main/p/procps/procps_3.2.8-1_i386.deb
procps_3.2.8.orig.tar.gz
to pool/main/p/procps/procps_3.2.8.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Craig Small <[email protected]> (supplier of updated procps package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 28 May 2009 17:34:22 +1000
Source: procps
Binary: procps libproc-dev
Architecture: source i386
Version: 1:3.2.8-1
Distribution: unstable
Urgency: low
Maintainer: Craig Small <[email protected]>
Changed-By: Craig Small <[email protected]>
Description:
libproc-dev - library for accessing process information from /proc
procps - /proc file system utilities
Closes: 508435 519331 526360 527193
Changes:
procps (1:3.2.8-1) unstable; urgency=low
.
* New upstream release
* Actually apply sort time patch Closes: #508435
* Corrected 35_path_max patch Closes: #519331
* fixed cumulative parameter in watch.1 Closes: #527193
* Applied vmstat -p fix patch Closes: #526360
Checksums-Sha1:
1ca57c5ecd9d6c1432c37c13b9fec16c1b09f73b 986 procps_3.2.8-1.dsc
a0c86790569dec26b5d9037e8868ca907acc9829 285758 procps_3.2.8.orig.tar.gz
7b38f7354f4b2aa32c3229aab2c4ae5e91cf8e5f 60682 procps_3.2.8-1.diff.gz
f426294fb423e514167efb800a8e071d182d38aa 227314 procps_3.2.8-1_i386.deb
bd79bdfdfa3f6b1cd1c28f60990719d876ba15e2 58656 libproc-dev_3.2.8-1_i386.deb
Checksums-Sha256:
2822ee91d9fed8fc62cce25097864b79f6302bbdaae1df60ed1f5fffc04010d0 986
procps_3.2.8-1.dsc
11ed68d8a4433b91cd833deb714a3aa849c02aea738c42e6b4557982419c1535 285758
procps_3.2.8.orig.tar.gz
91b2d3e2f55e989ad2740810b000433ba0a9330fe8aa9ea6773670c48b121b21 60682
procps_3.2.8-1.diff.gz
bd94af9410751169dc78b879f903515840ebff8c0fa233948159567722862dc5 227314
procps_3.2.8-1_i386.deb
c141a1eabceb329d529bd09f10f1352ff53edebc88c144af075643d1ff569220 58656
libproc-dev_3.2.8-1_i386.deb
Files:
84b96ca487a713a27a86a8feeab049a3 986 admin required procps_3.2.8-1.dsc
9532714b6846013ca9898984ba4cd7e0 285758 admin required procps_3.2.8.orig.tar.gz
c73a49dd0e5f30e435ce256be30e894a 60682 admin required procps_3.2.8-1.diff.gz
c30bd3c4937adaa534bb0029a7d0ab61 227314 admin required procps_3.2.8-1_i386.deb
fb93c7112a056ebf3f0ca77de4f6acbd 58656 libdevel optional
libproc-dev_3.2.8-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFKHkfOx2zlrBLK36URAvomAKCTT9Iitm4A7J2hW0Eu1Tus1OJWGwCfQLIn
MG5LuLWrlc5C1bfZvMXBctk=
=0M6h
-----END PGP SIGNATURE-----
--- End Message ---