On Sat, 19 Nov 2011, Michael McCandless wrote:

On Sat, Nov 19, 2011 at 5:53 PM, Andi Vajda <va...@apache.org> wrote:

On Sat, 19 Nov 2011, Andi Vajda wrote:

Hi Mike,

On Sat, 19 Nov 2011, Michael McCandless wrote:

Does anyone else see this?

 import lucene

 lucene.initVM()
 lucene.IndexWriterConfig(lucene.Version.LUCENE_34)

--> SIGSEGV?


IndexWriterConfig expects an analyzer as a 2nd argument... but I would
expect a nice "lucene.InvalidArgsError" instead (that's what I hit if
I pass no args to IWC).

NOTE: it could be I somehow screwed something up... I built PyLucene
off 3.x tip (to be 3.5.0), and enabled the spellchecker module.

I can reproduce this here too and it doesn't look like the missing
argument is the problem. It's crashing when handling the first one...

There's got to be something wrong with IndexWriterConfig's wrapper since
StopAnalyzer(Version.LUCENE_34) works fine and all tests pass.

I need to take a closer look about what's different with this class.

Strange...

As long as I pass the analyzer as the 2nd arg (as I'm supposed to!)
everything works fine; it's only if I leave off that 2nd arg that I
hit the SEGV.

Wow, you're right. There is indeed a bug with argument parsing here.
I just added a sanity check and the crash no longer reproduces.
Very strange...

Andi..

Reply via email to