Bug 259445 - Eclipse Cocoa x86_64 Segmentation Fault on 10.5.6
Summary: Eclipse Cocoa x86_64 Segmentation Fault on 10.5.6
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.5   Edit
Hardware: Macintosh Mac OS X
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2008-12-20 17:14 EST by Daniel Spiewak CLA
Modified: 2009-01-05 10:27 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Spiewak CLA 2008-12-20 17:14:40 EST
Build ID: I20081211-1908

Using Eclipse 3.5 M4 Cocoa x86_64 on Mac OS X 10.5.6 causes a repeatable Segmentation fault when launching the Java debugger.  This problem also seems to occur unrepeatably when opening the workspace with a Java file open (about 40% through "Initializing Java Tooling").  Everything worked fine in 10.5.5 (well, more or less).  In both seg faults, the Console dump contained a reference to an unlocatable "liblocalfile".

I'm filing this under JDT since that's where it is most reproducable.  However, I strongly suspect this is a Platform issue.  Please recategorize as necessary.

I was able to retrieve the following Console dump:

12/20/08 4:07:27 PM com.apple.launchd[176] ([0x0-0x36036].org.eclipse.eclipse[579]) Exited abnormally: Segmentation fault 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] !SESSION  
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] 2008-12-20 16:07:35.165 --- 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] --------- 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] ------- 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] ------- 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] -------- 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] ------- 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] ------ 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] eclipse.buildId=I20081211-1908 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] java.version=1.6.0_07 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] java.vendor=Apple Inc. 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] BootLoader constants: OS=macosx, ARCH=x86_64 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] , WS=cocoa, NL=en_US 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] Framework arguments:  -keyring 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  /Users/daniel/.eclipse_keyring -showlocation 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] Command-line arguments:  -os macosx 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  -ws cocoa -arch x86_64 -keyring /Users/daniel/.eclipse_keyring 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  -consoleLog -showlocation 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] !ENTRY  
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] org.eclipse.core.filesystem 1 1  
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] 2008-12-20 16:07:41.501 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] !MESSAGE Could not load library: liblocalfile_1_0_0.jnilib.  This library provides platform-specific optimizations for certain file system operations.  This library is not present on all platforms, so this may not be an error.  The resources plug-in will safely fall back to using java.io.File functionality. 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] !STACK 0 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589] java.lang.UnsatisfiedLinkError: no localfile_1_0_0 in java.library.path 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1753) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at java.lang.Runtime.loadLibrary0(Runtime.java:823) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at java.lang.System.loadLibrary(System.java:1030) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.internal.filesystem.local.LocalFileNatives.<clinit>(LocalFileNatives.java:32) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.internal.filesystem.local.LocalFile.fetchInfo(LocalFile.java:142) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.filesystem.provider.FileStore.fetchInfo(FileStore.java:277) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:733) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:797) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:777) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:663) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1325) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1953) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1716) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:376) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:804) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at java.security.AccessController.doPrivileged(Native Method) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:798) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:779) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:192) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:372) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:445) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:401) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:389) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:86) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at java.lang.ClassLoader.loadClass(ClassLoader.java:251) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:114) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:366) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at java.lang.reflect.Method.invoke(Method.java:597) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:550) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:505) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.equinox.launcher.Main.run(Main.java:1237) 
12/20/08 4:07:41 PM [0x0-0x39039].org.eclipse.eclipse[589]  at org.eclipse.equinox.launcher.Main.run(Main.java:1237) 
12/20/08 4:07:44 PM [0x0-0x39039].org.eclipse.eclipse[589] !ENTRY org.eclipse.core.net 1 0 2008-12-20 16:07:44.581
Comment 1 Daniel Spiewak CLA 2008-12-20 17:26:33 EST
Important: it seems that this only happens when I force the JVM to be 1.6.0.  If I allow Eclipse to choose, things work out just fine (so far).
Comment 2 Curtis Windatt CLA 2008-12-22 11:13:06 EST
cc'ing Kevin, perhaps he can take a guess (though he may be away for Christmas).
Comment 3 Kevin Barnes CLA 2008-12-22 12:00:12 EST
Most likey this is a dup of 251021, but there's no useful information in this bug report so we can't be sure. You need Apple's CrashReporter log to find out what was happening natively.

There's already bug for the liblocalfile thing, but that navtive isn't required by Eclipse and not having it does not cause a crash.
Comment 4 Darin Wright CLA 2009-01-05 09:18:08 EST
Re-assinging to resources - the stack trace shows a problem loading liblocalfile, which is related to the file system support.
Comment 5 Kevin Barnes CLA 2009-01-05 09:50:19 EST
We need the crash reporter log file before we can diagnose any crash. Marking as worksforme. please reopen with addtional information if you have it.
Comment 6 Szymon Brandys CLA 2009-01-05 09:54:47 EST
(In reply to comment #4)
> Re-assinging to resources - the stack trace shows a problem loading
> liblocalfile, which is related to the file system support.

As it is stated in comment 3, "that native support isn't required
by Eclipse and not having it does not cause a crash". The entry in the error
log occurs always when Eclipse is not able to load the support and this is
nothing unusual. In this case Eclipse just uses java.io.File. 

I would move it back to JDT/Debug even if it is marked as WORKSFORME so far.

Comment 7 Szymon Brandys CLA 2009-01-05 10:25:54 EST
Reopening just to change the component.
Comment 8 Szymon Brandys CLA 2009-01-05 10:27:19 EST
Marking as WORKSFORME. See comment 5.