Hi  Team,

1. I have created a simple  program ./a.out and make a check
if(RUNNING_ON_VALGRIND) but still same error is coming.

2. I am trying to run ./a.out on arm board as it is compile for it also
valgrind is running there only

Thanks
Kunal


On Fri, May 15, 2020 at 2:51 PM Paul FLOYD <pjfl...@wanadoo.fr> wrote:

>
>
> > Message du 15/05/20 10:22
> > De : "Kunal Chauhan"
>
>
> > ==6660== Warning: Can't execute setuid/setgid/setcap executable:
> ./lte_tr069
> > ==6660== Possible workaround: remove --trace-children=yes, if in effect
> > ==6660==
> > valgrind: ./lte_tr069: Permission denied
>
>
> Hi
>
> The problem is that your application (or something that your application
> is executing) is trying to switch user, group or capabilities. This is
> likely to interfere with the workings of Valgrind. As an
> example of this, Valgrind often needs to open new log files. This may fail
> if Valgrind has switched user/group/caps.
>
> This is more likely to happen if you are running Valgrind on a wrapper
> script and using the --trace-children=yes. For instance you might be on a
> system where utilities like 'basename' and
> 'dirname' are security hardened. If they are used in your wrapper this
> could result in the problem you are seeing.
>
> Alternatively, if you are not using a wrapper, then the best workaround is
> to have some special Valgrind handling in your executable. See
> http://valgrind.org/docs/manual/manual-core-
> adv.html#manual-core-adv.clientreq
> <http://valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.clientreq>
>
> So you could write some code like
>
> if (!RUNNING_ON_VALGRIND)
> {
> // your setcap calls
> }
>
> A+
> Paul
>
>
>
> _______________________________________________
> Valgrind-users mailing list
> Valgrind-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>


-- 
*Thanks with Regards!*

*Kunal Chauhan*
*Mob:09813614826*
*Mob:08860397903*

*E-mail:atkunalchau...@gmail.com <e-mail%3aatkunalchau...@gmail.com>*
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to