|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Child tries to write to parent cache simulation output fileHello list,
I guess it's a FAQ/RTMF thing, but I've searched the docs and the web and couldn't find a clue. I'm trying to run callgrind on daemon process that forks childs. The child processes accept network connections, authenticate the remote user and will seteuid ... to some system user. Im calling valgind like this: $ sudo valgrind --tool=callgrind --trace-children=yes <path to binary> ==3473== Callgrind, a call-graph generating cache profiler. ... $ ls -l callgrind.* -rw------- 1 root root 16087 2009-11-06 15:52 callgrind.out.3473 ... remote client logs in... ==3960== Error: can not open cache simulation output file `/home/frank/callgrind.out.3473' I must run valgrind as root, because the binary must be run as root (a fileserver daemon process listening on TCP port 548 (Netatalk)) and the children seteuid ... as described. The main process started under valgrind then writes to to its output file callgrind.out.$PID. The problem is, apparently the forked child tries to write to the same file instead of its own: ==3960== Error: can not open cache simulation output file `/home/frank/callgrind.out.3473' I'm using valgrind 3.3.0. Any hints? Thanks! -Frank ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Valgrind-users mailing list Valgrind-users@... https://lists.sourceforge.net/lists/listinfo/valgrind-users |
|
|
|
|
|
|
|
|
Re: Child tries to write to parent cache simulation output fileOn Saturday 07 November 2009, Frank Lahm wrote:
> But I still don't understand why the processes dont write to their own > file. I mean if the parent had pid 1 and child had pid, shouldn't they > dump to callgrind.out.1 and callgrind.out.2 respectively in the first > place? A bug? Yes, this is bug 166581, and it hopefully is fixed in 3.5.0. If you still see problems, please reopen the bug. Josef ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Valgrind-users mailing list Valgrind-users@... https://lists.sourceforge.net/lists/listinfo/valgrind-users |
| Free embeddable forum powered by Nabble | Forum Help |