Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-09 Thread markus . hoenicka
Shakthi Kannan writes: > Which is the current cvs revision, and which file is it? I am not able > to see any commit logs at: > > http://sourceforge.net/mailarchive/forum.php?forum=libdbi-cvs > Hi, I'm afraid that the cvs log at sourceforge has been broken for a while. I always get back e

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-09 Thread Shakthi Kannan
Hi Markus: --- On Tue, Aug 9, 2011 at 4:51 PM, wrote: | I've reproduced the leak that you detected in the current cvs | sources. According to my analysis the drivers pass error messages | through dbd_geterror() as allocated | strings. _dbd_internal_error_handler() created another copy with | str

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-09 Thread markus . hoenicka
Shakthi Kannan writes: > The API has been changed in the latest source. So, I updated the > following code snippet, and I still see the memory leak: Hi Shakthi, I've reproduced the leak that you detected in the current cvs sources. According to my analysis the drivers pass error messages throug

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-09 Thread Shakthi Kannan
Hi, Replying to my own post: --- On Tue, Aug 9, 2011 at 11:30 AM, Shakthi Kannan wrote: |    else { |      dbi_conn_close(conn); |    } \-- With libdbi-0.8.3, libdbi-drivers-0.8.3 adding a sleep(1) after dbi_conn_close(conn) doesn't cause any leak. SK -- Shakthi Kannan http://www.shakthimaan

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-08 Thread Shakthi Kannan
Hi Markus, --- On Thu, Aug 4, 2011 at 5:44 PM, Markus Hoenicka wrote: | I had almost forgotten that bug. That's indeed the most likely reason that | your test app leaks memory. Unfortunately you're not using an old version as | 0.8.3 is the latest official release. The bug is fixed in the cvs ver

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-04 Thread Markus Hoenicka
Shakthi Kannan was heard to say: > I came across this memory leak post: > > http://comments.gmane.org/gmane.comp.db.libdbi.devel/309 > > Is this fixed in the sources and am I using old version of the software? > > libdbi-devel-0.8.3-4.fc14.i686 > libdbi-0.8.3-4.fc14.i686 > libdbi-drivers-0.8.3

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-04 Thread Shakthi Kannan
Hi Markus, I came across this memory leak post: http://comments.gmane.org/gmane.comp.db.libdbi.devel/309 Is this fixed in the sources and am I using old version of the software? libdbi-devel-0.8.3-4.fc14.i686 libdbi-0.8.3-4.fc14.i686 libdbi-drivers-0.8.3-6.fc14.i686 libdbi-dbd-mysql-0.8.3-6.f

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-03 Thread Shakthi Kannan
Hi Markus: --- On Wed, Aug 3, 2011 at 12:41 PM, Markus Hoenicka wrote: | In any case, I'd suggest to modify your code. dbi_initialize() is | supposed to be run once per process \-- I have changed this. If I try to comment the invocation call to dbi_conn_connect(conn), then I don't see any increa

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-03 Thread Markus Hoenicka
Shakthi Kannan was heard to say: > int main() { > dbi_conn conn; > > while (1) { > dbi_initialize(NULL); > [...] > > dbi_shutdown(); > } > > return 0; > } Hi, I'll test your code on my dev box as soon as time permits. libdbi is not supposed to lose memory under any circumstanc