Bug #18889 Warning about not freed memory in tests run by mysql-test-run
Submitted: 7 Apr 2006 14:58 Modified: 19 Apr 2006 8:30
Reporter: Matthias Leich Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.1 OS:
Assigned to: Michael Widenius CPU Architecture:Any

[7 Apr 2006 14:58] Matthias Leich
Description:
I get a warning about Not freed memory even in tests
containing a simple "SELECT 1".
This was introduced by a code change since beginning of April.

Content of var/log/master.err:
CURRENT_TEST: ml0007
InnoDB: The first specified data file ./ibdata1 did not exist:
...
User time 0.36, System time 0.33
Maximum resident set size 0, Integral resident set size 0
Non-physical pagefaults 7947, Physical pagefaults 0, Swaps 0
Blocks in 0 out 0, Messages in 0 out 0, Signals 0
Voluntary context switches 111, Involuntary context switches 314
Warning: Not freed memory segments: 1
Warning: Memory that was not free'ed (256 bytes):
           256 bytes at 0x0092ab288, allocated at line  137 in 'ha_example.cc'
Maximum memory usage: 1624562 bytes (1587k)

My environment:
   - Intel PC with Linux(SuSE 9.3)
   - MySQL compiled from source (compile-pentium-debug-max)
         Version 5.1 last ChangeSet@1.2299, 2006-04-06

How to repeat:
echo "SELECT 1;" > t/ml0007.test
echo "Dummy" > r/ml0007.result
./mysql-test-run.pl --skip-ndb ml0007
# Of course the test will get a "failed" because of the
# incorrect file with expected results.
cat var/log/master.err