tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49985] Lazy initialization without any synchronization - data race in AstInteger, AstFloatingPoint, AstString
Date Fri, 01 Oct 2010 12:28:10 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49985

--- Comment #6 from Sergey Vorobyev <sergeyvorobyev@google.com> 2010-10-01 08:28:06
EDT ---
Lock at this stack-traces to see how this method can be on invoked from a
number of threads:
(I'm using dacapo tomcat benchmark)

AstInteger:

   Thread 22
    #0  org/apache/el/parser/AstInteger.getInteger AstInteger.java:42
    #1  org/apache/el/parser/AstInteger.getValue AstInteger.java:57
    #2  org/apache/el/parser/AstDiv.getValue AstDiv.java:39
    #3  org/apache/el/parser/AstGreaterThan.getValue AstGreaterThan.java:41
    #4  org/apache/el/ValueExpressionImpl.getValue ValueExpressionImpl.java:186
    #5  org/apache/jasper/runtime/PageContextImpl.proprietaryEvaluate
PageContextImpl.java:935
    #6  org/apache/jsp/jsp/jsp2/el/basic_002dcomparisons_jsp._jspService
basic_002dcomparisons_jsp.java:115
    #7  org/apache/jasper/runtime/HttpJspBase.service HttpJspBase.java:70
    #8  javax/servlet/http/HttpServlet.service HttpServlet.java:717
    #9  org/apache/jasper/servlet/JspServletWrapper.service
JspServletWrapper.java:377
    #10 org/apache/jasper/servlet/JspServlet.serviceJspFile JspServlet.java:313
    #11 org/apache/jasper/servlet/JspServlet.service JspServlet.java:260

 Thread 28
    #0  org/apache/el/parser/AstInteger.getInteger AstInteger.java:40
    #1  org/apache/el/parser/AstInteger.getValue AstInteger.java:57
    #2  org/apache/el/parser/AstDiv.getValue AstDiv.java:39
    #3  org/apache/el/parser/AstGreaterThan.getValue AstGreaterThan.java:41
    #4  org/apache/el/ValueExpressionImpl.getValue ValueExpressionImpl.java:186
    #5  org/apache/jasper/runtime/PageContextImpl.proprietaryEvaluate
PageContextImpl.java:935
    #6  org/apache/jsp/jsp/jsp2/el/basic_002dcomparisons_jsp._jspService
basic_002dcomparisons_jsp.java:115
    #7  org/apache/jasper/runtime/HttpJspBase.service HttpJspBase.java:70
    #8  javax/servlet/http/HttpServlet.service HttpServlet.java:717
    #9  org/apache/jasper/servlet/JspServletWrapper.service
JspServletWrapper.java:377


AstFloatingPoint:

   Thread 22
    #0  org/apache/el/parser/AstFloatingPoint.getFloatingPoint
AstFloatingPoint.java:40
    #1  org/apache/el/parser/AstFloatingPoint.getValue AstFloatingPoint.java:52
    #2  org/apache/el/parser/AstGreaterThanEqual.getValue
AstGreaterThanEqual.java:37
    #3  org/apache/el/ValueExpressionImpl.getValue ValueExpressionImpl.java:186
    #4  org/apache/jasper/runtime/PageContextImpl.proprietaryEvaluate
PageContextImpl.java:935
    #5  org/apache/jsp/jsp/jsp2/el/basic_002dcomparisons_jsp._jspService
basic_002dcomparisons_jsp.java:121
    #6  org/apache/jasper/runtime/HttpJspBase.service HttpJspBase.java:70
    #7  javax/servlet/http/HttpServlet.service HttpServlet.java:717
    #8  org/apache/jasper/servlet/JspServletWrapper.service
JspServletWrapper.java:377
    #9  org/apache/jasper/servlet/JspServlet.serviceJspFile JspServlet.java:313
    #10 org/apache/jasper/servlet/JspServlet.service JspServlet.java:260
    #11 javax/servlet/http/HttpServlet.service HttpServlet.java:717

 Thread 28
    #0  org/apache/el/parser/AstFloatingPoint.getFloatingPoint
AstFloatingPoint.java:42
    #1  org/apache/el/parser/AstFloatingPoint.getValue AstFloatingPoint.java:52
    #2  org/apache/el/parser/AstGreaterThanEqual.getValue
AstGreaterThanEqual.java:37
    #3  org/apache/el/ValueExpressionImpl.getValue ValueExpressionImpl.java:186
    #4  org/apache/jasper/runtime/PageContextImpl.proprietaryEvaluate
PageContextImpl.java:935
    #5  org/apache/jsp/jsp/jsp2/el/basic_002dcomparisons_jsp._jspService
basic_002dcomparisons_jsp.java:121
    #6  org/apache/jasper/runtime/HttpJspBase.service HttpJspBase.java:70
    #7  javax/servlet/http/HttpServlet.service HttpServlet.java:717
    #8  org/apache/jasper/servlet/JspServletWrapper.service
JspServletWrapper.java:377
    #9  org/apache/jasper/servlet/JspServlet.serviceJspFile JspServlet.java:313

AstString:
   Thread 22
    #0  org/apache/el/parser/AstString.getString AstString.java:38
    #1  org/apache/el/parser/AstString.getValue AstString.java:51
    #2  org/apache/el/parser/AstLessThan.getValue AstLessThan.java:37
    #3  org/apache/el/ValueExpressionImpl.getValue ValueExpressionImpl.java:186
    #4  org/apache/jasper/runtime/PageContextImpl.proprietaryEvaluate
PageContextImpl.java:935
    #5  org/apache/jsp/jsp/jsp2/el/basic_002dcomparisons_jsp._jspService
basic_002dcomparisons_jsp.java:179
    #6  org/apache/jasper/runtime/HttpJspBase.service HttpJspBase.java:70
    #7  javax/servlet/http/HttpServlet.service HttpServlet.java:717
    #8  org/apache/jasper/servlet/JspServletWrapper.service
JspServletWrapper.java:377
    #9  org/apache/jasper/servlet/JspServlet.serviceJspFile JspServlet.java:313
    #10 org/apache/jasper/servlet/JspServlet.service JspServlet.java:260
    #11 javax/servlet/http/HttpServlet.service HttpServlet.java:717

  Thread 28
    #0  org/apache/el/parser/AstString.getString AstString.java:39
    #1  org/apache/el/parser/AstString.getValue AstString.java:51
    #2  org/apache/el/parser/AstLessThan.getValue AstLessThan.java:37
    #3  org/apache/el/ValueExpressionImpl.getValue ValueExpressionImpl.java:186
    #4  org/apache/jasper/runtime/PageContextImpl.proprietaryEvaluate
PageContextImpl.java:935
    #5  org/apache/jsp/jsp/jsp2/el/basic_002dcomparisons_jsp._jspService
basic_002dcomparisons_jsp.java:179
    #6  org/apache/jasper/runtime/HttpJspBase.service HttpJspBase.java:70
    #7  javax/servlet/http/HttpServlet.service HttpServlet.java:717
    #8  org/apache/jasper/servlet/JspServletWrapper.service
JspServletWrapper.java:377
    #9  org/apache/jasper/servlet/JspServlet.serviceJspFile JspServlet.java:313

-- 
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


Mime
View raw message