Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 56972 invoked from network); 1 Oct 2010 13:35:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 13:35:16 -0000 Received: (qmail 83280 invoked by uid 500); 1 Oct 2010 13:35:16 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 82710 invoked by uid 500); 1 Oct 2010 13:35:13 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 82697 invoked by uid 99); 1 Oct 2010 13:35:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 13:35:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 13:35:11 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o91DYoeW020736 for ; Fri, 1 Oct 2010 13:34:50 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id o91DYoGh020735; Fri, 1 Oct 2010 09:34:50 -0400 (EDT) Date: Fri, 1 Oct 2010 09:34:50 -0400 (EDT) Message-Id: <201010011334.o91DYoGh020735@thor.apache.org> From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 49985] Lazy initialization without any synchronization - data race in AstInteger, AstFloatingPoint, AstString X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 6 X-Bugzilla-Component: Catalina X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sergeyvorobyev@google.com X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: default X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=49985 --- Comment #8 from Sergey Vorobyev 2010-10-01 09:34:45 EDT --- (In reply to comment #7) > (In reply to comment #6) > > Lock at this stack-traces to see how this method can be on invoked from a > > number of threads: > > But is each thread in the pair using the same instance? There's no evidence of > that in the published trace. I omit first line of race report, sorry. WARNING: Possible data race during write of size 1 at 0x76a1569c: {{{ ... Where 0x76a1569c is hashCode of object and field. Also I always add something like this in critical sections: int hash = System.identityHashCode(this); long tid = Thread.currentThread().getId(); System.out.println(">>VER>> START WRITE/READ " + tid + " " + hash); try { Thread.sleep(10); } catch (InterruptedException e) { throw new RuntimeException(e); } System.out.println(">>VER>> END WRITE/READ " + tid + " " + hash); And analise stdout. This race was verified. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org