THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#436 - memory leak in mysql module
User who did this - Torrey Searle (tsearle)
----------
Attached is the proposed patch
----------
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=436#comment1501
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 has a new comment added:
FS#436 - memory leak in mysql module
User who did this - Torrey Searle (tsearle)
----------
I think I have a theory regarding the leak....
in linb/srdb1/db.c
the code is as follows
<code>
id = new_db_id(url, pooling);
if (!id) {
LM_ERR("cannot parse URL '%.*s'\n", url->len, url->s);
goto err;
}
/* Find the connection in the pool */
con = pool_get(id);
if (!con) {
LM_DBG("connection %p not found in pool\n", id);
/* Not in the pool yet */
con = new_connection(id);
if (!con) {
LM_ERR("could not add connection to the pool");
goto err;
}
pool_insert((struct pool_con*)con);
} else {
LM_DBG("connection %p found in pool\n", id);
}
</code>
In the case a new connection is made, the connection will have the reference to the id object you just allocated.
In the case a connection is found from the pool, the connection will have a reference to a previously allocated id object, and the id created by new_db_id should be freed
I suggest that in the case be modified as follows
<code>
} else {
LM_DBG("connection %p found in pool\n", id);
free_db_id(id); // free the new id, as we use the pool instead
id = 0;
}
</code>
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=436#comment1500
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 has a new comment added:
FS#436 - memory leak in mysql module
User who did this - Torrey Searle (tsearle)
----------
Reproduced the leak in the lab... won't paste the full output as it's massive but there seems to be 4 objects leaking here is a subset of the output showing 2 examples of each leak
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23724. N address=0x7fc02f560e88 frag=0x7fc02f560e58 size=160 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: new_db_id(254)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23725. N address=0x7fc02f560f88 frag=0x7fc02f560f58 size=16 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: dupl_string(50)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23726. N address=0x7fc02f560ff8 frag=0x7fc02f560fc8 size=48 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: dupl_string(50)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23727. N address=0x7fc02f561088 frag=0x7fc02f561058 size=16 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: dupl_string(50)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23728. N address=0x7fc02f5610f8 frag=0x7fc02f5610c8 size=48 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: dupl_string(50)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23729. N address=0x7fc02f561188 frag=0x7fc02f561158 size=160 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: new_db_id(254)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23730. N address=0x7fc02f561288 frag=0x7fc02f561258 size=16 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: dupl_string(50)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23731. N address=0x7fc02f5612f8 frag=0x7fc02f5612c8 size=48 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: dupl_string(50)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23732. N address=0x7fc02f561388 frag=0x7fc02f561358 size=16 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: dupl_string(50)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23733. N address=0x7fc02f5613f8 frag=0x7fc02f5613c8 size=48 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: dupl_string(50)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23734. N address=0x7fc02f561488 frag=0x7fc02f561458 size=16 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: dupl_string(50)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: 23735. N address=0x7fc02f5614f8 frag=0x7fc02f5614c8 size=48 used=1
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: alloc'd from <core>: db_id.c: dupl_string(50)
Jun 2 06:23:02 bebr0lbr02 /usr/sbin/kamailio[12216]: ALERT: qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=436#comment1499
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 has a new comment added:
FS#438 - CRASH: dialog module out of bounds issue
User who did this - Daniel-Constantin Mierla (miconda)
----------
Again, this seems to be same as:
- http://sip-router.org/tracker/index.php?do=details&task_id=427&project=1
Patch to fix it is now in branch 4.1.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=438#comment1498
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#427 - kamailio sometimes crash when handling failure events
User who did this - Daniel-Constantin Mierla (miconda)
Reason for closing: Fixed
Additional comments about closing: Patch backported to branch 4.1 as well.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=427
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 has a new comment added:
FS#437 - CRASH: BUG: qm_free: freeing already freed pointer (0x7fcaeaee3ac0), called from dialog: dlg_cb.c
User who did this - Daniel-Constantin Mierla (miconda)
----------
This seems to be same as:
- http://sip-router.org/tracker/index.php?do=details&task_id=427&project=1
I backported the patch in branch 4.1. Can you try it?
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=437#comment1497
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.