SUMMARY By the https://github.com/systemd/systemd/issues/2187, I try to debug systemd (pid 1) memory leak using valgrind. Kernel boot command is below: /usr/bin/valgrind --leak-check=full --log-file=/valgrind.out /lib/systemd/systemd Boot log and result of "/usr/bin/valgrind /lib/systemd/systemd" OBSERVED RESULT [ 11.653187] /usr/bin/valgrind --leak-check=full --log-file=/valgrind.out /lib/systemd/systemdsh: cannot set terminal process group (-1): Inappropriate ioctl for device sh: no job control in this shell sh-4.3# /usr/bin/valgrind /lib/systemd/systemd valgrind: warning (non-fatal): readlink("/proc/self/exe") failed. valgrind: continuing, however --trace-children=yes will not work. --247:0: aspacem Valgrind: FATAL: can't open /proc/self/maps --247:0: aspacem Exiting now. EXPECTED RESULT In this link https://github.com/systemd/systemd/issues/2187, valgrind can debug systemd(pid 1) SOFTWARE/OS VERSIONS Linux: 2.6 or yocto dunfell
*** This bug has been marked as a duplicate of bug 464185 ***