Sat 15 Sep 2012 01:43:45 PM UTC, original submission:
Hello,
Nemo Maelstrom Thorx reported the following issue in the Debian bts <http://bugs.debian.org/687358>. Afaict it applies to both 4.4.2 and 4.5.10. As it also is found in the oldfind variant this should not be a duplicate of <http://savannah.gnu.org/bugs/?34079>
cu Andreas
---------------------------------
Find appears to consume and not release large amounts of memory when asked to print time directives with custom formatting. ie, %Ak, %Ck and %Tk.
The rate of memory consumption appears to correlate with the number of these directives used
Observable by running, for eg:
# find / -printf "[%y %11s %TY.%Tm.%Td %TH:%TM]\t%p\n"
...and simultaneously 'top' or other memory monitor. Resident size grows without check.
With enough files being found, this can grow to trigger an OOM.
I've marked this as upstream, as I've since observed the same behaviour on find 4.4.2 in CentOS (as well as in debian derivatives mint and ubuntu)
Experimental 4.5 also appears to have the same issue.
However 4.2 on an older non-debian system did not have this issue.
.../Nemo
---------------------------------
|