[OpenSIPS-Devel] [ opensips-Bugs-2948561 ] deadlock on pua presentity lock

SourceForge.net noreply at sourceforge.net
Tue Feb 9 17:53:27 CET 2010


Bugs item #2948561, was opened at 2010-02-09 17:38
Message generated for change (Comment added) made by anca_vamanu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2948561&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.6.x
Status: Open
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Walter Doekes (wdoekes)
>Assigned to: Anca Vamanu (anca_vamanu)
Summary: deadlock on pua presentity lock

Initial Comment:
Hi,

when sending the PUBLISH messages to self, using:
modparam("pua_dialoginfo", "presence_server", "sip:a.b.c.d:5060") # send PUBLISH messages to self
I get a deadlock of the entire opensips daemon.

If I send the messages to somewhere else, the deadlock does not occur.

If I release the locks as per the attached patch, the deadlock doesn't occur either.
But according to the comments in the code, the lock is not meant to be freed just yet. So I'm not sure what my patch breaks instead. (I'm not even sure I'm supposed to publish to self, but it seems like it, as I want to generate notifies based on the state changes found in the publish.)


I'm running 1.6-svn (r6568)

Regards,
Walter Doekes
OSSO B.V.

----------------------------------------------------------------------

>Comment By: Anca Vamanu (anca_vamanu)
Date: 2010-02-09 18:53

Message:
Hi Walter,

That is not the right fix, because that lock must actually be kept until
the reply is received. I want to reproduce this myself to be able to
investigate. I don't understand exactly which is the case when you get
deadlock. You subscribe for dialog event to yoursefl? Is this it?

Regards,
Anca

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2948561&group_id=232389



More information about the Devel mailing list