From patchwork Tue May 24 18:42:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 9134145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 313E16075E for ; Tue, 24 May 2016 18:43:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28DBE281E2 for ; Tue, 24 May 2016 18:43:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B19A282A2; Tue, 24 May 2016 18:43:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 33768281E2 for ; Tue, 24 May 2016 18:43:03 +0000 (UTC) Received: from localhost ([::1]:54902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5HID-0004ct-GM for patchwork-qemu-devel@patchwork.kernel.org; Tue, 24 May 2016 14:43:01 -0400 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 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 993962066B; Tue, 24 May 2016 14:42:28 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 24 May 2016 14:42:28 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=braap.org; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=xUuK4cIizCkegvV358FU398QvbI=; b=V0TCZ3 PZ6FH2+MA/uD9d70gpq27r/BPq4Q9iuT4f/ZrSwhTuVZjkwheTOTayt2EnflxJ/D sdAJTkIzlhUwPl30ZSp3cBhj3fwNlxL6pb2eMONIdtfZYczUrkU4jD5WmlyNcH/R NXTpfID4700fxt+v7DM+HtaLjBxbfHeKKRnDw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=xUuK4cIizCkegvV 358FU398QvbI=; b=dl5qSajoeTYZ2PMgEEaNBmUJTeCOtdZmdY06+UaX8cVACPq DQKUYtNAdgXGzBSgYKxcKt0p+WpY6QrsbQZSe+LD9s8lYyGHtfmL6qZ9nGjs7xyQ /PRaWXnrnbmpVstsRabrz3JWM9QJTwoPRJASmmebPWXnHyVoHfz8L2GD9SZU= X-Sasl-enc: VSJb48/2HrsojepmYRPdcL26q0YMqYKwjqXv5xr5HPxk 1464115348 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 4FF65CCDA9; Tue, 24 May 2016 14:42:28 -0400 (EDT) Date: Tue, 24 May 2016 14:42:28 -0400 From: "Emilio G. Cota" To: Alex =?iso-8859-1?Q?Benn=E9e?= 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-Disposition: inline In-Reply-To: <8737pah6bo.fsf@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 Subject: Re: [Qemu-devel] [PATCH 1/2] atomics: do not use __atomic primitives for RCU atomics X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: MTTCG Devel , Paolo Bonzini , Sergey Fedorov , QEMU Developers , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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=""