[pylucene-dev] Infinite recursion causes segfault
Pete
pfein at pobox.com
Sat Mar 8 11:05:00 PST 2008
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)
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
More information about the pylucene-dev
mailing list