[pylucene-dev] Infinite recursion causes segfault
Andi Vajda
vajda at osafoundation.org
Sat Mar 8 11:39:04 PST 2008
On Sat, 8 Mar 2008, Pete wrote:
> On Saturday March 8 2008 12:44:49 pm Andi Vajda wrote:
>> 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.
>
> No dice:
>
> n [1]: import lucene
>
> In [2]: lucene.initVM(lucene.CLASSPATH, vmargs='-Xrs')
> Out[2]: <jcc.JCCEnv object at 0xb7e21300>
>
> In [3]: def f():
> ...: return f()
> ...:
>
> In [4]: f()
> Segmentation fault (core dumped)
Did you try something like initVM(classpath, maxstack='2m') ?
In chandler we had a suspicious crash like this one triggered by wxPython
that we worked around by giving the VM enough stack.
Andi..
>
> While I recognize that the presence of infinite recurusion is likely to be a
> bug in python code, dumping core here makes debugging almost impossible. I
> spent almost an hour looking for stray threads / extension conflicts before
> happening to see the bug in my python code (missing super() call).
>
> --
> 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