From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16069 invoked by alias); 30 Nov 2012 15:59:51 -0000 Received: (qmail 16052 invoked by uid 22791); 30 Nov 2012 15:59:49 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_LV X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Nov 2012 15:59:38 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qAUFxb6x010825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 30 Nov 2012 10:59:37 -0500 Received: from zalov.redhat.com (vpn1-5-70.ams2.redhat.com [10.36.5.70]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qAUFxYHO020533 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Nov 2012 10:59:36 -0500 Received: from zalov.cz (localhost [127.0.0.1]) by zalov.redhat.com (8.14.5/8.14.5) with ESMTP id qAUFxXNN015230; Fri, 30 Nov 2012 16:59:33 +0100 Received: (from jakub@localhost) by zalov.cz (8.14.5/8.14.5/Submit) id qAUFxXRE015229; Fri, 30 Nov 2012 16:59:33 +0100 Date: Fri, 30 Nov 2012 16:06:00 -0000 From: Jakub Jelinek To: Konstantin Serebryany Cc: Wei Mi , GCC Patches , David Li , Diego Novillo , Kostya Serebryany , Dodji Seketeli Subject: Re: [PATCH] asan_test.cc from llvm Message-ID: <20121130155932.GG2315@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20121128102445.GH2315@tucnak.redhat.com> <20121128110327.GI2315@tucnak.redhat.com> <20121129204636.GC2315@tucnak.redhat.com> <20121130101420.GE2315@tucnak.redhat.com> <20121130144602.GF2315@tucnak.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121130144602.GF2315@tucnak.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg02555.txt.bz2 Hi! Here is updated patch, I've added also -fno-builtin which cured some failures (will need to analyze exactly later on if it is just assumptions of the test that are not valid with optimized memory/string etc. builtins or if we have issues on the GCC side), the only change in the imported files besides the two line header changes is a temporary change in the ManyThreads test, and had to tweak slightly also the symbolizer if asan prints [stack] in its backtrace, because that results in tcl errors. OT, seems e.g. the pthread_create interceptor doesn't use ENSURE_ASAN_INITED(), so when one links a threaded program not compiled with -fsanitize=address and just LD_PRELOADs libasan.so.0 (or links against it), then asan crashes. Jakub