Open
Bug 1116426
Opened 11 years ago
Updated 3 years ago
[mozdebug] --debugger valgrind assumes memcheck
Categories
(Testing :: Mozbase, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: glandium, Unassigned)
Details
Using --debugger valgrind passes a few default arguments to valgrind: --leak-check=full --show-possibly-lost=no --smc-check=all-non-file --vex-iropt-register-updates=allregs-at-mem-access.
The first two arguments assume memcheck is the valgrind tool in use, and fail when giving --debugger-args=--tool=somethingelse.
Relatedly, I'd argue --soname-synonyms=somalloc=NONE should be in that list when running Firefox.
Comment 1•11 years ago
|
||
Mike, which mozbase tool are you referring to here? I wonder if that is the right component.
| Reporter | ||
Comment 2•11 years ago
|
||
The defaults in testing/mozbase/mozdebug/mozdebug/mozdebug.py are used by e.g. mach mochitest-browser.
| Reporter | ||
Comment 3•11 years ago
|
||
python/mozbuild/mozbuild/mach_commands.py gets those default args from mozdebug.get_debugger_info. I'd argue the bug is in mozdebug for providing tool-specific defaults.
Comment 4•11 years ago
|
||
Thanks Mike. Updating the summary accordingly.
Summary: --debugger valgrind assumes memcheck → [mozdebug] --debugger valgrind assumes memcheck
Comment 5•11 years ago
|
||
I suggest keeping this behaviour if you set the --debugger value to |valgrind| or |memcheck|, and then provide reasonable alternatives for |cachegrind| or whichever other tool you're using. The reason being that 99% of the uses will be with Memcheck.
> Relatedly, I'd argue --soname-synonyms=somalloc=NONE should be in that list when running Firefox.
Bug 977067 is about that for |mach valgrind-test| and it turned into a big mess for which I honestly don't remember the details...
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•