Project

General

Profile

deadlock !!

Hic cup
Added over 4 years ago

Thread dump as follow:

    at tigase.xmpp.XMPPResourceConnection.streamClosed(XMPPResourceConnection.java:430)
    - waiting to lock <0x0000000783eb8d08> (a tigase.xmpp.XMPPResourceConnection)
    at tigase.xmpp.XMPPResourceConnection.logout(XMPPResourceConnection.java:305)
    at tigase.xmpp.XMPPSession.addResourceConnection(XMPPSession.java:130)
    at tigase.xmpp.XMPPResourceConnection.setResource(XMPPResourceConnection.java:1017)
    at tigase.xmpp.impl.JabberIqAuth.process(JabberIqAuth.java:277)
    - locked <0x0000000783eaad68> (a tigase.xmpp.XMPPResourceConnection)
    at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2689)
    at tigase.util.WorkerThread.run(WorkerThread.java:132)
"jabber:iq:auth Queue Worker 5":
    at tigase.xmpp.XMPPResourceConnection.streamClosed(XMPPResourceConnection.java:430)
    - waiting to lock <0x0000000783eaad68> (a tigase.xmpp.XMPPResourceConnection)
    at tigase.xmpp.XMPPResourceConnection.logout(XMPPResourceConnection.java:305)
    at tigase.xmpp.XMPPSession.addResourceConnection(XMPPSession.java:130)
    at tigase.xmpp.XMPPResourceConnection.setResource(XMPPResourceConnection.java:1017)
    at tigase.xmpp.impl.JabberIqAuth.process(JabberIqAuth.java:277)
    - locked <0x0000000783eb8d08> (a tigase.xmpp.XMPPResourceConnection)
    at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2689)
    at tigase.util.WorkerThread.run(WorkerThread.java:132)


Replies (6)

Added by Hic cup over 4 years ago

additional remarks!

Added by Wojciech Kapcia TigaseTeam over 4 years ago

Cairil Douner wrote:

additional remarks!

Thank you, but please include them in the above linked thread so it will be easier to follow it.

Added by Hic cup over 4 years ago

Seems like at bad network, client try to reconnect again and agian. so two or more resource-bind request arrived the server in the same time. before resource-bind, the anonymous session locked itself and try to close others. when two sessions locked themslves and try to close each other, deadlock happen!

Added by Wojciech Kapcia TigaseTeam over 4 years ago

I've created ticket - please follow it for resolution: #2415

Added by Hic cup over 4 years ago

thx!

    (1-6/6)