From: / <is...@ya...> - 2019-02-16 14:12:10
|
Hi people, I get the following error when I try to invoke "massif" in the most simple manner: valgrind: Unknown option: --undef-value-errors=no valgrind: Use --help for more information or consult the user manual. Command to reproduce the error: valgrind --verbose --tool=massif executable where executable was the program i wanted to check (compiled with -g) even a simple valgrind --verbose --tool=massif /bin/bash produces the same error ** Valgrind version: valgrind-3.14.0 Fedora, linux 4.18.19-100 Many thanks, a. |
From: Philippe W. <phi...@sk...> - 2019-02-16 15:08:22
|
--undef-value-errors is not a massif option, it is a memcheck option. So, it is completely normal that massif reports that this is an unknown option. If you want to have the list of options massif understands, you have to do: valgrind --tool=massif --help If you do not specify a tool, then valgrind defaults to memcheck. Note that you can also prefix options with the tool they are aimed at. So, e.g. valgrind --tool=massif --memcheck:undef-value-errors=no executable does not complain. Philippe On Sat, 2019-02-16 at 15:20 +0200, / via Valgrind-users wrote: > Hi people, I get the following error when I try to invoke "massif" in > the most simple manner: > > valgrind: Unknown option: --undef-value-errors=no > valgrind: Use --help for more information or consult the user manual. > > Command to reproduce the error: > > valgrind --verbose --tool=massif executable > > where executable was the program i wanted to check (compiled with -g) > > even a simple > > valgrind --verbose --tool=massif /bin/bash > > produces the same error > > ** Valgrind version: > valgrind-3.14.0 > > Fedora, linux 4.18.19-100 > > Many thanks, > a. > > > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users |
From: / <is...@ya...> - 2019-02-16 15:50:20
|
Thanks for your reply, On 16/02/19 17:08, Philippe Waroquiers wrote: > --undef-value-errors is not a massif option, it is a memcheck option. I haven't specified that option at all! I don't know where it gets it from. All I want is to get a memory profile of my program and the net all over points to valgrind --tool=massif executable that's all. > > So, it is completely normal that massif reports that this is an > unknown option. > > If you want to have the list of options massif understands, > you have to do: > valgrind --tool=massif --help > > If you do not specify a tool, then valgrind defaults to memcheck. > > Note that you can also prefix options with the tool they are > aimed at. > So, e.g. > valgrind --tool=massif --memcheck:undef-value-errors=no executable > does not complain. sorry but that fails with same error in my system valgrind: Unknown option: --undef-value-errors=no valgrind: Use --help for more information or consult the user manual. > > Philippe > > On Sat, 2019-02-16 at 15:20 +0200, / via Valgrind-users wrote: >> Hi people, I get the following error when I try to invoke "massif" in >> the most simple manner: >> >> valgrind: Unknown option: --undef-value-errors=no >> valgrind: Use --help for more information or consult the user manual. >> >> Command to reproduce the error: >> >> valgrind --verbose --tool=massif executable >> >> where executable was the program i wanted to check (compiled with -g) >> >> even a simple >> >> valgrind --verbose --tool=massif /bin/bash >> >> produces the same error >> >> ** Valgrind version: >> valgrind-3.14.0 >> >> Fedora, linux 4.18.19-100 >> >> Many thanks, >> a. >> >> >> _______________________________________________ >> Valgrind-users mailing list >> Val...@li... >> https://lists.sourceforge.net/lists/listinfo/valgrind-users |
From: Philippe W. <phi...@sk...> - 2019-02-16 15:56:01
|
On Sat, 2019-02-16 at 17:49 +0200, / via Valgrind-users wrote: > valgrind: Unknown option: --undef-value-errors=no > valgrind: Use --help for more information or consult the user manual. valgrind --help indicates: ... Extra options read from ~/.valgrindrc, $VALGRIND_OPTS, ./.valgrindrc So, I guess that you have this option --undef-value-errors=no in one of the above. Philippe |
From: / <is...@ya...> - 2019-02-16 16:09:24
|
My mistake, you are right, I had aliased valgrind to use --undef-value-errors=no thanks for your help and sorry for wasting your time. andreas On 16/02/19 17:55, Philippe Waroquiers wrote: > On Sat, 2019-02-16 at 17:49 +0200, / via Valgrind-users wrote: >> valgrind: Unknown option: --undef-value-errors=no >> valgrind: Use --help for more information or consult the user manual. > > valgrind --help indicates: > ... > Extra options read from ~/.valgrindrc, $VALGRIND_OPTS, ./.valgrindrc > > So, I guess that you have this option --undef-value-errors=no in one of the above. > > Philippe > |
From: Philippe W. <phi...@sk...> - 2019-02-16 17:12:41
|
On Sat, 2019-02-16 at 18:08 +0200, / wrote: > My mistake, you are right, I had aliased valgrind to use > --undef-value-errors=no > > thanks for your help and sorry for wasting your time. No problem. BTW, the 'tool prefix' for arguments (e.g. --memcheck:undef-value-errors=no) was designed so that you can do such alias, but in a way that will work with whatever tool. Philippe |
From: / <is...@ya...> - 2019-02-16 17:14:55
|
great sorted! On 16/02/19 19:12, Philippe Waroquiers wrote: > On Sat, 2019-02-16 at 18:08 +0200, / wrote: >> My mistake, you are right, I had aliased valgrind to use >> --undef-value-errors=no >> >> thanks for your help and sorry for wasting your time. > No problem. > > BTW, the 'tool prefix' for arguments (e.g. --memcheck:undef-value-errors=no) > was designed so that you can do such alias, but in a way that will work > with whatever tool. > > Philippe > |