[BusyBox] bug#1134: ps outputs garbage when compiled against uClibc
Erik Andersen
andersen at lineo.com
Thu Mar 15 20:00:51 UTC 2001
On Thu Mar 15, 2001 at 12:27:21PM -0700, Mark Whitley wrote:
> 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]
This is not a busybox box, but a uClibc bug. Manuel rewrote the scanf family
within the last couple of days, and this case slipped through broken.
Fortunately, Manuel just fixed it about 2 minutes ago...
[andersen at sage busybox]$ ldd ./busybox
libuClibc.so.1 => /lib/libuClibc.so.1 (0x4000b000)
ld-linux.so.1 => /lib/ld-linux.so.1 (0x40039000)
[andersen at sage busybox]$ ./busybox ps
PID Uid Gid State Command
1 root root S init
2 root root S [keventd]
3 root root S [kapm-idled]
4 root root S [kswapd]
5 root root S [kreclaimd]
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list