https://bugs.kde.org/show_bug.cgi?id=373192
--- Comment #7 from Philippe Waroquiers <philippe.waroqui...@skynet.be> --- (In reply to megahallon from comment #0) > Executing the program below with valgrind 3.12 built from sources on Fedora > 25 gives the following output: > > pid 21786 child 21787 r 0 > pid 21787 child 83036382 r 0 As far as I can see, the above happens because Valgrind transforms a clone (SIGCHLD | CLONE_VFORK | CLONE_VM) into a simple clone(SIGCHLD) but wrongly assumes that both parent and child will check for clone return code, and executes 'their' part of the code. I have not (yet) understood where/how Valgrind gives the guest thread function pointer for a 'thread clone'. If/when I understand that, it might be possible to ensure that the cloned child 'jumps' to the correct function for a vfork clone transformed into a 'normal fork'. -- You are receiving this mail because: You are watching all bug changes.