[pylucene-dev] Infinite recursion causes segfault

Pete pfein at pobox.com
Sat Mar 8 08:05:19 PST 2008


When lucene has been imported & initVM'd, inifinite recursion causes a 
segfault, even if the recursing function doesn't use lucene.

In [1]: import lucene

In [2]: lucene.initVM(lucene.CLASSPATH)
Out[2]: <jcc.JCCEnv object at 0xb7e18300>

In [3]: def f():
   ...:     return f()
   ...:

In [4]: f()
Segmentation fault (core dumped)

Without initializing lucene VM:

<type 'exceptions.RuntimeError'>: maximum recursion depth exceeded

Strangeness.

-- 
Peter Fein   ||   773-575-0694   ||   pfein at pobox.com
http://www.pobox.com/~pfein/   ||   PGP: 0xCCF6AE6B
irc: pfein at freenode.net   ||   jabber: peter.fein at gmail.com


More information about the pylucene-dev mailing list