Bug 471340 - callgrind Error: can not open cache simulation output file callgrind.out.pid
Summary: callgrind Error: can not open cache simulation output file callgrind.out.pid
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: callgrind (show other bugs)
Version: 3.21.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Josef Weidendorfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-22 14:31 UTC by idealeer521
Modified: 2023-11-14 23:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description idealeer521 2023-06-22 14:31:05 UTC
SUMMARY

When I use this cmd: `valgrind --tool=callgrind --trace-children=yes unbound -d -c /etc/unbound/unbound.conf` to debug unbound, it shows: 

==19295== Error: can not open cache simulation output file `callgrind.out.19295'
==19295== could not unlink /tmp/vgdb-pipe-from-vgdb-to-19295-by-unbound-on-???
==19295== could not unlink /tmp/vgdb-pipe-to-vgdb-from-19295-by-unbound-on-???
==19295== could not unlink /tmp/vgdb-pipe-shared-mem-vgdb-19295-by-unbound-on-???

Do you have similar issues?
Comment 1 Paul Floyd 2023-06-22 15:26:29 UTC
Do you have write access where you are running Valgrind?
Comment 2 idealeer521 2023-06-23 02:33:20 UTC
(In reply to Paul Floyd from comment #1)
> Do you have write access where you are running Valgrind?

Yes. I tested three software. The former two are good, but for unbound, Valgrind just made the error above.


drwxr-xr-x 10 root             root         12288 Jun 22 14:00 bind-9.18.12
drwxr-xr-x 18 root             root          4096 Jun 22 11:47 knot-resolver-5.6.0
drwxrwxr-x 27 root             root         12288 Jun 23 02:30 unbound-1.17.1
Comment 3 Paul Floyd 2023-06-23 04:58:16 UTC
In that case I guess that unbound is using capabilities. If so there's not much that can be done unless you can build a version that does not use capabilities.
Comment 4 Paul Floyd 2023-06-23 05:01:03 UTC
See https://bugzilla.mozilla.org/show_bug.cgi?id=1288726 for discussion of seccomp and firefox