[KinoSearch] _write_postings hanging in _02

Chris Nandor projects at pudge.net
Wed Mar 7 20:36:55 PST 2007


At 20:08 -0800 2007.03.07, Marvin Humphrey wrote:
>I got a bus error from trying to dereference a NULL pointer.  This
>appears to be the fix, and was committed as r2130.

>The test code I used to reproduce the bug is below.  Please let me
>know whether the flow is the same as yours, since I didn't get a hang.

The flow is basically the same, yes.  And I no longer get the hang.  Yay!

I was getting a bus error earlier, though; although I am not sure how much
was pilot error.

I was updating my searcher code, and previously I had been setting the
offset passed to seek() using $hits->total_hits.  But now I can't get that
before I call seek(), and as a result, I was passing num_wanted => 0 to
search().  This bug in my code causing a bus error in KS.

That said, I wonder if 0 or something similar might be a way to denote
"send everything."  My workaround now is to send $reader->num_docs instead,
which is fine too, I think.

-- 
Chris Nandor                      pudge at pobox.com    http://pudge.net/
Open Source Technology Group       pudge at ostg.com     http://ostg.com/



More information about the kinosearch mailing list