[sr-dev] [kamailio] debugger: kamailio freezes when dynamically setting module level(using fifo/rpc), if the module level is not previously set in config file: ```modparam("debugger", "mod_level", "core=2")``` (#463)

Daniel-Constantin Mierla notifications at github.com
Wed Jan 6 17:53:02 CET 2016


This is a recursive access to the same slot in debugger hash table:

* lock the slot to update its list of items
* do shm malloc which does internally a log message which needs to get the value of the log level of an item on that slot

Solutions:

* make the locks reentrant (perhaps the safest in long term)
* reorder the sequence of code so the shm malloc is not done under the lock (under lock do only insert/remove of the item, but allocation/free of item must be done outside of lock region)

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/463#issuecomment-169385986
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160106/d74ce239/attachment.html>


More information about the sr-dev mailing list