https://bugs.kde.org/show_bug.cgi?id=382498

            Bug ID: 382498
           Summary: callgrind: improve error message when unable to write
                    callgrind.out.*
           Product: valgrind
           Version: 3.11.0
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: callgrind
          Assignee: josef.weidendor...@gmx.de
          Reporter: ro...@atchoo.org
  Target Milestone: ---

I have a program I have been profiling with callgrind. It starts as root then
quickly changes to another user. callgrind.out.* is created owned by root and
not writeable by anyone else (quite correctly). When the program terminates, it
is then unable to write to callgrind.out.* and reports

Error: can not open cache simulation output file ...

and so the output file is 0 bytes long.

It took me a little while to figure out what was going on. Would it be possible
to add a bit more detail to the error message to hint about the possible cause?

Something better than this: "Error: can not open cache simulation output file.
This might be caused by incorrect permissions or your program changing user
whilst running"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to