Memory leaks from mysql_server_init
Posted by: Jean-Denis Muys
Date: June 13, 2010 05:37PM

I have an issue with my application, which does some potentially fairly intensive work with mySQL. Mac OS X tools report memory leaking. The call stack of the allocation that leaks is:

mysql_server_init | my_init | my_thread_global_init | my_thread_init | calloc

The leak is always 128 bytes in size, and seems to always contain the following content:

0x00000000 0x434f4e44 0x00000000 0x80000000 ....DNOC........
0x00000000 0x00000000 0x00000000 0x00000000 ................
0x4d555458 0x00000000 0x00000060 0x00000000 XTUM....`.......
0x00000000 0x00000000 0x00000000 0x00000000 ................
0x00000000 0x00000000 0x00000000 0x00000000 ................
0x00000000 0xb0538000 0x00000001 0x00000000 ......S.........
0x00000000 0x00000001 0x00000000 0x00000000 ................
0x00000000 0x00000000 0x00000000 0x00000000 ................

The leak occurs semi-randomly: I can reproduce it very easily, but I couldn't find a set of actions that will necessarily produce the leak.

Of course, I have triple checked that all my calls to mysql_server_init are actually balanced by a call to mysql_close.

Does anybody have any idea what to do next? I feel stuck.

Regards,

Jean-Denis

Options: ReplyQuote


Subject
Views
Written By
Posted
Memory leaks from mysql_server_init
2982
June 13, 2010 05:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.