THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#122 - Kamailio 3.1.3 crash
User who did this - Timo Reimann (tr)
----------
@Jasmin: Over the last couple of days, I added a few patches to the dialog module. One of them improves dlg_manage() to deal with spiral detection properly. The code is part of the master and latest 3.1 branches.
@Marius: Is the "quick and dirty" fix to the initial problem part of upstream now so that we can close this bug?
If not, you may want to consider renaming the report's topic to something more meaningful that mirrors the real cause of the problem (which you had analyzed quite thoroughly here).
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=122#comment253
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.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#143 - DLGCB_CONFIRMED triggered on 200/OK, not ACK
User who did this - Timo Reimann (tr)
Reason for closing: Fixed
Additional comments about closing: Fixed in commit 934adcfb9, to be shipped in SIP Router 3.2.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=143
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.
Module: sip-router
Branch: 3.1
Commit: 18881421102eaac97c85d84cbbd1597c3f342d23
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1888142…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Timo Reimann <timo.reimann(a)1und1.de>
Date: Wed Aug 17 15:00:00 2011 +0300
modules_k/dialog When hash_size was smaller then 1, consider this as a value(1 == 2^0)
The 1<<(n-1) check for the power of two smaller than the given number doesn't work for n == 0 (undefined behavior),
so values of dlg_hash_size smaller than 1 where not checked correctly.
(cherry picked from commit 11033b05be673593a87afdc2a1d8a2c887fb9ab7)
---
modules_k/dialog/dialog.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules_k/dialog/dialog.c b/modules_k/dialog/dialog.c
index 2c63d87..38a30b5 100644
--- a/modules_k/dialog/dialog.c
+++ b/modules_k/dialog/dialog.c
@@ -559,11 +559,18 @@ static int mod_init(void)
return -1;
}
+ /* sanitize dlg_hash_zie */
+ if (dlg_hash_size < 1){
+ LM_WARN("hash_size is smaller "
+ "then 1 -> rounding from %d to 1\n",
+ dlg_hash_size);
+ dlg_hash_size = 1;
+ }
/* initialized the hash table */
for( n=0 ; n<(8*sizeof(n)) ; n++) {
if (dlg_hash_size==(1<<n))
break;
- if (dlg_hash_size<(1<<n)) {
+ if (n && dlg_hash_size<(1<<n)) {
LM_WARN("hash_size is not a power "
"of 2 as it should be -> rounding from %d to %d\n",
dlg_hash_size, 1<<(n-1));
Module: sip-router
Branch: master
Commit: 99db13c459888a2a7e8ac4af0fc7642541ba5ccb
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=99db13c…
Author: Timo Reimann <timo.reimann(a)1und1.de>
Committer: Timo Reimann <timo.reimann(a)1und1.de>
Date: Sat Aug 27 02:41:51 2011 +0200
modules_k/dialog: Remove old parameter "del" from interface
description.
---
modules_k/dialog/dlg_hash.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/modules_k/dialog/dlg_hash.c b/modules_k/dialog/dlg_hash.c
index 0aee562..35e5bc1 100644
--- a/modules_k/dialog/dlg_hash.c
+++ b/modules_k/dialog/dlg_hash.c
@@ -472,7 +472,6 @@ not_found:
* \param ftag from tag
* \param ttag to tag
* \param dir direction
- * \param del will set to 1 if dialog is deleted
* \return dialog structure on success, NULL on failure
*/
static inline struct dlg_cell* internal_get_dlg(unsigned int h_entry,
Module: sip-router
Branch: treimann/3.1/robust_ref_count DELETED
Commit: fa6f1ae06e1e3ece9e2497871b5b021be0730258
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fa6f1ae…
Author: Timo Reimann <timo.reimann(a)1und1.de>
Committer: Timo Reimann <timo.reimann(a)1und1.de>
Date: Fri Aug 26 15:33:49 2011 +0200
modules_k/dialog: Robustify reference counting.
- Remove special handling for dialogs in the "deleted" state to
allow accessing such dialogs (e.g., from the configuration
script).
As a side effect, this also removes a bug where the reference
counter would be decremented after detecting a spiral
(dlg_handlers.c) although get_dlg() does not increment it for
"deleted" dialogs.
- Adapt interfaces for lookup_dlg() and get_dlg() accordingly,
i.e., remove "del" parameter and update in-code documentation.
- Replace direct increments on a dialog structure's ref variable
by calls to ref_dlg_unsafe().
- Move {un}ref_dlg_unsafe() definitions towards the head of the
file to make declaration available sooner.
- Improve store_dlg_in_tm():
* Return and evaluate result code.
* Replace second register call by specifying a release
function to the first register call.
- Document various places in the code dealing with reference
counter.
(cherry picked from commit 37f9ff35e47a6ed6e4037ca09430115f0b4d6df4)
Conflicts:
modules_k/dialog/dlg_handlers.c
modules_k/dialog/dlg_hash.c
modules_k/dialog/dlg_hash.h
---
modules_k/dialog/dialog.c | 5 +-
modules_k/dialog/dlg_handlers.c | 97 +++++++--------------------
modules_k/dialog/dlg_hash.c | 133 ++++++++++++++++---------------------
modules_k/dialog/dlg_hash.h | 11 ++-
modules_k/dialog/dlg_profile.c | 3 +
modules_k/dialog/dlg_req_within.c | 2 +-
6 files changed, 96 insertions(+), 155 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=fa6…