I regularly use pstree with pstree -uplan to see what processes run on my system. I've noticed a strange bug. For instance, I've just run it on one of my machines (psmisc-22.5-r2) and I see: ---- |-distccd,3704,distcc --pid-file /var/run/distccd/distccd.pid -N 0 --user distcc --port 3632 --log-level warning --allow 10.142.81.0/24- ---- [Notice the final dash] If I do, for the above command, a perl -ple 's,\00, ,g' /proc/3704/cmdline, I have: ---- /usr/bin/distccd --pid-file /var/run/distccd/distccd.pid -N 0 --user distcc --port 3632 --log-level warning --allow 10.142.81.0/24 --listen 10.142.81.118 ---- Similarly, on another Gentoo machine on which I run Courier IMAP, also x86 (and psmisc-22.3 this time), I have: ---- |-couriertcpd,2820 -address=0 -stderrlogger=/usr/lib/courier-imap/courierlogger -stderrloggername=imapd-maxprocs=100 ---- [Notice: -stderrloggername=imapd-maxprocs=100] whereas perl -ple 's,\00, ,g' /proc/2820/cmdline outputs: ---- /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/lib/courier-imap/courierlogger -stderrloggername=imapd -maxprocs=100 -maxperip=100 -pid=/var/run/imapd.pid -nodnslookup -noidentlookup 143 /usr/sbin/imaplogin /usr/lib/courier-imap/courier-imapd.indirect .maildir ---- Reproducible: Always Steps to Reproduce: Simply run the pstree -uplan on an x86 machine, using psmisc-22.x, 3 <= x <= 5-r2, on a machine with very long command lines on it - MySQL is one program having very long command lines, Courier IMAP is another, you name yours Actual Results: What I described Expected Results: The space before the last displayable argument
Can you try psmisc-22.8? Because I'm seeing something possibly related in ChangeLog.
(In reply to comment #1) > Can you try psmisc-22.8? Because I'm seeing something possibly related in > ChangeLog. > Do you mean from the source directly? I don't see psmisc 22.8 in portage (I emerged --sync 20 minutes ago).
psmisc 22.8 is now in portage and I confirm that it doesn't have this problem anymore.