|
From: Samuel Q. <Sam...@sy...> - 2014-01-14 15:33:26
|
Greetings,
Normally I invoke my app using a shell script:
./run.sh –e >& run log
If I invoke this script using valgrind:
valgrind ./run.sh –e >& run log
Will valgrind evaluate the shell script or my app or both?
-Sam
|
|
From: Dan K. <da...@ke...> - 2014-01-14 15:36:34
|
On Tue, Jan 14, 2014 at 7:18 AM, Samuel Quiring <Sam...@sy...> wrote: > valgrind ./run.sh –e >& run log > > Will valgrind evaluate the shell script or my app or both? Just the shell script. Try --trace-children=yes . |
|
From: Fred S. <fs...@co...> - 2014-01-14 16:09:42
|
Or modify the shellscript to add valgrind and its args to the statement that invokes your final program. Fred Smith Senior Applications Programmer/Analyst Computrition, Inc. 175 Middlesex Turnpike Bedford, MA 01730 ph: 781-275-4488 x5013 fax: 781-357-4100 -----Original Message----- From: Dan Kegel [mailto:da...@ke...] Sent: Tuesday, January 14, 2014 10:36 AM To: Samuel Quiring Cc: val...@li... Subject: Re: [Valgrind-users] valgrind with shell scripts On Tue, Jan 14, 2014 at 7:18 AM, Samuel Quiring <Sam...@sy...> wrote: > valgrind ./run.sh -e >& run log > > Will valgrind evaluate the shell script or my app or both? Just the shell script. Try --trace-children=yes . ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Valgrind-users mailing list Val...@li... https://lists.sourceforge.net/lists/listinfo/valgrind-users This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email |
|
From: David F. <fa...@kd...> - 2014-01-14 15:54:41
|
On Tuesday 14 January 2014 07:18:05 Samuel Quiring wrote: > Greetings, > > Normally I invoke my app using a shell script: > > ./run.sh –e >& run log [I don't understand the "run log" part of it, but let's ignore that] > If I invoke this script using valgrind: > > valgrind ./run.sh –e >& run log > > Will valgrind evaluate the shell script or my app or both? The shell script. Better modify the shell script itself to call valgrind :) But you can also use the above command with --trace-children=yes and then it will trace all children, including your app. -- David Faure, fa...@kd..., http://www.davidfaure.fr Working on KDE, in particular KDE Frameworks 5 |
|
From: Patrick J. L. <lop...@gm...> - 2014-01-14 16:17:18
|
On Tue, Jan 14, 2014 at 7:18 AM, Samuel Quiring <Sam...@sy...> wrote: > > Will valgrind evaluate the shell script or my app or both? The script, and as others have said, "--trace-children=yes" will do what you want. However... ...you can also change your script to "exec" your app. That is better style anyway (fewer processes, allows parent process to retrieve proper exit status, etc.), if your script does not have any work to do after your app terminates. - Pat |