[pylucene-dev] Infinite recursion causes segfault
Andi Vajda
vajda at osafoundation.org
Sat Mar 8 09:44:49 PST 2008
On Mar 8, 2008, at 8:05, Pete <pfein at pobox.com> wrote:
> 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.
>
Try initVM(vmargs='-Xrs') which affects how java uses signals. Another
thing that could affect this is how much stack you give java with -Xms
(also maxstack) increasing it may give you your Python exception back.
Andi..
> --
> 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
> _______________________________________________
> pylucene-dev mailing list
> pylucene-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
More information about the pylucene-dev
mailing list