[sr-dev] [tracker] Task opened: modules/usrloc deadlock on load/restart (Attachment added)

sip-router bugtracker at sip-router.org
Sun Dec 8 17:53:35 CET 2013


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Seudin Kasumovic (seudin) 

Attached to Project - sip-router
Summary - modules/usrloc deadlock on load/restart
Task Type - Bug Report
Category - Modules kamailio
Status - Unconfirmed
Assigned To - 
Operating System - Linux
Severity - Critical
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - Hi,

kamailio stops responding when location and location_attr table contains non expired contacts and attributes.

I have these settings for usrloc module:

modparam("usrloc", "nat_bflag", FLB_NATB)
modparam("usrloc", "xavp_contact", "ulattrs")
modparam("usrloc", "db_mode", 2)

output of 'bt full' is attached. 

function uldb_preload_attrs locks table by lock_udomain function and then calls get_urecord_by_ruid which again try to locks table.

Workaround by removing lock/unloc domain helps, but then operation is not atomic.

Regards,
Seudin

--
version: kamailio 4.1.0 (i386/linux) 
flags: STATS: Off, EXTRA_DEBUG, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id:  
compiled on 16:45:39 Dec  6 2013 with gcc 4.5.4

One or more files have been attached.

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=378

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list