I'm trying to create a JNI DLL to provide an interface to the GPGME library and I'm having little success. GPG, GPGME (GPG Made Easy) and my JNI code all compile cleanly under Cygwin but when I run java to test it, I get the following: ............................................................ CP1 CP2 CP2.5 CP2.7 Usage: java [-options] class [args...] (to execute a class) or java -jar [-options] jarfile [args...] (to execute a jar file)
where options include: <SNIP JAVA OPTIONS> assertion "!wait_sig_inited" failed: file "/netrel/src/cygwin-1.3.18-1/winsup/cygwin/sigproc.cc", line 657 <SNIP 11 DUPLICATES> 2528 [main] java 1592 sync_with_child: child 1492(0x3F0) died before initialization with status code 0x 2680 [main] java 1592 sync_with_child: *** child state waiting for longjmp CP3 CP4 assertion "!wait_sig_inited" failed: file "/netrel/src/cygwin-1.3.18-1/winsup/cygwin/sigproc.cc", line 657 <SNIP 4 DUPLICATES> CP5 CP6 CP7 assertion "!wait_sig_inited" failed: file "/netrel/src/cygwin-1.3.18-1/winsup/cygwin/sigproc.cc", line 657 <SNIP 3 DUPLICATES> CP8 CP9 assertion "!wait_sig_inited" failed: file "/netrel/src/cygwin-1.3.18-1/winsup/cygwin/sigproc.cc", line 657 <SNIP 22 DUPLICATES> Usage: java [-options] class [args...] (to execute a class) or java -jar [-options] jarfile [args...] (to execute a jar file) where options include: <SNIP JAVA OPTIONS> assertion "!wait_sig_inited" failed: file "/netrel/src/cygwin-1.3.18-1/winsup/cygwin/sigproc.cc", line 657 <SNIP 96 DUPLICATES> 201249 [main] java 1592 sync_with_child: child 1584(0x40C) died before initialization with status code 0x 201866 [main] java 1592 sync_with_child: *** child state waiting for longjmp null assertion "!wait_sig_inited" failed: file "/netrel/src/cygwin-1.3.18-1/winsup/cygwin/sigproc.cc", line 657 <SNIP 190 DUPLICATES> ........................................................... The "CPx" lines above are from my JNI DLL, sprinkled in among the calls to the GPGME API; apparently java is loading my DLL and running at least part of it. I've written a standalone C program that uses this same code with no problem; this seems to happen only when I run it through java. GPGME works by running the GPG executable in the background -- my best guess is that this sub-process is exiting improperly or too fast and causing this assertion. I'm currently running Cygwin 1.3.18-1, though I've also tested 1.3.17-1, 1.3.16-1 and the 1/9/2003 snapshot; they all behave the same way (cygcheck output is attached). Any ideas? Would using the mingw32 options avoid this problem? I've been unable to link correctly with mingw32 but I'm willing to keep trying if that's a possible solution. I'd be happy to post the source to my JNI DLL if that would help (it's very small). Thanks in advance! -- Sam Clippinger lookandfeel new media "The only difference between myself and a madman is that I am not mad!" -Salvador Dali
cygcheck.out
Description: Binary data
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/