Hi All,
I have been experiencing a deadlock when a timeout occurs on a t_relayed()
INVITE. Going through the code I have noticed a possible chance of deadlock
(without re-entrant enabled). Here is my thinking:
t_should_relay_response() is called with REPLY_LOCK when the timer process
fires on the fr_inv_timer (no response from the INVITE that was relayed,
other than 100 provisional) and a 408 is generated. However, from within
that function there are calls to run_failure_handlers() which in turn
*could* try and lock the reply (viz. somebody having a t_reply() call in
the cfg file - in failure route block). This would result in another lock
on the same transaction's REPLY_LOCK....
Has anybody else experienced something like this?
this is on master btw.
Cheers
Jason
Module: kamailio
Branch: master
Commit: 545037884e806df0d450fd6d7b425808c944d8a8
URL: https://github.com/kamailio/kamailio/commit/545037884e806df0d450fd6d7b42580…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-04-08T16:30:22+02:00
kamctl: added help for 'db connect' command
---
Modified: utils/kamctl/kamctl.sqlbase
---
Diff: https://github.com/kamailio/kamailio/commit/545037884e806df0d450fd6d7b42580…
Patch: https://github.com/kamailio/kamailio/commit/545037884e806df0d450fd6d7b42580…
---
diff --git a/utils/kamctl/kamctl.sqlbase b/utils/kamctl/kamctl.sqlbase
index 53d32f9..06481e7 100644
--- a/utils/kamctl/kamctl.sqlbase
+++ b/utils/kamctl/kamctl.sqlbase
@@ -67,6 +67,7 @@ cat <<EOF
........................... column key equal to value as string
db nmatch <table> <key> <value>...... display record from table that has
........................... column key equal to value as non-string
+ db connect .......................... connect to db server via cli
EOF
}
USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_db_ops"