Valgrind: memory leak in MTR percona_secure_file_priv_noarg

Bug #1334719 reported by Laurynas Biveinis
6
This bug affects 1 person
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_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 ]

Tags: ci valgrind

Related branches

tags: added: ci valgrind
Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :
Download full text (3.3 KiB)

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 w...

Read more...

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1516

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.