From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5HHy-0004cZ-FK for qemu-devel@nongnu.org; Tue, 24 May 2016 14:42:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5HHt-0006g0-Gm for qemu-devel@nongnu.org; Tue, 24 May 2016 14:42:45 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:55968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5HHr-0006bB-3r for qemu-devel@nongnu.org; Tue, 24 May 2016 14:42:41 -0400 Date: Tue, 24 May 2016 14:42:28 -0400 From: "Emilio G. Cota" Message-ID: <20160524184228.GA16037@flamenco> References: <1463863336-28760-1-git-send-email-cota@braap.org> <1463863336-28760-2-git-send-email-cota@braap.org> <8737pah6bo.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8737pah6bo.fsf@linaro.org> Subject: Re: [Qemu-devel] [PATCH 1/2] atomics: do not use __atomic primitives for RCU atomics List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: QEMU Developers , MTTCG Devel , Paolo Bonzini , Richard Henderson , Sergey Fedorov On Sun, May 22, 2016 at 08:58:51 +0100, Alex Bennée wrote: > For tsan runs you need to re-build with: > > ./configure --cc=gcc --extra-cflags="-pie -fPIE -fsanitize=thread" --with-coroutine=gthread > > Specifically the coroutine ucontext messing really confuses TSAN. With your configure args + the appended I can at least compile arm-softmmu, but I still get: FATAL: ThreadSanitizer: unexpected memory mapping 0x55d9f389d000-0x55d9f4111000 Am I missing something? Thanks, Emilio diff --git a/configure b/configure index ab54f3c..a8903fe 100755 --- a/configure +++ b/configure @@ -112,7 +112,7 @@ compile_object() { compile_prog() { local_cflags="$1" - local_ldflags="$2" + local_ldflags="$2 -ltsan" do_cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags } @@ -174,12 +174,12 @@ audio_drv_list="" block_drv_rw_whitelist="" block_drv_ro_whitelist="" host_cc="cc" -libs_softmmu="" -libs_tools="" +libs_softmmu="-ltsan" +libs_tools="-ltsan" audio_pt_int="" audio_win_int="" cc_i386=i386-pc-linux-gnu-gcc -libs_qga="" +libs_qga="-ltsan" debug_info="yes" stack_protector=""