Bug #17524 memory leaks revealed in test suite 5.1
Submitted: 17 Feb 2006 11:52 Modified: 17 Feb 2006 16:05
Reporter: Ingo Strüwing Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:5.1.7 OS:Linux (Linux)
Assigned to: CPU Architecture:Any

[17 Feb 2006 11:52] Ingo Strüwing
Description:
Running the test suite with a -debug-max server results in lost of warnings.

I used this command and removed irrelevant lines:

egrep 'CURRENT_TEST|ready for connections|Warning:|allocated at line' mysql-test/var/log/master.err

The result is:

...
CURRENT_TEST: ndb_alter_table
060217 12:38:31 [Note] /home/mytest/mysql-5.1-test/sql/mysqld: ready for connections.
CURRENT_TEST: ndb_alter_table_row
CURRENT_TEST: ndb_alter_table_stm
CURRENT_TEST: ndb_basic
Warning: Not freed memory segments: 120
Warning: Memory that was not free'ed (263745 bytes):
          3736 bytes at 0x0094afd18, allocated at line  197 in 'my_alloc.c'
           968 bytes at 0x0094a91d0, allocated at line  197 in 'my_alloc.c'
          3736 bytes at 0x0094aee60, allocated at line  197 in 'my_alloc.c'
           968 bytes at 0x0094ae9a8, allocated at line  197 in 'my_alloc.c'
          3736 bytes at 0x0094aa2c0, allocated at line  197 in 'my_alloc.c'
           968 bytes at 0x0094a9ed8, allocated at line  197 in 'my_alloc.c'
          3736 bytes at 0x0094a39c8, allocated at line  197 in 'my_alloc.c'
 
etc, etc. I'll attach the whole output as a file.

How to repeat:
BUILD/compile-pentium-debug-max
make test

You will see:

All 462 tests were successful.
WARNING: Got errors/warnings while running tests. Please examine
/home/mytest/mysql-5.1-test/mysql-test/var/log/warnings for details.

The warnings file contains extractions from the error log. You find the full information in the error log. My above mentioned command extracts the relevant information. All warnings appear after NDB tests, so I set category to cluster.
[17 Feb 2006 16:05] Tomas Ulin
duplicate with 17475
[17 Feb 2006 16:59] Ingo Strüwing
Extract from the error log

Attachment: t1list (application/octet-stream, text), 46.27 KiB.