Mailinglist Archive: opensuse-buildservice (148 mails)

< Previous Next >
Re: [opensuse-buildservice] armv6l, broken process names in /proc/PID
On Saturday 09 May 2015, Jan Engelhardt wrote:
On Saturday 2015-05-09 12:18, Ruediger Meier wrote:
On armv6l and aarch64 I've noticed that we have strange process
names in /proc/PID/*. It's always "qemu-arm" or "qemu-arm64".

For example running in bash we get:

$ cat /proc/$$/status | grep "Name:"
$ ls -l /proc/$$/exe
lrwxrwxrwx 1 abuild abuild 0 May 9 09:53 /proc/5526/exe ->
/usr/bin/qemu-arm $ cat /proc/$$/cmdline

Is it possible to get this fixed?

Note that the contents of $$/cmdline are dependent on program memory,
and that a program is free to modify the bytes referenced by argv.

perl -e '$0 = "foo"; system "cat /proc/$$/cmdline";'

Yes this shows "foo". But /proc/PID/comm does not.
BTW the programs I've tested do not change argv.

Doing so does not change the fact that you are still running the same
executable, hence the "exe" symlinks stays the same.

It does not show the executed binary.


To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >