PAPI High-Level API can't write counter reports to NFS file system

Issue #103 resolved
Giuseppe Congiu created an issue

_internal_hl_write_output() opens a file to dump counters into, then it tries to acquire a lock for the file using flock(). If this call fails the file is closed and a new file is created with a different name to restart the process. This gives raise to an infinite loop in which new files are created. The source of the bug is that flock() is not POSIX compliant (it is BSD 4.4 compliant) and does not work on NFS mount points. We should replace it with fcntl() instead.

Comments (2)

  1. Log in to comment