Message6587

Author Daniel Tripp
Recipients Daniel Tripp
Date 2011-07-28.01:26:59
SpamBayes Score 1.5866404e-07
Marked as misclassified No
Message-id <1311816420.02.0.963602647935.issue1784@psf.upfronthosting.co.za>
In-reply-to
Content
Hello.  I hope this is the correct place to report this.  

Like the subject says, I ran into some strange behaviour.  The attached code reproduces this.  Since it is creating a child java process, it assumes some things, such as that jython.jar is in the current directory, as are the Parent / Child class files.

If I run that code on my Vista machine, it exits normally.  If I run it on my Windows Server 2003 VM, the child process never exits.

Attaching to the hung process with a debugger reveals that the main thread is hung in the stack below. 

I would test it on more machines but I don't have the time right now.

sun.security.provider.NativeSeedGenerator.nativeGenerateSeed(Native Method)
sun.security.provider.NativeSeedGenerator.<init>(NativeSeedGenerator.java:28)
sun.security.provider.SeedGenerator.<clinit>(SeedGenerator.java:81)
sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:170)
java.security.SecureRandom.nextBytes(SecureRandom.java:433)
java.security.SecureRandom.next(SecureRandom.java:455)
java.util.Random.nextLong(Random.java:284)
java.io.File.generateFile(File.java:1682)
java.io.File.createTempFile(File.java:1791)
java.io.File.createTempFile(File.java:1828)
com.kenai.jffi.Init.loadFromJar(Init.java:119)
com.kenai.jffi.Init.load(Init.java:64)
com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:35)
com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:31)
com.kenai.jffi.Foreign.getInstance(Foreign.java:81)
com.kenai.jffi.Internals.getErrnoSaveFunction(Internals.java:30)
com.kenai.jaffl.provider.jffi.StubCompiler.getErrnoSaveFunction(StubCompiler.java:85)
com.kenai.jaffl.provider.jffi.StubCompiler.<clinit>(StubCompiler.java:35)
com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:161)
com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:125)
com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
com.kenai.jaffl.Library.loadLibrary(Library.java:76)
org.python.posix.POSIXFactory$WindowsLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:127)
org.python.posix.POSIXFactory$WindowsLibCProvider.getLibC(POSIXFactory.java:131)
org.python.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:29)
org.python.posix.WindowsPOSIX.<init>(WindowsPOSIX.java:115)
org.python.posix.POSIXFactory.loadWindowsPOSIX(POSIXFactory.java:87)
org.python.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:36)
org.python.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:28)
org.python.posix.LazyPOSIX.posix(LazyPOSIX.java:24)
org.python.posix.LazyPOSIX.isatty(LazyPOSIX.java:135)
org.python.core.io.StreamIO.isatty(StreamIO.java:234)
org.python.core.io.BufferedIOMixin.isatty(BufferedIOMixin.java:90)
org.python.core.io.TextIOBase.isatty(TextIOBase.java:175)
org.python.core.PyFile.file_isatty(PyFile.java:485)
org.python.core.PyFile.isatty(PyFile.java:480)
org.python.core.PySystemState.initEncoding(PySystemState.java:245)
org.python.core.PySystemState.<init>(PySystemState.java:189)
org.python.core.PySystemState.doInitialize(PySystemState.java:890)
org.python.core.PySystemState.initialize(PySystemState.java:800)
org.python.core.PySystemState.initialize(PySystemState.java:750)
org.python.core.PySystemState.initialize(PySystemState.java:743)
org.python.util.PythonInterpreter.initialize(PythonInterpreter.java:57)
Parent$Child.main(Parent.java:90)

Regards, 

- Dan
History
Date User Action Args
2011-07-28 01:27:00Daniel Trippsetrecipients: + Daniel Tripp
2011-07-28 01:27:00Daniel Trippsetmessageid: <1311816420.02.0.963602647935.issue1784@psf.upfronthosting.co.za>
2011-07-28 01:26:59Daniel Tripplinkissue1784 messages
2011-07-28 01:26:59Daniel Trippcreate