Description of problem:
For processes with missing argv ps(1) displays
5984 pts/0 TN 0:00 [exe]
12515 pts/0 TNl 0:00 [exe]
(the constant string "[exe]" although it could display at least the basename of
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run an attached testcase simulating program with missing argv.
ps(1) just produces the output of `/proc/PID/exe' where for missing argv
Unaware why "exe".
It could be also workarounded by ps(1) (but it would need to check for the empty
`/proc/PID/cmdline' or so).
Created attachment 211341 [details]
I'm not sure what's going on here. Maybe the glibc guys have some ideas.
It is "exe" as it execs "/proc/self/exe" - the basename.
Unsure where I have seen it initially but kernel behaves right for this
testcase, executing "/tmp/foobar" with argv==NULL makes the process `comm'