Am 22.01.2013 12:46, schrieb Steph:
>> root@bt:~# ==1975==
>> ==1975== Error: can not open cache simulation output file
>> `/root/callgrind.out.1975'
>
> I also tried to do same thing under regular user from home directory and
> got the same result

You mean you get:

==1975== Error: can not open cache simulation output file 
`/root/callgrind.out.1975'

?
If so, then for some reason, /usr/local/nginx/sbin/nginx switches
to "/root" first, and spawns subprocess 1975 there.

Did you try with option --callgrind-out-file=... as Philippe suggested?
E.g. using "--callgrind-out-file=<your home path>/callgrind.%p".
The %p is replaced by the PID. This is needed if nginx spawns multiple
processes. Without %p, the processes would overwrite their output.

Josef


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to