I just spent some time tracking down a core dump in a big Python program, in PyLucene, till I figured out that the thread making the call had never been registered as a Java thread (the code at some interim calling frame changed till it suddenly was calling into Java).
Is there some way to make that throw an exception rather than a segfault -- "Attempt to call into Java from a non-Java thread"? That would be really useful. Bill