Bug #18889 Warning about not freed memory in tests run by mysql-test-run
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
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
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.
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