Re: [Valgrind-users] ==10087== Unsupported clone() flags: 0x104011

2018-04-14 Thread Philippe Waroquiers
On Fri, 2018-04-13 at 18:27 +, Rachel Chen (rychen) wrote:
> Index: 
> third-party/src/valgrind/valgrind-3.4.1/coregrind/m_syswrap/syswrap-x86-linux.c
The release 3.4.1 is from 2009.
I suggest to upgrade to the last release (3.13.0), as it is unlikely
someone will be willing/able to provide support on this very old version.

Since 3.4.1, all this clone flags related code was heavily
restructured/reworked, and supports somewhat more combinations.

So, maybe 3.13.0 will solve your problem.
Feedback welcome ...

Philippe 


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


[Valgrind-users] ==10087== Unsupported clone() flags: 0x104011

2018-04-13 Thread Rachel Chen (rychen)
Hello,

I encountered the Unsupported clone() error as following:

==10087==
==10087== Unsupported clone() flags: 0x104011
==10087==
==10087== The only supported clone() uses are:
==10087==  - via a threads library (LinuxThreads or NPTL)
==10087==  - via the implementation of fork or vfork
==10087==  - for the Quadrics Elan3 user-space driver
==10087==
==10087== Valgrind detected that your program requires
==10087== the following unimplemented functionality:
==10087==Valgrind does not support general clone().
==10087== This may be because the functionality is hard to implement,
==10087== or because no reasonable program would behave this way,
==10087== or because nobody has yet needed it.  In any case, let us know at
==10087== www.valgrind.org and/or try to work around the problem, if you can.
==10087==
==10087== Valgrind has to exit now.  Sorry.  Bye!
==10087==

I manually changed syswrap-x86-linux.c with the cloneflag added in the code, 
but I still get same error. Is there any other workaround for this issue? Here 
is the code change I have for the file syswrap-x86-linux.c.

Index: 
third-party/src/valgrind/valgrind-3.4.1/coregrind/m_syswrap/syswrap-x86-linux.c
===
diff --git a/valgrind-3.4.1/coregrind/m_syswrap/syswrap-x86-linux.c 
b/valgrind-3.4.1/coregrind/m_syswrap/syswrap-x86
-linux.c
index 4838271..f5afdaf 100644
--- a/valgrind-3.4.1/coregrind/m_syswrap/syswrap-x86-linux.c
+++ b/valgrind-3.4.1/coregrind/m_syswrap/syswrap-x86-linux.c
@@ -886,6 +886,7 @@ PRE(sys_clone)
   || cloneflags == 0x790F00
   || cloneflags == 0x3D0F00
   || cloneflags == 0x410F00
+  || cloneflags == 0x104011
   || cloneflags == 0xF00
   || cloneflags == 0xF21)) {
  /* OK */

Appreciate any input on this. Thanks for the help in advance.

Regards,
Rachel


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users