Debian Bug report logs - #411840
procps: ps doesn't resolve uid->username of some processes

version graph

Package: procps; Maintainer for procps is Craig Small <csmall@debian.org>; Source for procps is src:procps (PTS, buildd, popcon).

Reported by: Max Dmitrichenko <dmitrmax@rain.ifmo.ru>

Date: Wed, 21 Feb 2007 10:57:02 UTC

Severity: normal

Found in version procps/1:3.2.7-3

Done: Guillaume Delacour <gui@iroqwa.org>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


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).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Max Dmitrichenko <dmitrmax@rain.ifmo.ru>
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).


Message #10 received at 411840@bugs.debian.org (full text, mbox, reply):

From: Justin Pryzby <justinpryzby@users.sourceforge.net>
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).


Message #15 received at 411840@bugs.debian.org (full text, mbox, reply):

From: Guillaume Delacour <gui@iroqwa.org>
To: 411840@bugs.debian.org, 411840-submitter@bugs.debian.org
Subject: Closing this bug
Date: Thu, 16 Jul 2009 01:49:47 +0200
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, attachment)]

Message sent on to Max Dmitrichenko <dmitrmax@rain.ifmo.ru>:
Bug#411840. (Wed, 15 Jul 2009 23:57:13 GMT) (full text, mbox, link).


Reply sent to Guillaume Delacour <gui@iroqwa.org>:
You have taken responsibility. (Thu, 16 Jul 2009 00:00:05 GMT) (full text, mbox, link).


Notification sent to Max Dmitrichenko <dmitrmax@rain.ifmo.ru>:
Bug acknowledged by developer. (Thu, 16 Jul 2009 00:00:05 GMT) (full text, mbox, link).


Message #23 received at 411840-done@bugs.debian.org (full text, mbox, reply):

From: Guillaume Delacour <gui@iroqwa.org>
To: 411840-done@bugs.debian.org
Subject: Second try
Date: Thu, 16 Jul 2009 01:52:15 +0200
[Message part 1 (text/plain, inline)]

-- 

Guillaume Delacour
[signature.asc (application/pgp-signature, attachment)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 13 Aug 2009 07:28:08 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Sep 2 16:56:37 2025; Machine Name: berlioz

Debian Bug tracking system

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/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.