On 23/12/13 14:25, Juha Heinanen wrote:
file http://box.tutpro.com/tmp/gdb_kamailio_20131223_145323 contains gdb bt
of all presence server processes when presence server is not responding to
any new requests.  looks like several processes are in futexlock.h if that
tells something.
It is a sign of deadlock.

I looked quickly over the code and it seems that in 4.0 there are some error cases when an acquired lock is not released.

Didn't have the time to make a fix, but if someone has time before I can get back to it, look in pua module, in send_subscribe.c, send_subscribe(...) function.

If the module is not in PUA_DB_ONLY, there is a lock acquired:

lock_get(&HashT->p_records[hash_code].lock);

And in the following lines of code I could spot some 'goto error' without a lock_release(). To get a patch, I would need more time to spot all the cases, which I don't have for the moment. Maybe someone else can jump in, otherwise I will look over it when I get the first chance.

Cheers,
Daniel

this is with kamailio 4.0.

-- juha

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to