From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Jeff Dike Subject: Re: [Valgrind-users] Re: [uml-devel] Re: UML and valgrind Message-ID: <20040804151057.GA7205@ccure.user-mode-linux.org> References: <410EFCDB.8080404@enterasys.com> <200408030517.i735HZUE026250@ccure.user-mode-linux.org> <200408031450.i73EoEvv002040@ccure.user-mode-linux.org> <200408031750.i73HoMvv002966@ccure.user-mode-linux.org> <410FCC70.1050902@enterasys.com> <200408031931.i73JVkvv003367@ccure.user-mode-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 4 Aug 2004 11:10:57 -0400 To: Tom Hughes Cc: "D. Bahi" , Nicholas Nethercote , user-mode-linux-devel@lists.sourceforge.net, valgrind-users@lists.sourceforge.net On Wed, Aug 04, 2004 at 08:52:19AM +0100, Tom Hughes wrote: > I don't see how a patch that small can have made clone work for you in > any version - at the very least you would need a change to vg_syscall.c > to stop it trapping the clone and complaining about it or you would > never actually reach VG_(do_syscall). There may have been more - this was the only bit that I spotted in my old email. In any case, that patch was the guts of the clone support. > But how did you cope with the fact that valgrind doesn't protect it's > internal data structures in any way? You would have all sorts of > problems with two threads trying to access the same data. Despite its use of clone, UML is essentially single-threaded. The child thread goes and does something, and the parent waits for it. There is a window between the clone and wait where both could be executing at the same time, and trashing valgrind data, but I never saw that happen. Jeff ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel