ps outputs garbage when compiled against uClibc

Mark Whitley markw at lineo.com
Thu Mar 15 19:27:21 UTC 2001


Package: busybox
Version: 0.50pre
Severity: normal

Per email from Andreas Neuhaus <andy at fasta.fh-dortmund.de>:

	ps does not work for me. the sccanf calls in parse_proc_status in ps.c
	always return an empty string. i discovered this when searching for the
	reason why kernel processes are listed as "[]" instead of "[swapper]" and
	process status is missing completely.

Can be duplicated:


$ ldd busybox
	libuClibc.so.1 => /lib/libuClibc.so.1 (0x4000d000)
	ld-linux.so.1 => /lib/ld-linux.so.1 (0x4003b000)

$ ./busybox ps
  PID  Uid      Gid State Command
    1 root     root     Ü init [5] 
    2 root     root     Ü []
    3 root     root     Ü []
    4 root     root     Ü []
    5 root     root     Ü []
  155 root     root     Ü /usr/sbin/inetd
  164 root     lp       Ü []
  214 root     root     Ü /usr/lib/postfix/master
  218 postfix  postfix  Ü qmgr -l -t fifo -u
[snip]



Mark Whitley
markw at lineo.com

---------------------------------------
Received: (at 1134-done) by bugs.lineo.com; 15 Mar 2001 20:00:52 +0000


More information about the busybox mailing list