bugÉtoilé - Bugs: bug #10605, Not closed File Handles / Object...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #10605: Not closed File Handles / Object deallocation problems

Submitted by:  Manuel Guesdon <mguesdon>
Submitted on:  Fri 28 Dec 2007 01:20:06 PM UTC  
 
Category: LuceneKitSeverity: 5 - Blocker
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: GNU/Linux

Fri 28 Dec 2007 03:03:25 PM UTC, comment #1:

AFter the first step here is GSDebugAllocationList(YES) LC* result:
1 LCDefaultSimilarity
1 LCRAMDirectory
2 LCFSIndexOutput
3 LCFieldInfos
6 LCFieldInfo
12 LCRAMFile
2 LCRAMOutputStream
7 LCTerm
3 LCPosting
4 LCTermVectorOffsetInfo
4 LCTermInfosWriter
6 LCTermInfo
1 LCSegmentReader
14 LCRAMInputStream
1 LCFieldsReader
1 LCTermInfosReader
2 LCSegmentTermEnumerator
4 LCTermBuffer
2 LCNorm
1 LCTermVectorsReader
and 2 GSFileHandle

After the 2nd step, there more unfreed objects:
1 LCFSDirectory
1 LCRAMDirectory
2 LCFSIndexOutput
4 LCFieldInfos
8 LCFieldInfo
12 LCRAMFile
2 LCRAMOutputStream
7 LCTerm
3 LCPosting
6 LCTermVectorOffsetInfo
4 LCTermInfosWriter
8 LCTermInfo
2 LCSegmentReader
14 LCRAMInputStream
2 LCFieldsReader
2 LCTermInfosReader
4 LCSegmentTermEnumerator
8 LCTermBuffer
4 LCNorm
2 LCTermVectorsReader
14 LCFSIndexInput
1 LCCompoundFileReader
14 LCCSIndexInput
and
16 GSFileHandle

Manuel Guesdon <mguesdon>
Project Member
Fri 28 Dec 2007 01:20:06 PM UTC, original submission:

Some LCCSIndexInput clones are not deallocated and associated file handle is not closed.

To see this, create a directory with 2 text files and just run the attached LuceneKitSample.m with --path PathToTxtDir

If you check /proc/PID/fd, you'll see not closed file descriptors:
...
lr-x------ 1 manu manu 64 Dec 28 14:16 20 -> /..../LuceneKit_Index/_8.cfs (deleted)
lr-x------ 1 manu manu 64 Dec 28 14:16 21 -> /.../LuceneKit_Index/_8.cfs (deleted)
lr-x------ 1 manu manu 64 Dec 28 14:16 22 -> /.../LuceneKit_Index/_8.cfs (deleted)
...

Manuel Guesdon <mguesdon>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mguesdon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 28 Dec 2007 01:20:06 PM UTCmguesdonAttached File-=>Added LuceneKitExample.m, #3467
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup