tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Scheibe <alexandersche...@meetingsphere.com>
Subject Re: Tomcat JVM Crash
Date Mon, 24 Nov 2014 13:01:16 GMT
Hi, 

I also have this problem appearing every several weeks. And had also
reported this to Oracle some time ago but never got any feedback. 

I have now found an example JSP which always always crashes the JVM for me
on Linux and Windows.

I limited the list of ciphers to only GCM cipher suites
(TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_GCM_SHA256,
TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,
TLS_DHE_DSS_WITH_AES_128_GCM_SHA256)

and called this JSP: 

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
&quot;http://www.w3.org/TR/html4/loose.dtd&quot;>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Demo</title>
</head>
<body>
<%
    StringBuffer sb = (StringBuffer) session.getAttribute("string-buffer");
    if(null == sb) {
        sb = new StringBuffer();
        session.setAttribute("string-buffer", sb);
    }
    sb.append("X");
    System.out.printf("Buffer length is %d\n", sb.length());
%>
Hello
<form action="/jvmCrashTest.jsp" method="post" id="theForm">
    <input type="hidden" name="uplinkType" value="rev"/>
    <input type=&quot;hidden&quot; name=&quot;content&quot;
value=&quot;&lt;%=sb.toString()%>"/>
    <input type="submit" value="Send"/>
</form>

</body>
</html>


After about 4073 request the JVM crashes. 

Doesn't matter if the JSP gets called from Chrome or Internet Explorer

I reported my reproduction to Oracle too, but since you Chad seams to be in
contact with them you could point them to this post. 

Thanks,
Alexander



--
View this message in context: http://tomcat.10.x6.nabble.com/Tomcat-JVM-Crash-tp5022790p5025871.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message