[pylucene-dev] Infinite recursion causes segfault
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 : import lucene
> In : lucene.initVM(lucene.CLASSPATH, vmargs='-Xrs')
> Out: <jcc.JCCEnv object at 0xb7e21300>
> In : def f():
> ...: return f()
> In : 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.
> 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
More information about the pylucene-dev