Valgrind: memory leak in MTR percona_secure_file_priv_noarg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Medium
|
Sergei Glushchenko | ||
5.1 |
Won't Fix
|
Undecided
|
Unassigned | ||
5.5 |
Fix Released
|
Medium
|
Sergei Glushchenko | ||
5.6 |
Fix Released
|
Medium
|
Sergei Glushchenko |
Bug Description
$ ./mysql-test-run percona_
main.percona_
worker[1] Valgrind report from /home/laurynas/
main.percona_
-------
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/
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_
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 ]
Related branches
- Laurynas Biveinis (community): Approve
-
Diff: 20 lines (+2/-1)1 file modifiedsql/mysqld.cc (+2/-1)
- Laurynas Biveinis (community): Approve
-
Diff: 21 lines (+2/-2)1 file modifiedsql/mysqld.cc (+2/-2)
tags: | added: ci valgrind |
Fails the same way with 5.6:
openxs@ ao756:~ /dbs/p5. 6v/mysql- test$ ./mysql-test-run percona_ secure_ file_priv_ noarg --valgrind secure_ file_priv_ noarg --valgrind
Logging: ./mysql-test-run percona_
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. reachable= yes " openxs/ dbs/p5. 6v/mysql- test/var' ...
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-
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/
Installing system database...
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =
TEST RESULT TIME (ms) or COMMENT ------- ------- ------- ------- ------- ------- ------- ------- ------- ----
-------
worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009 secure_ file_priv_ noarg [ pass ] 3010 dbs/p5. 6v/mysql- test/var/ log/mysqld. 1.err after tests: secure_ file_priv_ noarg ------- ------- ------- ------- ------- ------- ------- ------- ------- ----
main.percona_
worker[1] Valgrind report from /home/openxs/
main.percona_
-------
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 valgrind/ vgpreload_ memcheck- amd64-linux. so) get_one_ option (mysqld.cc:8979) variables( ) (mysqld.cc:3946)
at 0x4C2AB80: malloc (in /usr/lib/
by 0xAEB915: my_malloc (my_malloc.c:38)
by 0xAEBDF3: my_strdup (my_malloc.c:158)
by 0x62B1FB: mysqld_
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_
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 w...