[Bug debuginfod/29117] New: debuginfod client leaking fd's for cache misses

fche at redhat dot com sourceware-bugzilla@sourceware.org
Tue May 3 23:45:01 GMT 2022


https://sourceware.org/bugzilla/show_bug.cgi?id=29117

            Bug ID: 29117
           Summary: debuginfod client leaking fd's for cache misses
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: debuginfod
          Assignee: unassigned at sourceware dot org
          Reporter: fche at redhat dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

There appears to be an fd leak in the debuginfod client cache-miss code path. 
This can exhaust fd resources over time, which is bad for a long-lived client
such as debuginfod itself.  Trying to reproduce the trigger operation sequence.
 But the end result is the client holding onto file descriptors like 

debuginfo 10215 debuginfod   81r   REG                8,0         0   927302
/var/cache/debuginfod/.debuginfod_client_cache/3b47e7f26e7ed1dda18165fb20cb56769affdd19/debuginfo
(deleted)

... while the files actually exist, despite the (deleted) tag; maybe they were
recreated later:

[root@elastic ~]# ls -ald
/var/cache/debuginfod/.debuginfod_client_cache/3b47e7f26e7ed1dda18165fb20cb56769affdd19/debuginfo
-rw-r--r-- 1 debuginfod debuginfod 0 May  3 23:40
/var/cache/debuginfod/.debuginfod_client_cache/3b47e7f26e7ed1dda18165fb20cb56769affdd19/debuginfo

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list