This is not happening when setting the module facility, for the above, same conditions.
This is happening also before pull-request [1] using "kamcmd dbg.mod_level core 1".
After some debugging I've noticed that this is happening when trying to set a level for a module name whose idx = hid&(_dbg_mod_table_size-1); is even number?! (i.e. module name "core" reduces to an even index); the idx is always in the range _dbg_mod_table_size-1 as it should be.

Trying to solve this, I commented the lock_get/release in dbg_set_mod_debug_level() and saw it's working; kamailio doesn't freeze anymore. Thus, I tried to refactor the locks in struct _dbg_mod_slot to be dynamically allocated/deallocated using lock_alloc()/destroy() without success.

I'm out of ideas. Do you have any idea what might lead to this strange deadlock?

[1] #462


Reply to this email directly or view it on GitHub.