Relates :
|
Attached two simple testcases that crash the JVM 100% of the time. Both testcases rely on JNI In the first testcase, the JVM garbage collector crashes immediately on startup depending on the build settings of testcase. The second testcase works fine under the 32-bit JVM, but crashes in mid-execution on the 64-bit JVM. The first testcase: 1) Download http://bbs.darktech.org/Test64BitCrash.zip (7MB) 2) Whether you run under 32-bit or 64-bit JVMs, they will crash immediately on startup. 3) If you change the build options from "Program Database (/Zi)" to "Program Database for Edit & Continue (/ZI)" the 32-bit version will suddenly work. 4) The problem is that there is no such thing as "/ZI" for 64-bit so the testcase *always* crashes under that JVM. Please take a look at the attached crash dump(hs_err_pid1840.log). It was generated under the 32-bit JVM. The second testcase: 1) Same testcase 2) The code runs the first two lines of code just fine, but then crashes on EntityManagerFactory.createEntityManager()... only under the 64-bit JVM. You can't reproduce the 2nd testcase until the 1st one is fixed. CAP member got a larger application which exhibits this issue but it is much larger than this testcase. The testcase project files use Netbeans 6.5 and VisualStudio 2008.