bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #50326] Memory leak due to missing me_mntroot deallocation


From: Herwig Hochleitner
Subject: [bug #50326] Memory leak due to missing me_mntroot deallocation
Date: Thu, 16 Feb 2017 05:38:39 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?50326>

                 Summary: Memory leak due to missing me_mntroot deallocation
                 Project: findutils
            Submitted by: bendlas
            Submitted on: Thu 16 Feb 2017 10:38:37 AM UTC
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.6.0
           Fixed Release: None

    _______________________________________________________

Details:

Long running invocations of find, e.g. as part of update-locatedb, grow their
allocated memory beyond all bounds. On my system (NixOS), I have regularly
observed it to take more than 12G of RES memory.

This bug was originally reported to the ubuntu tracker
(https://bugs.launchpad.net/ubuntu/+source/findutils/+bug/1364492) and the
patch that was posted there by Juan Carlos Cordero González
(https://launchpadlibrarian.net/304000719/find_bug.patch) fixed the condition
for me.

% find --version
find (GNU findutils) 4.6.0
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD)
CBO(level=2)

%
/nix/store/yarp3aqw768wi94nh4n9wzrdb4k74bva-findutils-4.6.0/bin/find/(-fstypeafs-o-fstypeanon_inodefs-o-fstypeauto-o-fstypeautofs-o-fstypebdev-o-fstypebinfmt-o-fstypebinfmt_misc-o-fstypecgroup-o-fstypecifs-o-fstypecoda-o-fstypeconfigfs-o-fstypecramfs-o-fstypecpuset-o-fstypedebugfs-o-fstypedevfs-o-fstypedevpts-o-fstypedevtmpfs-o-fstypeecryptfs-o-fstypeeventpollfs-o-fstypeexofs-o-fstypefutexfs-o-fstypeftpfs-o-fstypefuse-o-fstypefusectl-o-fstypegfs-o-fstypegfs2-o-fstypehostfs-o-fstypehugetlbfs-o-fstypeinotifyfs-o-fstypeiso9660-o-fstypejffs2-o-fstypelustre-o-fstypemisc-o-fstypemqueue-o-fstypencpfs-o-fstypennpfs-o-fstypeocfs-o-fstypeocfs2-o-fstypepipefs-o-fstypeproc-o-fstyperamfs-o-fstyperpc_pipefs-o-fstypesecurityfs-o-fstypeselinuxfs-o-fstypesfs-o-fstypeshfs-o-fstypesmbfs-o-fstypesockfs-o-fstypespufs-o-fstypenfs-o-fstypeNFS-o-fstypenfs4-o-fstypenfsd-o-fstypesshfs-o-fstypesubfs-o-fstypesupermount-o-fstypesysfs-o-fstypetmpfs-o-fstypeubifs-o-fstypeudf-o-fstypeusbfs-o-fstypevboxsf-o-fstypevp
 
erfctrfs-o-typed-regex\(^/tmp$\)\|\(^/var/tmp$\)\|\(^/var/cache$\)\|\(^/var/lock$\)\|\(^/var/run$\)\|\(^/var/spool$\)\|\(^/nix/store$\))-prune-o-print0




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50326>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]