Re: [SR-Users] db_sqlite bugs

2012-11-19 Thread Daniel-Constantin Mierla
Hello, On 11/15/12 3:18 PM, Timo Teras wrote: On Thu, 15 Nov 2012 15:00:24 +0100 Pedro Antonio Vico Solano wrote: We've done more tests with both of your patches and it seems to work fine. You can upload it to GIT. Done. Commit ecf95eb Wed Oct 17 09:00:14 fixes the mem leak. Commit 0920586

Re: [SR-Users] db_sqlite bugs

2012-11-15 Thread Timo Teras
On Thu, 15 Nov 2012 15:00:24 +0100 Pedro Antonio Vico Solano wrote: > We've done more tests with both of your patches and it seems to work > fine. > > You can upload it to GIT. Done. Commit ecf95eb Wed Oct 17 09:00:14 fixes the mem leak. Commit 0920586 Thu Nov 15 16:11:41 fixes the computed fi

Re: [SR-Users] db_sqlite bugs

2012-11-15 Thread Pedro Antonio Vico Solano
iling List" Fecha:        29/10/2012 20:09 Asunto:        Re: [SR-Users] db_sqlite bugs Enviado por:        sr-users-boun...@lists.sip-router.org On Mon, 29 Oct 2012 16:07:56 +0200 Timo Teras wrote: > I guess we should first try decltype if available and fall back to > first row

Re: [SR-Users] db_sqlite bugs

2012-10-29 Thread Timo Teras
On Mon, 29 Oct 2012 16:07:56 +0200 Timo Teras wrote: > I guess we should first try decltype if available and fall back to > first row column type. However, this will fail too if the first row > has NULL value for the column. > > The fundamental problem is that Kamailio DB API expects the driver

Re: [SR-Users] db_sqlite bugs

2012-10-29 Thread Timo Teras
Hi, On Mon, 29 Oct 2012 13:01:57 +0200 Vitaliy Aleksandrov wrote: > Have you found the way to run SELECT COUNT(*) ? > I use kamailio 3.2.4 with sqlite 3.7.5-1 and it crashes on such > queries too. > > As a workaround I use $dbr(res=>rows) with "SELECT some_field FROM > table" query, but the bu

Re: [SR-Users] db_sqlite bugs

2012-10-29 Thread Vitaliy Aleksandrov
.es Fecha: 15/10/2012 16:13 Asunto: Re: [SR-Users] db_sqlite bugs Enviado por: Timo Teräs On Thu, 11 Oct 2012 12:37:23 +0200 Pedro Antonio Vico Solano wrote: > Hello everyone, > > We are developing a solution base

Re: [SR-Users] db_sqlite bugs

2012-10-16 Thread Pedro Antonio Vico Solano
- Users Mailing List" cc:        pvsol...@amper.es Fecha:        15/10/2012 16:13 Asunto:        Re: [SR-Users] db_sqlite bugs Enviado por:        Timo Teräs On Thu, 11 Oct 2012 12:37:23 +0200 Pedro Antonio Vico Solano wrote: > Hello everyone, > > We are developing a solut

Re: [SR-Users] db_sqlite bugs

2012-10-15 Thread Timo Teras
On Thu, 11 Oct 2012 12:37:23 +0200 Pedro Antonio Vico Solano wrote: > Hello everyone, > > We are developing a solution based on the SQLite module for Kamailio > and we've found some bugs/errors regarding it. We use kamailio 3.2.4 > and SQLite 3.7.14.1. The errors are about this: > > - Memory le

Re: [SR-Users] db_sqlite bugs

2012-10-12 Thread Carsten Bock
Hi, just some more observations regarding the memory issue: Not the pkg-/ or shmem is leaking, but the process consumes more memory each time (as shown in a "ps" command). Maybe in some situations a sqlite3_free is missing? Carsten 2012/10/12 Daniel-Constantin Mierla : > Hello, > > fyi, 3.2.x i

Re: [SR-Users] db_sqlite bugs

2012-10-12 Thread Daniel-Constantin Mierla
Hello, fyi, 3.2.x is packaged with memory debug on, so if you set memdbg and memlog paramters to a value equal or higher than debug, then you see all the malloc/free operations in the syslog. That could help to identify what is allocated/from where and it is not freed. Also, you can get a su

Re: [SR-Users] db_sqlite bugs

2012-10-11 Thread Timo Teras
On Thu, 11 Oct 2012 12:37:23 +0200 Pedro Antonio Vico Solano wrote: > We are developing a solution based on the SQLite module for Kamailio > and we've found some bugs/errors regarding it. We use kamailio 3.2.4 > and SQLite 3.7.14.1. The errors are about this: Thanks for the config examples. To

[SR-Users] db_sqlite bugs

2012-10-11 Thread Pedro Antonio Vico Solano
Hello everyone, We are developing a solution based on the SQLite module for Kamailio and we've found some bugs/errors regarding it. We use kamailio 3.2.4 and SQLite 3.7.14.1. The errors are about this: - Memory leaks on querys via sqlops. Kamailio main process leaks 4kB each 3 queries (aprox.) an