Bug 244027 - [Browser] Eclipse Crashes the JVM When Opening Internal Browser (libgtklayout.so)
Summary: [Browser] Eclipse Crashes the JVM When Opening Internal Browser (libgtklayout...
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2008-08-13 10:58 EDT by Sam CLA
Modified: 2009-05-08 16:55 EDT (History)
3 users (show)

See Also:


Attachments
Error log for the crash (82.33 KB, text/x-log)
2008-08-13 10:58 EDT, Sam CLA
no flags Details
Output from eclipse -consoleLog (42.49 KB, application/octet-stream)
2008-08-26 13:01 EDT, Sam CLA
no flags Details
log file generated by eclipse (52.71 KB, application/octet-stream)
2008-08-26 13:01 EDT, Sam CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam CLA 2008-08-13 10:58:33 EDT
Created attachment 109896 [details]
Error log for the crash

Build ID: I20080617-2000

Steps To Reproduce:
1. Create new dynamic web project, target GlassFish
2. Create index.jsp
3. Run as > Run on server (GlassFish)
4. Eclipse crashes Java HotSpot VM completely


More information:
I'm using Eclipse 3.4 on Ubuntu 7.04 32bit linux. Everything has been working fine for a while, until my project started crashing whenever I'd run it on my GlassFish server (running locally).

The specific SIGSEGV I get using -consoleLog is:
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x8212fc08, pid=7790, tid=3085211312
#
# Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode linux-x86)
# Problematic frame:
# C  [libgklayout.so+0x122c08]
#
# An error report file with more information is saved as:
# /home/sam/hs_err_pidxxxx.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.
#

The fault is always with this module, and I have used 3 different JDKs to make the same problem pop up (1.6_03, _07, and the newest release candidate).

I tried using different fixes outlined in the other bug threads without, but this seems fundamentally different to me as it's happening "Outside the JVM in native code).

Eclipse would also crash for me before this bug popped up immediately following startup, with a SIGSEGV in the same libgtklayout frame, but that stopped once I reinstalled Eclipse and specified my JDK location properly.
Comment 1 Sam CLA 2008-08-13 11:27:26 EDT
(In reply to comment #0)
> Created an attachment (id=109896) [details]
> Error log for the crash
> 
> Build ID: I20080617-2000
> 
> Steps To Reproduce:
> 1. Create new dynamic web project, target GlassFish
> 2. Create index.jsp
> 3. Run as > Run on server (GlassFish)
> 4. Eclipse crashes Java HotSpot VM completely
> 
> 
> More information:
> I'm using Eclipse 3.4 on Ubuntu 7.04 32bit linux. Everything has been working
> fine for a while, until my project started crashing whenever I'd run it on my
> GlassFish server (running locally).
> 
> The specific SIGSEGV I get using -consoleLog is:
> #
> # An unexpected error has been detected by Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x8212fc08, pid=7790, tid=3085211312
> #
> # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode linux-x86)
> # Problematic frame:
> # C  [libgklayout.so+0x122c08]
> #
> # An error report file with more information is saved as:
> # /home/sam/hs_err_pidxxxx.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.
> #
> 
> The fault is always with this module, and I have used 3 different JDKs to make
> the same problem pop up (1.6_03, _07, and the newest release candidate).
> 
> I tried using different fixes outlined in the other bug threads without, but
> this seems fundamentally different to me as it's happening "Outside the JVM in
> native code).
> 
> Eclipse would also crash for me before this bug popped up immediately following
> startup, with a SIGSEGV in the same libgtklayout frame, but that stopped once I
> reinstalled Eclipse and specified my JDK location properly.
> 

Interestingly, I also get the occasional crash when just editing a file, but it's the same module in the SIGSEGV: libgklayout.so+0x122c08, so perhaps it is a problem with that code?

It also deploys to the GlassFish server fine, crashing after that process is completed, so it's probably a GUI issue of some sort.
Comment 2 Sam CLA 2008-08-13 11:53:12 EDT
(In reply to comment #1)
> (In reply to comment #0)
> > Created an attachment (id=109896) [details] [details]
> > Error log for the crash
> > 
> > Build ID: I20080617-2000
> > 
> > Steps To Reproduce:
> > 1. Create new dynamic web project, target GlassFish
> > 2. Create index.jsp
> > 3. Run as > Run on server (GlassFish)
> > 4. Eclipse crashes Java HotSpot VM completely
> > 
> > 
> > More information:
> > I'm using Eclipse 3.4 on Ubuntu 7.04 32bit linux. Everything has been working
> > fine for a while, until my project started crashing whenever I'd run it on my
> > GlassFish server (running locally).
> > 
> > The specific SIGSEGV I get using -consoleLog is:
> > #
> > # An unexpected error has been detected by Java Runtime Environment:
> > #
> > #  SIGSEGV (0xb) at pc=0x8212fc08, pid=7790, tid=3085211312
> > #
> > # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode linux-x86)
> > # Problematic frame:
> > # C  [libgklayout.so+0x122c08]
> > #
> > # An error report file with more information is saved as:
> > # /home/sam/hs_err_pidxxxx.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.
> > #
> > 
> > The fault is always with this module, and I have used 3 different JDKs to make
> > the same problem pop up (1.6_03, _07, and the newest release candidate).
> > 
> > I tried using different fixes outlined in the other bug threads without, but
> > this seems fundamentally different to me as it's happening "Outside the JVM in
> > native code).
> > 
> > Eclipse would also crash for me before this bug popped up immediately following
> > startup, with a SIGSEGV in the same libgtklayout frame, but that stopped once I
> > reinstalled Eclipse and specified my JDK location properly.
> > 
> 
> Interestingly, I also get the occasional crash when just editing a file, but
> it's the same module in the SIGSEGV: libgklayout.so+0x122c08, so perhaps it is
> a problem with that code?
> 
> It also deploys to the GlassFish server fine, crashing after that process is
> completed, so it's probably a GUI issue of some sort.
> 

Alright, more thorough investigation reveals that the problem only occurs when
using the internal eclipse browser to view the program display.

I've downgraded the priority, but the bug reliably happens when publishing a
dynamic web project, using the internal web browser to view it, so it's
probably still a good idea to look into it. In my case, other, less
reproducible crashes result in the same SIGSEGV, so I'm not exactly sure what
the heck is going on.
Comment 3 Steve Northover CLA 2008-08-13 18:50:52 EDT
> using the internal web browser to view it

Can you please get Eclipse 3.5 M1 and see whether the problem has gone away?  We've fixed some crashes in that release and our browser guy isn't around at the moment.
Comment 4 Sam CLA 2008-08-14 13:01:35 EDT
(In reply to comment #3)
> > using the internal web browser to view it
> 
> Can you please get Eclipse 3.5 M1 and see whether the problem has gone away? 
> We've fixed some crashes in that release and our browser guy isn't around at
> the moment.
> 

I'll do that when I get back to work next week.

I don't think it's an issue only with the internal browser though - Eclipse crashes the JVM sometimes when editing code, with the same libgtklayout.so frame error.
Comment 5 Sam CLA 2008-08-25 12:41:49 EDT
(In reply to comment #0)
> Created an attachment (id=109896) [details]
> Error log for the crash
> 
> Build ID: I20080617-2000
> 
> Steps To Reproduce:
> 1. Create new dynamic web project, target GlassFish
> 2. Create index.jsp
> 3. Run as > Run on server (GlassFish)
> 4. Eclipse crashes Java HotSpot VM completely
> 
> 
> More information:
> I'm using Eclipse 3.4 on Ubuntu 7.04 32bit linux. Everything has been working
> fine for a while, until my project started crashing whenever I'd run it on my
> GlassFish server (running locally).
> 
> The specific SIGSEGV I get using -consoleLog is:
> #
> # An unexpected error has been detected by Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x8212fc08, pid=7790, tid=3085211312
> #
> # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode linux-x86)
> # Problematic frame:
> # C  [libgklayout.so+0x122c08]
> #
> # An error report file with more information is saved as:
> # /home/sam/hs_err_pidxxxx.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.
> #
> 
> The fault is always with this module, and I have used 3 different JDKs to make
> the same problem pop up (1.6_03, _07, and the newest release candidate).
> 
> I tried using different fixes outlined in the other bug threads without, but
> this seems fundamentally different to me as it's happening "Outside the JVM in
> native code).
> 
> Eclipse would also crash for me before this bug popped up immediately following
> startup, with a SIGSEGV in the same libgtklayout frame, but that stopped once I
> reinstalled Eclipse and specified my JDK location properly.
> 

Alright, what 3.5 M1 package would be best for testing a Java EE project? I downloaded the Eclipse SDK and it didn't seem to have the features I needed to test my project (JSP code editor, server interfaces, etc).

Thanks
Comment 6 Grant Gayed CLA 2008-08-25 13:46:21 EDT
Can you try copying the two swt jars from the 3.5M1 plugins directory into your 3.4's plugins directory (and don't forget to remove the swt 3.4 jars)?  I think this will work, unless some plug-ins have their swt dependencies == v3.4 instead of >= v3.4.
Comment 7 Sam CLA 2008-08-25 15:08:42 EDT
(In reply to comment #6)
> Can you try copying the two swt jars from the 3.5M1 plugins directory into your
> 3.4's plugins directory (and don't forget to remove the swt 3.4 jars)?  I think
> this will work, unless some plug-ins have their swt dependencies == v3.4
> instead of >= v3.4.
> 

Eclipse will not start up after replacing the two swt jars.

Would you like me to post the error message, or is there another way to go about this?
Comment 8 Steve Northover CLA 2008-08-26 10:18:30 EDT
Please do.
Comment 9 Sam CLA 2008-08-26 13:01:22 EDT
Created attachment 110970 [details]
Output from eclipse -consoleLog
Comment 10 Sam CLA 2008-08-26 13:01:42 EDT
Created attachment 110971 [details]
log file generated by eclipse
Comment 11 Sam CLA 2008-08-26 13:02:14 EDT
(In reply to comment #8)
> Please do.
> 

Alright, I've attached the relevant log files. consoleLog is the output from eclipse -consoleLog, and the other file is the log file generated from eclipse.

Thanks.
Comment 12 Steve Northover CLA 2008-08-29 15:40:11 EDT
Grant, any ideas?
Comment 13 Grant Gayed CLA 2008-08-29 16:06:22 EDT
The following should work:

- take your original 3.4-based product (so with swt's 3.4-shipped jars)
- launch it with line:
     ./eclipse -vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=/dev/null
- retrieve SWT from HEAD into your workspace: http://www.eclipse.org/swt/cvs.php
- as a bonus, insert as the first line of method Mozilla.create(Composite,int):
     org.eclipse.swt.graphics.Device.DEBUG = true;
- invoke Run > Run Configurations...
- create a new "Eclipse Application" run configuration, press the Run button
- this will bring up a 3.4-based eclipse instance with the SWT from your workspace, so try your case(s) in this instance
- if it still fails then please follow up here with the mozilla/xulrunner path that's written to stdout when the first Browser instance is created
Comment 14 Grant Gayed CLA 2009-05-08 16:55:54 EDT
Timed out, closing report.  Please reopen if you still see this problem when self-hosting as described in comment 13.