From owner-freebsd-questions@FreeBSD.ORG Thu Jul 31 14:47:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 226DC106568D for ; Thu, 31 Jul 2008 14:47:17 +0000 (UTC) (envelope-from modelnine@modelnine.org) Received: from jord.modelnine.org (jord.modelnine.org [83.246.72.120]) by mx1.freebsd.org (Postfix) with ESMTP id DBF8A8FC08 for ; Thu, 31 Jul 2008 14:47:16 +0000 (UTC) (envelope-from modelnine@modelnine.org) Received: from [192.168.1.37] (a89-182-210-48.net-htp.de [89.182.210.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: modelnine) by jord.modelnine.org (Postfix) with ESMTPSA id A8241A40CC0 for ; Thu, 31 Jul 2008 16:27:30 +0200 (CEST) From: Heiko Wundram To: freebsd-questions@freebsd.org Date: Thu, 31 Jul 2008 16:31:30 +0200 User-Agent: KMail/1.9.7 References: <489084E7.40202@netfence.it> <4891C9E4.8060903@netfence.it> In-Reply-To: <4891C9E4.8060903@netfence.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807311631.31067.modelnine@modelnine.org> Subject: Re: valgrind X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2008 14:47:17 -0000 Am Donnerstag, 31. Juli 2008 16:19:16 schrieb Andrea Venturoli: > > Or remove the line 'ONLY_FOR_ARCHS= i386' from the port Makefile, try it > > and see where it breaks. :-) I'm guessing it need some support code in > > the OS. > > That was more my question. There must be some OS support which FreeBSD > i386 has and FreeBSD amd64 has not. It was just curiosity, though. AFAIK it's not about OS-support for valgrind being required (but there is a module for freebsd which speeds up valgrind considerably), but about syscall-support. valgrind has/requires wrappers for all _possible_ syscalls to be able to implement it's memory-checker and some other functionality, and that table of callbacks and the callbacks themselves simply aren't implemented for amd64 (which has different syscalls/syscall parameters than i386). A porting effort is under way, as far as I recall a discussion on freebsd-hackers I had for a similar reason (the current valgrind that's in ports won't run on any 7.x, because the syscalls changed/were extended somewhat from the 6.x-series, and the table hasn't been adapted correspondingly), but the last time I pulled that porting effort (which is now about two months ago) and compiled it, valgrind was pretty much useless for me (even though it runs), because it couldn't deal with threads (i.e., the syscalls responsible for thread creation/management). Just check in the archives of freebsd-hackers, possibly what's currently present (someone did a tarball) is enough for your purposes. But, YMMV. -- Heiko Wundram