Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
PyLucene, mail # dev - Re: [VOTE] Release PyLucene 3.6.1-2


Copy link to this message
-
Re: [VOTE] Release PyLucene 3.6.1-2
Andi Vajda 2012-08-25, 22:13

On Thu, 23 Aug 2012, Christian Heimes wrote:

> Am 21.08.2012 07:14, schrieb Andi Vajda:
>> Please vote to release these artifacts as PyLucene 3.6.1-2.
>
> -1, sorry :)
>
> test_ICUTransformFilter.py is segfaulting on my system. I haven't been
> able to get a sensible stack trace yet. I'm going to recompile
> everything with debug infos tomorrow.
>
> OS: Ubuntu 12.04
> Arch: x86_64
> Python: 2.7.3 (self compiled with UCS-2)
> ICU4C: 49.1.1
> PyICU: 1.4
>
> Christian

I investigated this and found that there are actually two problems here:

   - for test/test_ICUFoldingFilter.py, the version of ICU must be 4.8 with
     Lucene 3.x and 49 with Lucene 4.x (as explained by Robert earlier)

   - the segfault with test/test_ICUTransformFilter.py is due to a bug in
     PyICU 1.4: a UBool was passed to parseArgs where an int was expected,
     causing the stack to get corrupted

I fixed the PyICU bug in rev 200 of its svn repository.
I added a version check for test/ICUFoldingFilter.py to skip the test and
emit a warning in case of an ICU_VERSION mismatch.

I also got the ICU-based tests to work on 4.0 (see below).

Andi..

$ ls test/test_ICU* | xargs -n 1 _install/bin/python
.
----------------------------------------------------------------------
Ran 1 test in 0.009s

OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.009s

OK
....
----------------------------------------------------------------------
Ran 4 tests in 0.199s

OK