Skip to content
Snippets Groups Projects
Commit 86a48bca authored by Anders Lindh Olsson's avatar Anders Lindh Olsson :8ball:
Browse files

Merge branch 'add_valgrind_erros' into 'master'

E3-1505: Add valgrind suppression to iocsh

See merge request !173
parents f588ec6e 28aaf936
No related branches found
No related tags found
1 merge request!173E3-1505: Add valgrind suppression to iocsh
Pipeline #183250 failed
......@@ -94,7 +94,9 @@ def iocsh(
if gdb is not None:
cmd = ["gdb"] + gdb.split(" ") + ["--args"] + cmd
elif valgrind:
cmd = ["valgrind"] + valgrind.split(" ") + cmd
supp_file = os.path.abspath(os.path.dirname(__file__)) + "/iocsh_epics.supp"
non_optional = ["--suppressions=" + supp_file]
cmd = ["valgrind"] + non_optional + valgrind.split(" ") + cmd
elif realtime:
os.environ["LD_BIND_NOW"] = 1
cmd = "chrt --fifo 1".split(" ") + cmd
......@@ -165,7 +167,7 @@ def generate_parser() -> argparse.ArgumentParser:
nargs="?",
const="",
metavar="ARGUMENT",
help="run with gdb, optionally with arguments",
help="run with gdb, optionally with arguments. For no arguments use \"-dg --\"",
)
mutex_group_modifiers.add_argument(
"-dv",
......@@ -173,7 +175,7 @@ def generate_parser() -> argparse.ArgumentParser:
nargs="?",
const="--leak-check=full",
metavar="ARGUMENT",
help="run with valgrind, optionally with arguments (default '%(const)s')",
help="run with valgrind, optionally with arguments (default '%(const)s'). For no arguments use \"-dv --\"",
)
mutex_group_modifiers.add_argument(
"--debug",
......
{
Perpetual thread that leaks during exit
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
fun:newNode
...
fun:taskwdInsert
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment