Subject: bin/10133: ps(1) gets arguments via procfs wrong sometimes
To: None <gnats-bugs@gnats.netbsd.org>
From: Jaromír" "Doleček <dolecek@ics.muni.cz>
List: netbsd-bugs
Date: 05/16/2000 16:03:49
>Number: 10133
>Category: bin
>Synopsis: ps(1) gets arguments via procfs wrong sometimes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 16 16:04:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Jaromir Dolecek
>Release: NetBSD 1.4Y 2000/05/16
>Organization:
IBIS, Ltd.
>Environment:
System: NetBSD saruman.ics.muni.cz 1.4Y NetBSD 1.4Y (SARUMAN) #31: Tue May 16 22:53:56 CEST 2000 dolecek@saruman.ics.muni.cz:/usr/home/dolecek/tmp/syssrc/sys/arch/i386/compile/SARUMAN i386
Architecture: i386
>Description:
Seems like ps(1) isn't able to extract args for processes on
end of list, displays just their process title.
>How-To-Repeat:
> ps ax
... some system stuff
205 ?? ?<s 0:00.67 /usr/pkg/sbin/httpd -f /etc/httpd/httpd.conf
209 ?? ?< 0:00.06 /usr/pkg/sbin/httpd -f /etc/httpd/httpd.conf
370 ?? ?< 0:00.04 /usr/pkg/sbin/httpd -f /etc/httpd/httpd.conf
... lots of other stuff with correct args and ...
216 E1- ?W<s 0:00.00 (getty)
217 E2- ?W<s 0:00.00 (getty)
218 E3- ?W<s 0:00.00 (getty)
219 E4- ?W<s 0:00.00 (getty)
220 E5- ?W<s 0:00.00 (getty)
221 E6- ?W<s 0:00.00 (getty)
whereas output from
> cat /proc/221/cmdline
/usr/libexec/gettyPcttyE6
is apparently ok
>Fix:
None provided ATM. This is just a reminder so that this problem
won't be lost.
>Release-Note:
>Audit-Trail:
>Unformatted: