|
From: smiley g. <smi...@ya...> - 2004-02-27 07:51:49
|
Hello, Is valgrind compatible with a fork'd program. I have an application (foo) that forks/execs another program(bar). What is required is to only valgrind the fork'd application (bar). Is it possible. I tried valgrind foo, but bar is not valgrinded. How can I check my fork'd application with valgrind. is it possible. any pointers ? Thanks, Smile. __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools |
|
From: David E. <tw...@us...> - 2004-02-27 08:09:46
|
On Fri, 2004-02-27 at 08:49, smiley glitter wrote:
> Hello,
>
> Is valgrind compatible with a fork'd program. I have
> an application (foo) that forks/execs another
> program(bar).
>
> What is required is to only valgrind the fork'd
> application (bar). Is it possible.
>
> I tried valgrind foo, but bar is not valgrinded.
>
> How can I check my fork'd application with valgrind.
> is it possible. any pointers ?
>
> Thanks,
> Smile.
--trace-children=yes
--
Regards,
-\- David Eriksson -/-
SynCE - http://synce.sourceforge.net
CalcEm - http://calcem.sourceforge.net
ScummVM - http://scummvm.sourceforge.net
Desquirr - http://desquirr.sourceforge.net
SetiWrapper - http://setiwrapper.sourceforge.net
|
|
From: smiley g. <smi...@ya...> - 2004-03-15 16:14:38
Attachments:
daemon.c
|
Hello David,
Thanks for your note. I did go through the
documentation but missed it. thanks for your concern
and patience again David.
What I am really trying to do is to valgrind a daemon
process - actually a host of daemon processes.
I downloaded a sample daemon code and tried valgrind
on it. Have provided it below.
Its evident that you chdir('/'), and usually there is
no write permission there. when i comment it off it
does the same.
i referred other places and saw that we close stdout
and stderr of the daemon process. Its not so with the
code.
How to go about in this case ?
Thanks,
Madhan.
--- David Eriksson <tw...@us...>
wrote:
> On Fri, 2004-02-27 at 08:49, smiley glitter wrote:
> > Hello,
> >
> > Is valgrind compatible with a fork'd program. I
> have
> > an application (foo) that forks/execs another
> > program(bar).
> >
> > What is required is to only valgrind the fork'd
> > application (bar). Is it possible.
> >
> > I tried valgrind foo, but bar is not valgrinded.
> >
> > How can I check my fork'd application with
> valgrind.
> > is it possible. any pointers ?
> >
> > Thanks,
> > Smile.
>
> --trace-children=yes
>
>
> --
> Regards,
> -\- David Eriksson -/-
>
> SynCE - http://synce.sourceforge.net
> CalcEm - http://calcem.sourceforge.net
> ScummVM - http://scummvm.sourceforge.net
> Desquirr - http://desquirr.sourceforge.net
> SetiWrapper - http://setiwrapper.sourceforge.net
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com |
|
From: Tom H. <th...@cy...> - 2004-02-27 08:15:21
|
In message <200...@we...>
smiley glitter <smi...@ya...> wrote:
> Is valgrind compatible with a fork'd program. I have
> an application (foo) that forks/execs another
> program(bar).
>
> What is required is to only valgrind the fork'd
> application (bar). Is it possible.
To do that you will need to change foo to exec valgrind with bar as
an argument.
> I tried valgrind foo, but bar is not valgrinded.
It would be if you used --trace-children=yes when you start valgrind
but you will then be valgrinding both programs.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|