LP #1334719: Valgrind: memory leak in MTR percona_secure_file_priv_noarg
Description
Environment
Smart Checklist
Activity
lpjirasync January 21, 2018 at 5:08 PM
**Comment from Launchpad by: Valerii Kravchuk on: 26-06-2014 16:30:32
Fails the same way with 5.6:
openxs@ao756:~/dbs/p5.6v/mysql-test$ ./mysql-test-run percona_secure_file_priv_noarg --valgrind
Logging: ./mysql-test-run percona_secure_file_priv_noarg --valgrind
2014-06-26 19:27:59 6052 [Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000)
2014-06-26 19:27:59 6052 [Warning] Buffered warning: Changed limits: table_cache: 431 (requested 2000)
2014-06-26 19:27:59 6052 [Note] Plugin 'FEDERATED' is disabled.
2014-06-26 19:27:59 6052 [Note] Binlog end
2014-06-26 19:27:59 6052 [Note] Shutting down plugin 'CSV'
2014-06-26 19:27:59 6052 [Note] Shutting down plugin 'MyISAM'
MySQL Version 5.6.19
Turning on valgrind for all executables
Running valgrind with options " --show-reachable=yes "
Turning off --check-testcases to save time when valgrinding
Checking supported features...
SSL connections supported
binaries are debug compiled
Collecting tests...
Checking leftover processes...
Removing old var directory...
Creating var directory '/home/openxs/dbs/p5.6v/mysql-test/var'...
Installing system database...
==============================================================================
TEST RESULT TIME (ms) or COMMENT
--------------------------------------------------------------------------
worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009
main.percona_secure_file_priv_noarg [ pass ] 3010
worker[1] Valgrind report from /home/openxs/dbs/p5.6v/mysql-test/var/log/mysqld.1.err after tests:
main.percona_secure_file_priv_noarg
--------------------------------------------------------------------------
HEAP SUMMARY:
in use at exit: 68,760,328 bytes in 1,122 blocks
total heap usage: 30,150 allocs, 29,028 frees, 109,561,508 bytes allocated
3 bytes in 1 blocks are still reachable in loss record 1 of 360
at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0xAEB915: my_malloc (my_malloc.c:38)
by 0xAEBDF3: my_strdup (my_malloc.c:158)
by 0x62B1FB: mysqld_get_one_option (mysqld.cc:8979)
by 0xB0621C: my_handle_options (my_getopt.cc:818)
by 0xB04E08: handle_options (my_getopt.cc:309)
by 0x62B4F1: get_options(int*, char***) (mysqld.cc:9079)
by 0x6225C6: init_common_variables() (mysqld.cc:3946)
by 0x625D4C: mysqld_main(int, char**) (mysqld.cc:5511)
by 0x61A62C: main (main.cc:25)
LEAK SUMMARY:
definitely lost: 0 bytes in 0 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 3 bytes in 1 blocks
suppressed: 68,760,325 bytes in 1,121 blocks
For counts of detected and suppressed errors, rerun with: -v
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 306 from 306)
valgrind_report [ fail ]
Test ended at 2014-06-26 19:29:24
Valgrind reported failures at shutdown, see above
--------------------------------------------------------------------------
The servers were restarted 0 times
Spent 3.010 of 85 seconds executing testcases
Completed: Failed 1/2 tests, 50.00% were successful.
Failing test(s): valgrind_report
The log files in var/log may give you some hint of what went wrong.
If you want to report this error, please read first the documentation
at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html
mysql-test-run: *** ERROR: there were failing test cases
Details
Details
Assignee
Reporter
Labels
Priority
Smart Checklist
Open Smart Checklist
Smart Checklist

**Reported in Launchpad by Laurynas Biveinis last update 26-09-2014 04:51:40
$ ./mysql-test-run percona_secure_file_priv_noarg --valgrind
main.percona_secure_file_priv_noarg [ pass ] 440
worker[1] Valgrind report from /home/laurynas/percona/lp-mysql-server/valgrind-fixes-5.5/obj-valgrind/mysql-test/var/log/mysqld.1.err after tests:
main.percona_secure_file_priv_noarg
-------------------------------------------------------------------------- HEAP SUMMARY:
in use at exit: 30,570,206 bytes in 208 blocks
total heap usage: 64,844 allocs, 64,636 frees, 88,326,945 bytes allocated
86 bytes in 1 blocks are definitely lost in loss record 63 of 95
at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x90D47C: my_malloc (my_malloc.c:38)
by 0x90D862: my_strdup (my_malloc.c:152)
by 0x909CBF: setval (my_getopt.c:1010)
by 0x90950D: handle_options (my_getopt.c:773)
by 0x55AADC: get_options(int*, char***) (mysqld.cc:7621)
by 0x553F9F: init_common_variables() (mysqld.cc:3328)
by 0x556AE2: mysqld_main(int, char**) (mysqld.cc:4668)
by 0x54E47C: main (main.cc:25)
LEAK SUMMARY:
definitely lost: 86 bytes in 1 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 0 bytes in 0 blocks
suppressed: 30,570,120 bytes in 207 blocks
For counts of detected and suppressed errors, rerun with: -v
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 72 from 72)
valgrind_report [ fail ]