Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320988

Summary: Eclipse crashes on a specific system but works on all others with the same OS
Product: [Eclipse Project] Platform Reporter: Mike <dphe>
Component: SWTAssignee: Project Inbox <swt-triaged>
Status: RESOLVED WORKSFORME QA Contact: Grant Gayed <grant_gayed>
Severity: major    
Priority: P3 CC: dphe, remy.suen
Version: 3.4.1Keywords: needinfo
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
JVM crash
none
JVM crash1 none

Description Mike CLA 2010-07-27 05:59:23 EDT
Build Identifier: 3.4.1

When I try to launch eclipse with -data <workspace> -consoleLog I get the following output:

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x51253bec, pid=12506, tid=4160125840
#
# Java VM: Java HotSpot(TM) Server VM (11.3-b02 mixed mode linux-x86)
# Problematic frame:
# C  [libxul.so+0xcf2bec]  cairo_scaled_font_create+0x96
#
# An error report file with more information is saved as:
# /ws/susrikan-sjc/wave/hs_err_pid12506.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#


Following is the version of gtk:

rpm -q gtk2
gtk2-2.10.4-20.el5.x86_64
gtk2-2.10.4-20.el5.i386



Reproducible: Always

Steps to Reproduce:
1.Launch eclipse on the machine.
2.give the desired workspace.
3.JVM crashes and Eclipse initial page comes up and closes.
Comment 1 Remy Suen CLA 2010-07-27 06:08:48 EDT
(In reply to comment #0)
> Build Identifier: 3.4.1

Please test with 3.6.

> # C  [libxul.so+0xcf2bec]  cairo_scaled_font_create+0x96

What versions of XULRunner/Firefox/Seamonkey do you have installed?

> # An error report file with more information is saved as:
> # /ws/susrikan-sjc/wave/hs_err_pid12506.log

Please attach the entire file.
Comment 2 Mike CLA 2010-07-27 07:34:03 EDT
Created attachment 175304 [details]
JVM crash
Comment 3 Mike CLA 2010-07-27 07:35:15 EDT
The firefox version installed on the machine is:

Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009060403 Red Hat/3.0.11-2.el5_3 Firefox/3.0.11
Comment 4 Mike CLA 2010-07-27 07:37:31 EDT
Created attachment 175305 [details]
JVM crash1
Comment 5 Grant Gayed CLA 2010-07-28 11:56:08 EDT
It looks like it has loaded the xulrunner libraries in /ws/susrikan-sjc/wave/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.8.0.1/xulrunner/, and the libxul.so in there has cairo statically linked.  I don't think this is typical of xulrunner; I've ldd'd libxul.so in a few different xulrunner versions and they all link to the OS's installed cairo.  Is your xulrunner custom-built?  Or if not, presumably it came shipped with an eclipse plug-in you have installed?

I notice that you're on RHEL 5.3, so I think you should have a xulrunner installed with the OS (run "xulrunner" at the command line to verify this).  If so then try stopping pointing the Browser at the xulrunner in /ws/susrikan-sjc/wave/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.8.0.1/xulrunner/ and instead let it detect the OS-installed one at runtime.  If you're wondering what needs to be undone, http://www.eclipse.org/swt/faq.php#specifyxulrunner details ways that a plug-in is able to point at a shipped xulrunner.

If the xulrunner that's being used came from another plug-in and you're not sure which of these it's doing in order to point at itself then you may be able to just overwrite /ws/susrikan-sjc/wave/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.8.0.1/xulrunner/ with a xulrunner downloaded from http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.11/runtimes/ .  If you are going to do this just note the following:  On linux there is not normally a need to ship xulrunner 1.8.0.1 because linux distros generally already contain an embeddable mozilla-based browser, and version 1.8.0.1 is too old to support JavaXPCOM.  So my only guess is that if this has come from a plug-in you have installed then perhaps they have hacked the xulrunner for some reason.  If you do try overwriting it with a newer version then I would suggest first copying their shipped one somewhere safe.
Comment 6 Grant Gayed CLA 2011-05-20 16:09:12 EDT
Downgrading severity as this is not a typical problem, and it appears that swt may not be at fault.  If this crash still happens for you with a recent 3.7-stream build like http://download.eclipse.org/eclipse/downloads/drops/I20110519-1138/index.php and with a xulrunner from mozilla.org then please follow up here.
Comment 7 Grant Gayed CLA 2013-06-27 12:00:14 EDT
Timed out, closing.  If you see this crash with a supported XULRunner version downloaded from eclipse.org then please reopen, thanks.

Supported XULRunner versions: http://www.eclipse.org/swt/faq.php#browserlinux .