Bug #16824 numerous memory leaks
Submitted: 26 Jan 2006 22:44 Modified: 27 Jan 2006 18:53
Reporter: Sergei Golubchik Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.1 OS:
Assigned to: Petr Chardin CPU Architecture:Any

[26 Jan 2006 22:44] Sergei Golubchik
Description:
In safemalloc builds, right after start/stop (no clients connected, no queries run):

Warning: Not freed memory segments: 20
Warning: Memory that was not free'ed (30076 bytes):
             6 bytes at 0x008ae4b98, allocated at line  221 in 'log.cc'
           128 bytes at 0x008b1e218, allocated at line  276 in 'sql_class.cc'
          1040 bytes at 0x008b14818, allocated at line   64 in 'my_alloc.c'
            42 bytes at 0x008b1f118, allocated at line  593 in 'time.cc'
            33 bytes at 0x008ae4b58, allocated at line  593 in 'time.cc'
            33 bytes at 0x008ae4b18, allocated at line  593 in 'time.cc'
           128 bytes at 0x008b1e118, allocated at line 1769 in 'sql_class.cc'
           128 bytes at 0x008b1e018, allocated at line 1766 in 'sql_class.cc'
          8152 bytes at 0x008b1c018, allocated at line 1635 in 'sql_lex.cc'
          5348 bytes at 0x008b1a018, allocated at line  422 in 'sql_list.h'
             6 bytes at 0x008ae4ad8, allocated at line  216 in 'log.cc'
           128 bytes at 0x008adbf18, allocated at line  276 in 'sql_class.cc'
          1040 bytes at 0x008b14018, allocated at line   64 in 'my_alloc.c'
            42 bytes at 0x008aecf98, allocated at line  593 in 'time.cc'
            33 bytes at 0x008ae4a98, allocated at line  593 in 'time.cc'
            33 bytes at 0x008ae4a58, allocated at line  593 in 'time.cc'
           128 bytes at 0x008adbe18, allocated at line 1769 in 'sql_class.cc'
           128 bytes at 0x008adbd18, allocated at line 1766 in 'sql_class.cc'
          8152 bytes at 0x008b18018, allocated at line 1635 in 'sql_lex.cc'
          5348 bytes at 0x008b12018, allocated at line  422 in 'sql_list.h'

How to repeat:
build with safemalloc, start mysqld, stop mysqld.

try without mysql.general_log table too
[27 Jan 2006 14:10] Petr Chardin
patch commited