|
From: manik s. <she...@gm...> - 2014-02-05 11:01:48
|
Hi, I have an application which is started by a shell script. But before that application is forked , there are many daemon processes started by the start shell script. Unfortunately, when I use valgrind to initiate the start script with "--trace-children" enabled, the script exits at some point while starting a particular daemon. My question is, can I simply give my interested executable in the command line, so that valgrind run everything smoothly but only instruments the given executable of interest. ??? thanks, sheeri |
|
From: Fred S. <fs...@co...> - 2014-02-05 17:44:11
|
I use it all the time on a program that starts from a shellscript. Just modify the line of the script where your program is invoked so that it uses valgrind (with appropriate args) to start your program. Fred Smith Senior Applications Programmer/Analyst Computrition, Inc. 175 Middlesex Turnpike Bedford, MA 01730 ph: 781-275-4488 x5013 fax: 781-357-4100 From: manik sheeri [mailto:she...@gm...] Sent: Wednesday, February 05, 2014 6:02 AM To: val...@li... Subject: [Valgrind-users] unable to start child application Hi, I have an application which is started by a shell script. But before that application is forked , there are many daemon processes started by the start shell script. Unfortunately, when I use valgrind to initiate the start script with "--trace-children" enabled, the script exits at some point while starting a particular daemon. My question is, can I simply give my interested executable in the command line, so that valgrind run everything smoothly but only instruments the given executable of interest. ??? thanks, sheeri 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: manik s. <she...@gm...> - 2014-02-06 06:00:21
|
My starting script sets lot of environment variables for my application to run. I can not place valgrind inside it, because that will mess-up with the configured paths for valgrind. Therefore, I am using valgrind to start the script. The thing I have noticed is that when I skip my child application through the use of "--trace-children-skip" , everything works just fine and my application is able to come up nicely. However, without skipping it segfaults. On Wed, Feb 5, 2014 at 11:13 PM, Fred Smith <fs...@co...> wrote: > I use it all the time on a program that starts from a shellscript. Just > modify the line of the script where your program is invoked so that it uses > valgrind (with appropriate args) to start your program. > > > > *Fred Smith* > > *Senior Applications Programmer/Analyst* > > *Computrition, Inc.* > > *175 Middlesex Turnpike* > > *Bedford, MA 01730* > > *ph: 781-275-4488 x5013* > > *fax: 781-357-4100* > > > > > > *From:* manik sheeri [mailto:she...@gm...] > *Sent:* Wednesday, February 05, 2014 6:02 AM > *To:* val...@li... > *Subject:* [Valgrind-users] unable to start child application > > > > Hi, > > > > I have an application which is started by a shell script. > > But before that application is forked , there are many daemon processes > started by the start shell script. > > > > Unfortunately, when I use valgrind to initiate the start script with > "--trace-children" enabled, the script exits at some point while starting a > particular daemon. > > > > My question is, can I simply give my interested executable in the command > line, so that valgrind run everything smoothly but only instruments the > given executable of interest. ??? > > > > thanks, > > sheeri > > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > -- Manik Sheeri 09582990906 |