A valgrind log snip after adding
--trace-syscalls=yes -v -v -v -d -d -d
Can be seen at: http://pastebin.com/wZb2vbye
(had to use pastebin, since this list will not accept anything more than 40k)
>From what I can tell, it looks like the process is started, but nothing
happens after that?
On Sun, Apr 21, 2013 at 11:34 AM, Wayne Booth
<wbooth.clearsc...@gmail.com>wrote:
> Hi all,
>
> I have a program (it forks itself to become a daemon, then starts a number
> of worker threads) which can start a sub-process (from 'only one of the
> threads at a time') by calling fork followed by execvp.
>
> When I run the program directly, the program works as expected and the
> sub-process is called, runs, logs and returns well.
>
> When the program is started under valgrind, the sub-process seams not to
> run - it does not log or return anything (via its pipe) and valgrind does
> not report anything about that process. execvp does not return, so
> something is starting, but I can't work out what. Any idea what I may be
> doing wrong?
>
> This is the command I'm using to start the process/valgrind:
> valgrind --leak-check=full --leak-resolution=high --error-limit=no
> --tool=memcheck --num-callers=50
> --log-file=results/resultsFiles/valgrind.out --show-below-main=yes
> --track-origins=yes --track-fds=yes --show-reachable=yes
> --trace-children=yes /tmp/opendias_test/bin/opendias >
> results/resultsFiles/appLog.out
>
> I can post the sub-process calling (pipe, fork, execvp) code if that helps.
>
> Cheers for any help.
>
> Wayne Booth
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users