Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A2493200CFD for ; Wed, 6 Sep 2017 22:59:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A0C511609C5; Wed, 6 Sep 2017 20:59:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E5FEA1609BA for ; Wed, 6 Sep 2017 22:59:42 +0200 (CEST) Received: (qmail 19257 invoked by uid 500); 6 Sep 2017 20:59:41 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 19246 invoked by uid 99); 6 Sep 2017 20:59:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 20:59:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 63761D15FD for ; Wed, 6 Sep 2017 20:59:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id jTkPBPca7pry for ; Wed, 6 Sep 2017 20:59:35 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 5760060EF3 for ; Wed, 6 Sep 2017 20:59:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v86KxWW3030763; Wed, 6 Sep 2017 20:59:32 GMT Message-Id: <201709062059.v86KxWW3030763@ip-10-146-233-104.ec2.internal> Date: Wed, 6 Sep 2017 20:59:32 +0000 From: "Tim Armstrong (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Jim Apple Reply-To: tarmstrong@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5902=3A_add_ThreadSanitizer_build=0A?= X-Gerrit-Change-Id: I22f8faeefa5e157279c5973fe28bc573b7606d50 X-Gerrit-ChangeURL: X-Gerrit-Commit: 73df4b9adf17e70cc7c6705337701bff090ce103 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 archived-at: Wed, 06 Sep 2017 20:59:43 -0000 Tim Armstrong has posted comments on this change. Change subject: IMPALA-5902: add ThreadSanitizer build ...................................................................... Patch Set 1: (8 comments) http://gerrit.cloudera.org:8080/#/c/7977/1/be/src/common/init.cc File be/src/common/init.cc: Line 142: // The metric is refreshed whenever memory is consumed or released via a MemTracker, A while back I changed the Process MemTracker under ASAN to use a metric. This makes it reasonable to call this. Line 199: #ifndef THREAD_SANITIZER > Why can't we run this with TSAN? Should the #ifndef go inside that function There are alternative implementations of the atomic ops for TSAN. That function is not even compiled under TSAN. http://gerrit.cloudera.org:8080/#/c/7977/1/be/src/runtime/query-exec-mgr.cc File be/src/runtime/query-exec-mgr.cc: Line 115: // tcmalloc and address sanitizer cannot be used together > nit: "or thread" Done http://gerrit.cloudera.org:8080/#/c/7977/1/be/src/util/default-path-handlers.cc File be/src/util/default-path-handlers.cc: Line 139: ss << "Memory tracking is not available with address sanitizer builds."; > nit: "or thread" Done http://gerrit.cloudera.org:8080/#/c/7977/1/be/src/util/memory-metrics.cc File be/src/util/memory-metrics.cc: PS1, Line 86: asan > naming? Done http://gerrit.cloudera.org:8080/#/c/7977/1/be/src/util/memory-metrics.h File be/src/util/memory-metrics.h: Line 136: /// Alternative to TCMallocMetric if we're running under Address Sanitizer, which > Naming? Done http://gerrit.cloudera.org:8080/#/c/7977/1/bin/start-impalad.sh File bin/start-impalad.sh: PS1, Line 104: 7 > How did you pick 7? 7 is the maximum value. I saw a few instances where the errors didn't include all info because it was aged otu of the history. https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags I guess I should use the same for the other daemons too for consistency. http://gerrit.cloudera.org:8080/#/c/7977/1/tests/common/environ.py File tests/common/environ.py: Line 135: either compiled with code coverage enabled or a sanitizer. > except ubsan I wasn't sure if UBSAN was just missing from this file - is it just treated as a normal debug build? -- To view, visit http://gerrit.cloudera.org:8080/7977 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I22f8faeefa5e157279c5973fe28bc573b7606d50 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tim Armstrong Gerrit-Reviewer: Jim Apple Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes