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   ||   [EMAIL PROTECTED]
http://www.pobox.com/~pfein/   ||   PGP: 0xCCF6AE6B
irc: [EMAIL PROTECTED]   ||   jabber: [EMAIL PROTECTED]
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to