qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Ingham (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (QPID-5295) [AMQP 1.0 JMS] Thread deadlock
Date Wed, 06 Nov 2013 11:38:17 GMT

     [ https://issues.apache.org/jira/browse/QPID-5295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Ingham updated QPID-5295:
-------------------------------

    Attachment: QPID-5295.patch

Proposed fix attach as QPID-5295.patch.

> [AMQP 1.0 JMS] Thread deadlock
> ------------------------------
>
>                 Key: QPID-5295
>                 URL: https://issues.apache.org/jira/browse/QPID-5295
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.24
>            Reporter: David Ingham
>         Attachments: QPID-5295.patch
>
>
> The following thread deadlock is occasionally seen.
> "pool-20-thread-5" prio=10 tid=0x00007f51080b8800 nid=0xe438 in Object.wait() [0x00007f518c294000]
>      java.lang.Thread.State: BLOCKED (on object monitor)
>      at java.lang.Object.wait(Native Method)
>      at java.lang.Object.wait(Object.java:503)
>      at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:177)
>      - locked < 0x000000078b477ea8> (a org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint)
>      at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:107)
>      at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:100)
>      at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:86)
>      at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:72)
>      at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:66)
>      at org.apache.qpid.amqp_1_0.client.Session$1.<init>(Session.java:83)
>      at org.apache.qpid.amqp_1_0.client.Session.createSender(Session.java:82)
>      - locked < 0x000000078b478168> (a org.apache.qpid.amqp_1_0.client.Session)
>      at org.apache.qpid.amqp_1_0.jms.impl.MessageProducerImpl.<init>(MessageProducerImpl.java:78)
>      at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.createProducer(SessionImpl.java:360)
>      at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.createProducer(SessionImpl.java:66)
>      at com.customer.stream.transport.amqp.qpid.QpidSessionWrapper.createProducer(QpidSessionWrapper.java:119)
>      at com.customer.stream.transport.amqp.qpid.QpidProducerWrapper.open(QpidProducerWrapper.java:363)
>      at com.customer.stream.transport.amqp.qpid.QpidConnectionWrapper.getProducer(QpidConnectionWrapper.java:428)
>      at com.customer.stream.transport.amqp.qpid.QpidConnectionWrapper.sendMessage(QpidConnectionWrapper.java:669)
>      at com.customer.stream.transport.amqp.qpid.QpidTransportImpl.processEvent(QpidTransportImpl.java:268)
>      at com.customer.stream.config.ActiveTransportDelegate.processEvent(ActiveTransportDelegate.java:53)
>      at com.customer.stream.config.SwitchableEdaEventProcessorDelegate.processEvent(SwitchableEdaEventProcessorDelegate.java:13)
>      at com.customer.common.eda.groupedqueue.GroupedQueueConsumer$ChannelConsumer.processNext(GroupedQueueConsumer.java:207)
>      at com.customer.common.eda.groupedqueue.GroupedQueueConsumer$ChannelConsumer.run(GroupedQueueConsumer.java:170)
>      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>      at java.lang.Thread.run(Thread.java:724) 
> "Thread-3777" daemon prio=10 tid=0x00007f5190120000 nid=0x139e waiting for monitor entry
[0x00007f5187406000]
>      java.lang.Thread.State: BLOCKED (on object monitor)
>      at java.lang.Object.wait(Native Method)
>      at org.apache.qpid.amqp_1_0.framing.ConnectionHandler$FrameOutput.getNextFrame(ConnectionHandler.java:175)
>      - locked < 0x000000078b477ea8> (a org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint)
>      at org.apache.qpid.amqp_1_0.framing.ConnectionHandler$FrameToBytesSourceAdapter.getBytes(ConnectionHandler.java:275)
>      at org.apache.qpid.amqp_1_0.framing.ConnectionHandler$SequentialBytesSource.getBytes(ConnectionHandler.java:371)
>      - locked < 0x000000078b4979f8> (a org.apache.qpid.amqp_1_0.framing.ConnectionHandler$SequentialBytesSource)
>      at org.apache.qpid.amqp_1_0.framing.ConnectionHandler$BytesOutputHandler.run(ConnectionHandler.java:406)
>      at java.lang.Thread.run(Thread.java:724) 
> "Thread-3778"  daemon prio=10 tid=0x00007f519010e000 nid=0x139f waiting for monitor entry
[0x00007f5185df0000]
>      java.lang.Thread.State: BLOCKED (on object monitor)
>      at org.apache.qpid.amqp_1_0.client.Session.close(Session.java:269)
>      - waiting to lock <0x000000078b478168> (a org.apache.qpid.amqp_1_0.client.Session)
>      at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.close(SessionImpl.java:287)
>      at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl$1.remoteEnd(SessionImpl.java:117)
>      at org.apache.qpid.amqp_1_0.transport.SessionEndpoint.end(SessionEndpoint.java:166)
>      - locked < 0x000000078b477ea8> (a org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint)
>      at org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint.receiveEnd(ConnectionEndpoint.java:544)
>      - locked < 0x000000078b477ea8> (a org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint)
>      at org.apache.qpid.amqp_1_0.type.transport.End.invoke(End.java:75)
>      at org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint.receive(ConnectionEndpoint.java:684)
>      - locked < 0x000000078b477ea8> (a org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint)
>      at org.apache.qpid.amqp_1_0.framing.FrameHandler.parse(FrameHandler.java:242)
>      at org.apache.qpid.amqp_1_0.framing.ConnectionHandler.parse(ConnectionHandler.java:70)
>      at org.apache.qpid.amqp_1_0.client.Connection.doRead(Connection.java:399)
>      at org.apache.qpid.amqp_1_0.client.Connection.access$000(Connection.java:47)
>      at org.apache.qpid.amqp_1_0.client.Connection$2.run(Connection.java:259)
>      at java.lang.Thread.run(Thread.java:724) 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message