1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed issues when running mtr with --valgrind

- Note that some issues was also fixed in 10.2 and 10.4. I also fixed them
  here to be able to continue with making 10.5 valgrind safe again
- Disable connection threads warnings when doing shutdown
This commit is contained in:
Monty
2019-08-12 15:47:24 +03:00
committed by Sergei Golubchik
parent b444b6b910
commit 97dd057702
20 changed files with 299 additions and 76 deletions

View File

@ -1902,9 +1902,13 @@ sub command_line_setup {
if ($opt_valgrind && ! grep(/^--tool=/i, @valgrind_args))
{
# Set valgrind_option unless already defined
push(@valgrind_args, ("--show-reachable=yes", "--leak-check=yes",
"--num-callers=16"))
unless @valgrind_args;
if (!@valgrind_args)
{
push(@valgrind_args, ("--show-reachable=yes", "--leak-check=yes",
"--num-callers=20"));
push(@valgrind_args, ("--gen-suppressions=all"));
# push(@valgrind_args, ("--trace-signals=yes"));
}
unshift(@valgrind_args, "--tool=memcheck");
}