On Thu, 3 Aug 2006, David Pratt wrote:

Hi Andi. Some tests seem ok other not. I'll run each with 2.0.0 but I'm pretty sure it is the same tests that are passing and failing.

Yes, that's the usual symptoms with PyLucene unit test failures on a compiler that doesn't work well. It's usually related to issues with garbage collection.

Hence the patch I suggested, which 'may' be linux only, I don't know.
   http://gcc.gnu.org/ml/java/2006-03/msg00190.html
Or the patch attached to bug 13212 which seems to supercede it. Again, I don't know off hand (I'm on vacation right now) if it's linux only.

Andi..


Sorry for the long message.


PyLucene 1.9.1 on FreeBSD-6 gcc4.1.2
=====================================

The following tests pass:

test_Analyzers.py - Ran 3 tests in 0.004s - OK
test_BooleanOr.py - Ran 5 tests in 0.019s - OK
test_BooleanPrefixQuery.py - Ran 1 test in 0.005s - OK
test_BooleanQuery.py - Ran 1 test in 0.002s - OK
test_CachingWrapperFilter.py - Ran 1 test in 0.001s - OK
test_FuzzyQuery.py - Ran 2 tests in 0.013s - OK
test_PhraseQuery.py - Ran 8 tests in 0.035s - OK
test_PositionIncrement.py - Ran 2 tests in 0.006s - OK
test_PrefixQuery.py - Ran 1 test in 0.005s - OK
test_PyLuceneThread.py - Ran 2 tests in 6.199s - OK
test_RangeQuery.py - Ran 2 tests in 0.023s - OK
test_RegexQuery.py - Ran 5 tests in 0.021s - OK
test_StopAnalyzer.py - Ran 2 tests in 0.002s - OK
test_bug1842.py - Ran 1 test in 0.005s - OK

The tracebacks for the failing tests are below:

python test_DateFilter.py
======================================================================
FAIL: testAfter (__main__.DateFilterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_DateFilter.py", line 131, in testAfter
   self.assertEqual(0, result.length())
AssertionError: 0 != 1

======================================================================
FAIL: testBefore (__main__.DateFilterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_DateFilter.py", line 82, in testBefore
   self.assertEqual(0, result.length())
AssertionError: 0 != 1

----------------------------------------------------------------------
Ran 2 tests in 0.008s
FAILED (failures=2)


python test_DocBoost.py
======================================================================
ERROR: testDocBoost (__main__.DocBoostTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_DocBoost.py", line 68, in testDocBoost
   hitCollector())
File "/usr/local/lib/python2.4/site-packages/PyLucene.py", line 2888, in search
   def search(*args): return _PyLucene.Searcher_search(*args)
JavaError: java.lang.NullPointerException
----------------------------------------------------------------------
Ran 1 test in 3.278s
FAILED (errors=1)

python test_FilteredQuery.py
GC Warning: Out of Memory!  Returning NIL!
ESegmentation fault


python test_Highlighter.py
Searching for: wicked
ESearching for: wicked
E
======================================================================
ERROR: testGetBestFragmentsSimpleQuery (__main__.HighlighterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_Highlighter.py", line 79, in testGetBestFragmentsSimpleQuery
   self.doStandardHighlights()
 File "test_Highlighter.py", line 102, in doStandardHighlights
   highlighter.setTextFragmenter(SimpleFragmenter(20))
File "/usr/local/lib/python2.4/site-packages/PyLucene.py", line 4108, in setTextFragmenter def setTextFragmenter(*args): return _PyLucene.Highlighter_setTextFragmenter(*args)
JavaError: java.lang.OutOfMemoryError

======================================================================
ERROR: testSimpleHighlighter (__main__.HighlighterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_Highlighter.py", line 60, in testSimpleHighlighter
   highlighter.setTextFragmenter(SimpleFragmenter(40))
File "/usr/local/lib/python2.4/site-packages/PyLucene.py", line 4108, in setTextFragmenter def setTextFragmenter(*args): return _PyLucene.Highlighter_setTextFragmenter(*args)
JavaError: java.lang.OutOfMemoryError

----------------------------------------------------------------------
Ran 2 tests in 0.018s

FAILED (errors=2)

python test_Not.py - Ran 1 test in 0.004s - OK
python test_PerFieldAnalyzerWrapper.py - Ran 1 test in 0.001s - OK

python test_PhrasePrefixQuery.py
E
======================================================================
ERROR: testPhrasePrefix (__main__.PhrasePrefixQueryTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_PhrasePrefixQuery.py", line 69, in testPhrasePrefix
   if te.term().text().startswith(prefix):
AttributeError: 'NoneType' object has no attribute 'text'

----------------------------------------------------------------------
Ran 1 test in 0.007s
FAILED (errors=1)


python test_PythonDirectory.py
ETesting Indexing Incremental Looping
indexing  0
indexing  1
indexing  2
indexing  3
indexing  4
indexing  5
indexing  6
indexing  7
indexing  8
indexing  9
indexing  10
indexing  11
indexing  12
indexing  13
indexing  14
indexing  15
indexing  16
indexing  17
indexing  18
indexing  19
indexing  20
indexing  21
indexing  22
indexing  23
indexing  24
indexing  25
indexing  26
indexing  27
indexing  28
indexing  29
indexing  30
indexing  31
indexing  32
indexing  33
indexing  34
indexing  35
indexing  36
indexing  37
indexing  38
indexing  39
indexing  40
indexing  41
indexing  42
indexing  43
indexing  44
indexing  45
indexing  46
indexing  47
indexing  48
indexing  49
indexing  50
indexing  51
indexing  52
indexing  53
indexing  54
indexing  55
indexing  56
indexing  57
indexing  58
indexing  59
indexing  60
indexing  61
indexing  62
indexing  63
indexing  64
indexing  65
indexing  66
indexing  67
indexing  68
indexing  69
indexing  70
indexing  71
indexing  72
indexing  73
indexing  74
indexing  75
indexing  76
indexing  77
indexing  78
indexing  79
indexing  80
indexing  81
indexing  82
indexing  83
indexing  84
indexing  85
indexing  86
indexing  87
indexing  88
indexing  89
indexing  90
indexing  91
indexing  92
indexing  93
indexing  94
indexing  95
indexing  96
indexing  97
indexing  98
indexing  99
.Segmentation fault

python test_RangeFilter.py
.FF
======================================================================
FAIL: testRangeFilterId (__main__.TestRangeFilter)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_RangeFilter.py", line 131, in testRangeFilterId
   self.assertEqual(numDocs - 1, len(result), "all but last")
AssertionError: all but last

======================================================================
FAIL: testRangeFilterRand (__main__.TestRangeFilter)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_RangeFilter.py", line 228, in testRangeFilterRand
   self.assertEqual(numDocs - 1, len(result), "all but biggest")
AssertionError: all but biggest

----------------------------------------------------------------------
Ran 3 tests in 0.018s
FAILED (failures=2)


python test_Similarity.py
E
======================================================================
ERROR: testSimilarity (__main__.SimilarityTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_Similarity.py", line 80, in testSimilarity
   searcher.setSimilarity(SimpleSimilarity())
File "/usr/local/lib/python2.4/site-packages/PyLucene.py", line 2890, in setSimilarity
   def setSimilarity(*args): return _PyLucene.Searcher_setSimilarity(*args)
JavaError: java.lang.NullPointerException

----------------------------------------------------------------------
Ran 1 test in 0.008s

FAILED (errors=1)

python test_Sort.py
GC Warning: Out of Memory!  Returning NIL!
ESegmentation fault


[EMAIL PROTECTED] /usr/home/automorpheus/sw/py/PyLucene-src-1.9.1/test # python test_bug1564.py
F
======================================================================
FAIL: test_bug1564 (__main__.Test_Bug1564)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_bug1564.py", line 52, in test_bug1564
   self.assertEqual(hits.length(), 1)
AssertionError: 0 != 1

----------------------------------------------------------------------
Ran 1 test in 0.004s

FAILED (failures=1)
[EMAIL PROTECTED] /usr/home/automorpheus/sw/py/PyLucene-src-1.9.1/test # python test_bug1763.py
E
======================================================================
ERROR: test_bug1763 (__main__.Test_Bug1763)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test_bug1763.py", line 62, in test_bug1763
   self.assertEqual(hits.doc(0).get('id'), '2')
File "/usr/local/lib/python2.4/site-packages/PyLucene.py", line 2611, in doc
   def doc(*args): return _PyLucene.Hits_doc(*args)
JavaError: java.lang.IndexOutOfBoundsException: Not a valid hit number: 0

----------------------------------------------------------------------
Ran 1 test in 0.010s
FAILED (errors=1)


Andi Vajda wrote:

On Thu, 3 Aug 2006, David Pratt wrote:

Ok, I went back to PyLucene 1.0.1 on gcc4.1 but now on FreeBSD-6.0 and it is fine. So on both 4.10 and 6, 1.9.1 and 2.0.0 build without errors but produce segmentation fault once compiled. Anything I can do that might change this? Many thanks.

Yes, run this in gdb and tell us more ?

Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev


_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to