|
From: | Robert E. Griffith |
Subject: | using valgrind on a loadable builtin |
Date: | Wed, 25 May 2022 13:43:46 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 |
I am running it like... valgrind -v ../../bashParse/bash -c 'bg-dev tests run bg_objects.sh:' The script enables my builtin. bash and my builtin are being built with -g and no -O<n>Anyone have any tips on getting meaningful output from valgrind for a loadable builtin?
BTW, in the debugger, I get the "corrupted size vs. prev_size\nAborted (coredumped)" error when I step into a call to "if (execute_shell_function(fDynCtor, dArgs) == 0) {...". I dont understand how a stepping into a function could be producing this error as opposed to a malloc family function.
--BobG
[Prev in Thread] | Current Thread | [Next in Thread] |