You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "LiMing (JIRA)" <ji...@apache.org> on 2014/04/28 10:05:15 UTC
[jira] [Created] (THRIFT-2500) sending random data crashes thrift
service
LiMing created THRIFT-2500:
------------------------------
Summary: sending random data crashes thrift service
Key: THRIFT-2500
URL: https://issues.apache.org/jira/browse/THRIFT-2500
Project: Thrift
Issue Type: Bug
Components: Java - Library
Affects Versions: 0.2
Reporter: LiMing
Assignee: David Reiss
Priority: Critical
Fix For: 0.3
Sending random data to a Java thrift service causes it to crash with extreme prejudice.
dd if=/dev/urandom count=1 | nc $host 9160
... produces ...
java.lang.OutOfMemoryError: Java heap space
at org.apache.thrift.protocol.TBinaryProtocol.readStringBody(TBinaryProtocol.java:296)
at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:203)
at org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:615)
at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:253)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
--
This message was sent by Atlassian JIRA
(v6.2#6252)