Report forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>: Bug#411840; Package procps.
(full text, mbox, link).
Acknowledgement sent to Max Dmitrichenko <dmitrmax@rain.ifmo.ru>:
New Bug report received and forwarded. Copy sent to Craig Small <csmall@debian.org>.
(full text, mbox, link).
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: procps: ps doesn't resolve uid->username of some processes
Date: Wed, 21 Feb 2007 13:53:35 +0300
Package: procps
Version: 1:3.2.7-3
Severity: normal
Processes which are running under users haldaemon and messagebus are displayed
somehow different by ps utility. The following output of ps shows that their
uids are not resolved into usernames. They are left 102 and 103 correspondingly.
A simple test program that uses getpwuid() libc function works correctly, so
this is not a bug of libc6 but the bug of procps package.
$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 2472 632 ? Ss Feb20 0:02 init [2]
root 2 0.0 0.0 0 0 ? SN Feb20 0:00 [ksoftirqd/0]
root 3 0.0 0.0 0 0 ? S< Feb20 0:01 [events/0]
root 4 0.0 0.0 0 0 ? S< Feb20 0:00 [khelper]
root 5 0.0 0.0 0 0 ? S< Feb20 0:00 [kthread]
root 73 0.0 0.0 0 0 ? S Feb20 0:00 [powerd]
root 74 0.0 0.0 0 0 ? S< Feb20 0:00 [kblockd/0]
root 77 0.0 0.0 0 0 ? S< Feb20 0:00 [khubd]
root 79 0.0 0.0 0 0 ? S< Feb20 0:00 [kseriod]
root 118 0.0 0.0 0 0 ? S Feb20 0:00 [pdflush]
root 119 0.0 0.0 0 0 ? S Feb20 0:03 [pdflush]
root 120 0.0 0.0 0 0 ? S< Feb20 0:01 [kswapd0]
root 121 0.0 0.0 0 0 ? S< Feb20 0:00 [aio/0]
root 752 0.0 0.0 0 0 ? S< Feb20 0:00 [kpsmoused]
root 1933 0.0 0.0 0 0 ? S< Feb20 0:00 [kjournald]
root 2094 0.0 0.1 2984 448 ? S<s Feb20 0:01 udevd --daemon
root 3102 0.0 0.0 0 0 ? S< Feb20 0:00 [kmirrord]
root 3134 0.0 0.0 0 0 ? S< Feb20 0:01 [kjournald]
root 3136 0.0 0.0 0 0 ? S< Feb20 0:00 [kjournald]
root 3523 0.0 0.2 1992 720 ? Ss Feb20 0:00 /sbin/syslogd
root 3529 0.0 0.1 1872 416 ? Ss Feb20 0:00 /sbin/klogd -x
102 3536 0.0 0.2 3152 560 ? Ss Feb20 0:00 /usr/bin/dbus-daemon --system
103 3544 0.0 0.3 11888 960 ? Ss Feb20 0:02 /usr/sbin/hald
root 3545 0.0 0.2 4104 552 ? S Feb20 0:00 hald-runner
103 3557 0.0 0.2 2728 744 ? S Feb20 0:00 hald-addon-keyboard: listening on /dev/input/event0
root 3561 0.0 0.2 2232 616 ? S Feb20 0:00 hald-addon-storage: polling /dev/hdc
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Versions of packages procps depends on:
ii libc6 2.3.6.ds1-11 GNU C Library: Shared libraries
ii libncurses5 5.5-5 Shared libraries for terminal hand
ii lsb-base 3.1-23 Linux Standard Base 3.1 init scrip
Versions of packages procps recommends:
ii psmisc 22.3-1 Utilities that use the proc filesy
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>: Bug#411840; Package procps.
(full text, mbox, link).
Acknowledgement sent to Justin Pryzby <justinpryzby@users.sourceforge.net>:
Extra info received and forwarded to list. Copy sent to Craig Small <csmall@debian.org>.
(full text, mbox, link).
To: Max Dmitrichenko <dmitrmax@rain.ifmo.ru>, 411840@bugs.debian.org
Cc: request@bugs.debian.org
Subject: Re: Bug#411840: procps: ps doesn't resolve uid->username of some processes
Date: Wed, 21 Feb 2007 08:18:28 -0500
user procps@packages.debian.org
tag 411840 not-a-bug
thanks
On Wed, Feb 21, 2007 at 01:53:35PM +0300, Max Dmitrichenko wrote:
> Package: procps
> Version: 1:3.2.7-3
> Severity: normal
>
> Processes which are running under users haldaemon and messagebus are displayed
> somehow different by ps utility. The following output of ps shows that their
> uids are not resolved into usernames. They are left 102 and 103 correspondingly.
This is a common "not a bug", see also #405063.
Information forwarded
to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>: Bug#411840; Package procps.
(Wed, 15 Jul 2009 23:57:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Guillaume Delacour <gui@iroqwa.org>:
Extra info received and forwarded to list. Copy sent to Craig Small <csmall@debian.org>.
(Wed, 15 Jul 2009 23:57:04 GMT) (full text, mbox, link).
As mentionned by Justin, this is not a bug.
I don't really find any documentation about this but the source code of
recent version of procps seems to be quite sufficient (unless i'm
wrong).
In minimal.c:
[...]
static void print_proc(void){
[...]
case 'f':
printf(
"%8s %5d %5d %s %s %s %s",
do_user(), P_pid, P_ppid, do_cpu(0), do_stime(), P_tty_text,
do_time(P_utime+P_stime) );
[...]
--
Guillaume Delacour
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.