mainThe GNU Bourne-Again SHell - Support: sr #107851, Memory leak on interrupted path...

 
 

sr #107851: Memory leak on interrupted path completion

Submitter:  Enji Cooper <yaneurabeya>
Submitted:  Mon 24 Oct 2011 12:55:40 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  4 - Important Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  *BSD
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Oct 2011 12:55:40 AM UTC, original submission:  

When doing something like path completion on a directory, then hitting ^C when it says "Display all ... possibilities? (y or n)", or when ^C is entered while the readline completer is building the list of available matches, some or more of the results are leaked.

This is particularly prominent on large directories as I've seen multiple instances of bash eat up over 1GB in resident memory.

This is using both the FreeBSD port version and a git master version I handrolled to try and isolate the issue.

I thought the issue was that closedir wasn't being called in all error cases, because that's there are cookies involved in FreeBSD libc that cleanup after telldir is run, but that doesn't appear to be the sole culprit.

I'm in the process of writing up a repro script which will work on FreeBSD, Linux, and OSX.

Enji Cooper <yaneurabeya>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chet (Updated the item)
  • -email is unavailable- added by yaneurabeya (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-12 chet StatusNone Done

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code