Bug #19503 Not freed memory in skip_grants test
Submitted: 3 May 2006 7:27 Modified: 11 May 2006 10:45
Reporter: Dmitry Lenev Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.1.10-bk OS:Linux (Linux)
Assigned to: Tatiana Azundris Nuernberg CPU Architecture:Any

[3 May 2006 7:27] Dmitry Lenev
Description:
Compile -debug-max version of server (using BUILD/compile-pentium-debug-max script)
Run skip_grants test from test suite.
Observe several warnings about unfreed memory in var/log/master.err
---
Warning: Not freed memory segments: 5
Warning: Memory that was not free'ed (1152 bytes):
           128 bytes at 0x00895ec38, allocated at line  625 in 'sql_plugin.cc'
           128 bytes at 0x00895eb98, allocated at line  625 in 'sql_plugin.cc'
           128 bytes at 0x00895eaf8, allocated at line  625 in 'sql_plugin.cc'
           384 bytes at 0x00895e958, allocated at line  619 in 'sql_plugin.cc'
           384 bytes at 0x00895e7b8, allocated at line  617 in 'sql_plugin.cc'
Maximum memory usage: 1612090 bytes (1575k)
---

How to repeat:
BUILD/compile-pentium-debug-max
cd mysql-test/
./mysql-test-run.pl skip_grants
cat var/log/master.err
[3 May 2006 17:14] MySQL Verification Team
Thank you for the bug report.
Warning: Not freed memory segments: 5
Warning: Memory that was not free'ed (1152 bytes):
           128 bytes at 0x008982c38, allocated at line  625 in 'sql_plugin.cc'
           128 bytes at 0x008982b98, allocated at line  625 in 'sql_plugin.cc'
           128 bytes at 0x008982af8, allocated at line  625 in 'sql_plugin.cc'
           384 bytes at 0x008982958, allocated at line  619 in 'sql_plugin.cc'
           384 bytes at 0x0089827b8, allocated at line  617 in 'sql_plugin.cc'
Maximum memory usage: 1612142 bytes (1575k)
miguel@hegel:~/dbs/mysql-5.1-new/mysql-test>
[11 May 2006 10:45] Tatiana Azundris Nuernberg
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

can't reproduce with current version, bug presumed fixed in all-around leak-hunt.