On 6/9/05, Quentin Mathé <[EMAIL PROTECTED]> wrote: > Le mardi 07 juin 2005 à 15:59 -0700, Yen-Ju Chen a écrit : > > > On 6/7/05, Quentin <[EMAIL PROTECTED]> wrote: > > > > > I have fixed previosusly a segmentation fault in LCSegmentMerger.m with > > > the attached patch. > > > > Thanx. I applied it with some modification, > > though I am surprised that it causes a segmentation fault. > > What I have thought is [readers maxDocument] is returning a strictly > positive value, but [LCIndexReader setNorms:bytes:offset:] is currently > not implemented then bytes is still empty when we call this method, > then the loop iteration on bytes is done on garbage memory. >
In short, LCIndexReader is an abstract-class, just like NSString. The real implementation is either in LCSegmentReader or LCMultiReader depending on the size of index. It's usually LCSegmentReader. [snip] > > I can know report another error : > TestStore.m:139 msgUKIntsEqual.pass > ukrun: Uncaught exception NSFileHandleOperationException, reason: > attempt to close closed file I will check it when I have time Yen-Ju > > Quentin. > > -- > Quentin Mathé > [EMAIL PROTECTED] > > > _______________________________________________ > Etoile-dev mailing list > [email protected] > https://mail.gna.org/listinfo/etoile-dev >
