Community
Participate
Working Groups
This might be a jdk 1.3.1_06 bug, but in one of my projects the workspace crashes at random intervals, usually at the moment a recompile is necessary (save or cvs update). The hs_err_pidXXX.log reads as follows: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6d3c7975 Function name=ZIP_Open Library=C:\Program Files\JavaSoft\JRE\1.3.1_06\bin\zip.dll Current Java thread: at java.util.zip.ZipFile.getNextEntry(Native Method) at java.util.zip.ZipFile.access$300(Unknown Source) at java.util.zip.ZipFile$2.nextElement(Unknown Source) at org.eclipse.jdt.internal.core.builder.ClasspathJar.isPackage (ClasspathJar.java:84) at org.eclipse.jdt.internal.core.builder.ClasspathJar.findClass (ClasspathJar.java:60) at org.eclipse.jdt.internal.core.builder.NameEnvironment.findClass (NameEnvironment.java:282) at org.eclipse.jdt.internal.core.builder.NameEnvironment.findType (NameEnvironment.java:298) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createPackage (LookupEnvironment.java:332) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings (CompilationUnitScope.java:80) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings (LookupEnvironment.java:119) at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile (Compiler.java:300) at org.eclipse.jdt.internal.compiler.Compiler.compile (Compiler.java:323) at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile (AbstractImageBuilder.java:194) at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile (AbstractImageBuilder.java:144) at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build (IncrementalImageBuilder.java:105) at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas (JavaBuilder.java:189) at org.eclipse.jdt.internal.core.builder.JavaBuilder.build (JavaBuilder.java:117) at org.eclipse.core.internal.events.BuildManager$2.run (BuildManager.java:393) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:839) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.core.internal.events.BuildManager.basicBuild (BuildManager.java:120) at org.eclipse.core.internal.events.BuildManager.basicBuild (BuildManager.java:176) at org.eclipse.core.internal.events.BuildManager.basicBuild (BuildManager.java:186) at org.eclipse.core.internal.events.BuildManager$1.run (BuildManager.java:146) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:839) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.core.internal.events.BuildManager.basicBuild (BuildManager.java:160) at org.eclipse.core.internal.events.BuildManager.build (BuildManager.java:211) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java:876) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1585) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:79) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:2596) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperati on(CompilationUnitEditor.java:799) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:849) at org.eclipse.ui.internal.EditorManager$11.run (EditorManager.java:1015) at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.java:884) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:246) at org.eclipse.jface.window.ApplicationWindow$1.run (ApplicationWindow.java:391) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:65) at org.eclipse.jface.window.ApplicationWindow.run (ApplicationWindow.java:388) at org.eclipse.ui.internal.WorkbenchWindow.run (WorkbenchWindow.java:1146) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:890) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:1020) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:2050) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:30) at org.eclipse.jface.action.Action.runWithEvent(Action.java:769) at org.eclipse.ui.internal.WWinKeyBindingService.invoke (WWinKeyBindingService.java:138) at org.eclipse.ui.internal.WWinKeyBindingService.pressed (WWinKeyBindingService.java:119) at org.eclipse.ui.internal.WWinKeyBindingService$5.widgetSelected (WWinKeyBindingService.java:366) at org.eclipse.ui.internal.AcceleratorMenu$2.handleEvent (AcceleratorMenu.java:55) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1692) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1435) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1418) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:831) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539) Dynamic libraries: 0x00400000 - 0x00405000 C:\WINDOWS\system32\javaw.exe 0x77F40000 - 0x77FF0000 C:\WINDOWS\System32\ntdll.dll 0x77E40000 - 0x77F37000 C:\WINDOWS\system32\kernel32.dll 0x77DA0000 - 0x77E3A000 C:\WINDOWS\system32\ADVAPI32.dll 0x77C90000 - 0x77D05000 C:\WINDOWS\system32\RPCRT4.dll 0x77D10000 - 0x77D9D000 C:\WINDOWS\system32\USER32.dll 0x77C40000 - 0x77C80000 C:\WINDOWS\system32\GDI32.dll 0x77BE0000 - 0x77C33000 C:\WINDOWS\system32\MSVCRT.dll 0x6D420000 - 0x6D4F9000 C:\Program Files\JavaSoft\JRE\1.3.1_06 \bin\hotspot\jvm.dll 0x76AF0000 - 0x76B1D000 C:\WINDOWS\system32\WINMM.dll 0x6D220000 - 0x6D227000 C:\Program Files\JavaSoft\JRE\1.3.1_06 \bin\hpi.dll 0x6D3B0000 - 0x6D3BD000 C:\Program Files\JavaSoft\JRE\1.3.1_06 \bin\verify.dll 0x6D250000 - 0x6D266000 C:\Program Files\JavaSoft\JRE\1.3.1_06 \bin\java.dll 0x6D3C0000 - 0x6D3CD000 C:\Program Files\JavaSoft\JRE\1.3.1_06 \bin\zip.dll 0x10000000 - 0x10007000 C:\java\eclipse\plugins\org.eclipse.core.resources.win32_2.1.0\os\win32 \x86\core_2_0_5.dll 0x09300000 - 0x09347000 C:\java\eclipse\plugins\org.eclipse.swt.win32_2.1.0\os\win32\x86\swt- win32-2116.dll 0x77180000 - 0x7729A000 C:\WINDOWS\system32\ole32.dll 0x77310000 - 0x7739B000 C:\WINDOWS\system32\COMCTL32.dll 0x76350000 - 0x76396000 C:\WINDOWS\system32\comdlg32.dll 0x772A0000 - 0x77303000 C:\WINDOWS\system32\SHLWAPI.dll 0x69800000 - 0x69FF8000 C:\WINDOWS\system32\SHELL32.dll 0x770F0000 - 0x7717B000 C:\WINDOWS\system32\OLEAUT32.dll 0x76330000 - 0x7634A000 C:\WINDOWS\system32\IMM32.dll 0x71950000 - 0x71A34000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common- Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a\comctl32.dll 0x5B0F0000 - 0x5B124000 C:\WINDOWS\system32\uxtheme.dll 0x746A0000 - 0x746EB000 C:\WINDOWS\System32\MSCTF.dll 0x09530000 - 0x09539000 C:\WINDOWS\System32\PGPhk.dll 0x09650000 - 0x0965D000 C:\WINDOWS\System32\tabhook.dll 0x74C00000 - 0x74C2C000 C:\WINDOWS\system32\oleacc.dll 0x76020000 - 0x76081000 C:\WINDOWS\system32\MSVCP60.dll 0x76320000 - 0x76325000 C:\WINDOWS\system32\msimg32.dll 0x6D340000 - 0x6D348000 C:\Program Files\JavaSoft\JRE\1.3.1_06 \bin\net.dll 0x097A0000 - 0x097A9000 C:\WINDOWS\system32\WSOCK32.dll 0x0A3E0000 - 0x0A3F5000 C:\WINDOWS\system32\WS2_32.dll 0x099C0000 - 0x099C8000 C:\WINDOWS\system32\WS2HELP.dll 0x0A400000 - 0x0A43C000 C:\WINDOWS\System32\mswsock.dll 0x76EE0000 - 0x76F05000 C:\WINDOWS\system32\DNSAPI.dll 0x76F70000 - 0x76F77000 C:\WINDOWS\System32\winrnr.dll 0x76F20000 - 0x76F4D000 C:\WINDOWS\system32\WLDAP32.dll 0x76F80000 - 0x76F85000 C:\WINDOWS\system32\rasadhlp.dll 0x09B20000 - 0x09B28000 C:\WINDOWS\System32\wshtcpip.dll 0x0A440000 - 0x0A4C1000 C:\Programme\Apoint\Apoint.DLL 0x77BD0000 - 0x77BD7000 C:\WINDOWS\system32\VERSION.dll 0x0A370000 - 0x0A37D000 C:\WINDOWS\System32\Vxdif.dll 0x0A390000 - 0x0A39D000 C:\WINDOWS\SYSTEM32\Drivers\Dadkeyb.dll 0x76C50000 - 0x76C72000 C:\WINDOWS\system32\imagehlp.dll 0x6DA00000 - 0x6DA7C000 C:\WINDOWS\system32\DBGHELP.dll 0x76BB0000 - 0x76BBB000 C:\WINDOWS\system32\PSAPI.DLL Local Time = Tue Nov 26 12:32:32 2002 Elapsed Time = 678 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.3.1_06-b01 mixed mode) #
Created attachment 2541 [details] Probably corupt jar I think this one is responsible, but I'm not 100% sure.
Could we improve this behavior ? Why isn't the JavaModel also crashing in similar way?
Had no problem compiling against the jar file. I'm running the JDK build 1.3.1_01a.
Created attachment 2581 [details] It's most likely this one I think my first guess was wrong. I've replaced the jdbc extensions above by a different version that worked fine in another project and still observered the random crashes. So I've experimented a little and observered that the workspace seems to be stable if I remove the mysql-jdbc driver from the classpath (just have to include it if I want to debug). I'm not sure if this helps. The jar-File seems to be completely sane and works fine outside the IDE with the same VM. This problem seems to be spezial to the 1.3.1_06 jdk, since I share the project with some collegues who have never observered this problem with a slightly older jdk (1.3.1_03 I think)
I don't believe we can protect ourselves from natives failing, and if we could, I don't think we want to... If we silently treat the jar file as if its empty or didn't exist, we won't end up helping the user in the end.
Closing as JRE bug.