lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Heimes <li...@cheimes.de>
Subject Segfault during IndexWriter.addDocument()
Date Mon, 27 Sep 2010 16:10:47 GMT
I'm trying to port our application to PyLucene 3.x. Most changes were
trivial but now I've hit a dead end. The test suite always seg faults
when it tries to add a document to the index.

writer.addDocument(document, analyzer)
(Pdb) type(analyzer)
<type 'PerFieldAnalyzerWrapper'>
(Pdb) type(analyzer).class_
<Class: class org.apache.lucene.analysis.PerFieldAnalyzerWrapper>
(Pdb) type(document)
<type 'Document'>
(Pdb) type(document).class_
<Class: class org.apache.lucene.document.Document>
(Pdb) p writer
<IndexWriter: org.apache.lucene.index.IndexWriter@4604a96a>
(Pdb) n
Exception RuntimeError: 'maximum recursion depth exceeded in
__subclasscheck__' in <type 'exceptions.RuntimeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in
__subclasscheck__' in <type 'exceptions.RuntimeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded while calling
a Python object' in <type 'exceptions.RuntimeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded while calling
a Python object' in <type 'exceptions.RuntimeError'> ignored
terminate called after throwing an instance of 'int'
Aborted

$ gdb /usr/bin/python2.6 core
(gdb) bt
#0  0x00007fab2afd5a75 in *__GI_raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fab2afd95c0 in *__GI_abort () at abort.c:92
#2  0x00007fab231128e5 in __gnu_cxx::__verbose_terminate_handler() ()
from /usr/lib/libstdc++.so.6
#3  0x00007fab23110d16 in ?? () from /usr/lib/libstdc++.so.6
#4  0x00007fab23110d43 in std::terminate() () from /usr/lib/libstdc++.so.6
#5  0x00007fab23110e3e in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0x00007fab21944b1c in JCCEnv::reportException() const ()
   from
/usr/local/lib/python2.6/dist-packages/JCC-2.6-py2.6-linux-x86_64.egg/libjcc.so
#7  0x00007fab219446db in JCCEnv::callObjectMethod(_jobject*,
_jmethodID*, ...) const ()
   from
/usr/local/lib/python2.6/dist-packages/JCC-2.6-py2.6-linux-x86_64.egg/libjcc.so
#8  0x00007fab21940c50 in JCCEnv::toString(_jobject*) const ()
   from
/usr/local/lib/python2.6/dist-packages/JCC-2.6-py2.6-linux-x86_64.egg/libjcc.so
#9  0x00007fab21eba0ce in t_JObject_str (self=0x6b853f0) at
build/_lucene/JObject.cpp:145
#10 0x0000000000454a81 in _PyObject_Str (v=<Throwable at remote
0x6b853f0>) at ../Objects/object.c:425
#11 0x0000000000454b3a in PyObject_Str (v=<unknown at remote 0x7d70>) at
../Objects/object.c:446
#12 0x000000000041f0c7 in PyObject_Call (func=<method-wrapper at remote
0x6bbb650>, arg=<unknown at remote 0x7da9>, kw=
    <unknown at remote 0x6>) at ../Objects/abstract.c:2492
#13 0x00000000004a7378 in do_call (f=
    Frame 0x7fab0c874210, for file
/usr/local/lib/python2.6/dist-packages/lucene-3.x-py2.6-linux-x86_64.egg/lucene/__init__.py,
line 17, in __str__ (self=<JavaError at remote 0x6bbe1e0>,
writer=<StringWriter at remote 0x6b85558>), throwflag=<value optimized out>)
    at ../Python/ceval.c:3968
#14 call_function (f=
    Frame 0x7fab0c874210, for file
/usr/local/lib/python2.6/dist-packages/lucene-3.x-py2.6-linux-x86_64.egg/lucene/__init__.py,
line 17, in __str__ (self=<JavaError at remote 0x6bbe1e0>,
writer=<StringWriter at remote 0x6b85558>), throwflag=<value optimized out>)
    at ../Python/ceval.c:3773
#15 PyEval_EvalFrameEx (f=
    Frame 0x7fab0c874210, for file
/usr/local/lib/python2.6/dist-packages/lucene-3.x-py2.6-linux-x86_64.egg/lucene/__init__.py,
line 17, in __str__ (self=<JavaError at remote 0x6bbe1e0>,
writer=<StringWriter at remote 0x6b85558>), throwflag=<value optimized out>)
    at ../Python/ceval.c:2412
#16 0x00000000004a9671 in PyEval_EvalCodeEx (co=0x41195d0,
globals=<value optimized out>, locals=<value optimized out>, args=0x1,
    argcount=<value optimized out>, kws=<value optimized out>,
kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3000
#17 0x0000000000537620 in function_call (func=<function at remote
0x4311050>, arg=(<JavaError at remote 0x6bbe1e0>,), kw=0x0)
    at ../Objects/funcobject.c:524
#18 0x000000000041f0c7 in PyObject_Call (func=<function at remote
0x4311050>, arg=<unknown at remote 0x7da9>, kw=<unknown at remote 0x6>)
    at ../Objects/abstract.c:2492
#19 0x0000000000427dff in instancemethod_call (func=<function at remote
0x4311050>, arg=(<JavaError at remote 0x6bbe1e0>,), kw=0x0)
    at ../Objects/classobject.c:2579
#20 0x000000000041f0c7 in PyObject_Call (func=<instancemethod at remote
0x6bafc30>, arg=<unknown at remote 0x7da9>, kw=
    <unknown at remote 0x6>) at ../Objects/abstract.c:2492
#21 0x00000000004a1b03 in PyEval_CallObjectWithKeywords
(func=<instancemethod at remote 0x6bafc30>, arg=(), kw=<unknown at
remote 0x6>)
    at ../Python/ceval.c:3619
#22 0x000000000047796d in slot_tp_str (self=<JavaError at remote
0x6bbe1e0>) at ../Objects/typeobject.c:5313
#23 0x0000000000454a81 in _PyObject_Str (v=<JavaError at remote
0x6bbe1e0>) at ../Objects/object.c:425
#24 0x0000000000454b3a in PyObject_Str (v=<unknown at remote 0x7d70>) at
../Objects/object.c:446
#25 0x00000000004c7f67 in PyErr_Display (exception='lucene',
value=<JavaError at remote 0x6bbe1e0>, tb=<unknown at remote 0x41105cc>)
    at ../Python/pythonrun.c:1267
#26 0x00000000004cf4ec in sys_excepthook (self=<value optimized out>,
args=<value optimized out>) at ../Python/sysmodule.c:138
#27 0x000000000041f0c7 in PyObject_Call (func=<built-in function
excepthook>, arg=<unknown at remote 0x7da9>, kw=<unknown at remote 0x6>)
    at ../Objects/abstract.c:2492
#28 0x00000000004a1b03 in PyEval_CallObjectWithKeywords (func=<built-in
function excepthook>, arg=
    (<type at remote 0x4353b70>, <JavaError at remote 0x6bbe1e0>, None),
kw=<unknown at remote 0x6>) at ../Python/ceval.c:3619
#29 0x00000000004c8db8 in PyErr_PrintEx (set_sys_last_vars=<value
optimized out>) at ../Python/pythonrun.c:1148
#30 0x00007fab21940796 in _PythonException_getErrorInfo(JNIEnv_*,
_jobject*) ()
   from
/usr/local/lib/python2.6/dist-packages/JCC-2.6-py2.6-linux-x86_64.egg/libjcc.so
#31 0x00007fab1ab67c48 in ?? ()
#32 0x00007fab19a2e9f8 in ?? ()
#33 0x00007fab026041b8 in ?? ()
#34 0x00007fab119c4950 in ?? ()
#35 0x00007fab02604218 in ?? ()
#36 0x00007fab119c4e70 in ?? ()
#37 0x0000000000000000 in ?? ()

Mime
View raw message