This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcov can't collect data when process is executed by systemctl start but it can when executed by ./process
- From: Mason <slash dot tmp at free dot fr>
- To: Xiaoli Feng <xifeng at redhat dot com>
- Cc: GCC help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 31 Jul 2017 11:12:38 +0200
- Subject: Re: gcov can't collect data when process is executed by systemctl start but it can when executed by ./process
- Authentication-results: sourceware.org; auth=none
- References: <809232575.31313906.1501491302667.JavaMail.zimbra@redhat.com> <312354067.31314219.1501491465219.JavaMail.zimbra@redhat.com>
On 31/07/2017 10:57, Xiaoli Feng wrote:
> Hello,
>
> Sorry to noise you. But I don't know how to fixed this issue. The gcov can
> collect code coverage data if the process is executed in shell. But when
> the process is start by systemd service. The *.gcda can't be generated. I google
> many info. But there is no solution. So I only send mail to ask for your help.
> Does any one know what's happen? And where to find the gcov error message?
> If I send the wrong email address. Sorry about that.
Could it be that when the process is run by systemd, it runs
under a different user id, one which is not allowed to write
to the directory?
Regards.