Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 221302 - [browser] Eclipse crashes everytime the internal browser component is activated
Summary: [browser] Eclipse crashes everytime the internal browser component is activated
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-04 07:44 EST by Björn Streicher CLA
Modified: 2008-03-06 12:56 EST (History)
2 users (show)

See Also:


Attachments
hs_err log of eclipse crash (15.14 KB, text/x-log)
2008-03-04 07:44 EST, Björn Streicher CLA
no flags Details
strace of eclipse crash (24.44 KB, text/x-log)
2008-03-04 07:45 EST, Björn Streicher CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Streicher CLA 2008-03-04 07:44:25 EST
Created attachment 91503 [details]
hs_err log of eclipse crash

Build ID: I20080207-1530

Steps To Reproduce:
1. Download eclipse-SDK-3.4M5-linux-gtk.tar.gz
2. Launch Eclipse
3. Select Window > Show view > Other... > General >
Internal Web Browser and click OK
4. Eclipse crashes with issuing nothing but "Aborted (core dumped)"

regarding Step 3 - this is only needed when the welcome page is not shown anymore. When using eclipse for the first time and the welcome page is shown, it crashes, too.


More information:
I first filed this comment here in bug 220246 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=220246#c22).

I'm running Kubuntu 7.10, KDE4, Kernel 2.6.24-5-generic, xulrunner 1.8.1.4_0000000000

Running Eclipse with the debug switch did not issue anything more but "Aborted (core dumped)"

Running eclipse with the following command:
java -verbose -classpath $cp:$eclipsehome/plugins/*.jar
org.eclipse.equinox.launcher.Main -launcher.ini configuration/config.ini -debug
.eclipseoptions vmargs -os linux -ws gtk -arch x86 -Xms15m -Xmx256m

shows the following class being loaded last:

Loaded org.eclipse.swt.internal.mozilla.nsIWebNavigation from
file:/home/xyz/files/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.4.0.v3428.jar]

I figured out that this might be a permissions issue - running eclipse with sudo prevents eclipse from crashing and uses the browser component correctly.

Stracing RSSOwl (which uses eclipse as foundation) showed the following:

stat64("/usr/lib/xulrunner/res/langGroups.properties", {st_mode=S_IFREG|0644, st_size=5619, ...}) = 0
open("/usr/lib/xulrunner/res/langGroups.properties", O_RDONLY|O_LARGEFILE) = 92
lseek(92, 0, SEEK_CUR)                  = 0
lseek(92, 0, SEEK_END)                  = 5619
lseek(92, 0, SEEK_SET)                  = 0
read(92, "#\n# ***** BEGIN LICENSE BLOCK **"..., 8192) = 5619
read(92, "", 8192)                      = 0
close(92)                               = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(9538, 9538, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT (core dumped) +++

I will upload the hs_err I got retrieved by using jstack (no log file is created when the error appears, just a "core" file is written). I will also upload an strace of running eclipse with crashing it (looks a little bit different from the RSSOwl one).

Any ideas? Thanks!

This bug could be related to the following bugs:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=219700
https://bugs.eclipse.org/bugs/show_bug.cgi?id=220403
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214655
https://bugs.eclipse.org/bugs/show_bug.cgi?id=215857
Comment 1 Björn Streicher CLA 2008-03-04 07:45:15 EST
Created attachment 91504 [details]
strace of eclipse crash
Comment 2 Diarmuid Bourke CLA 2008-03-05 05:04:46 EST
*** Bug 218200 has been marked as a duplicate of this bug. ***
Comment 3 Grant Gayed CLA 2008-03-05 09:55:45 EST
> ...running eclipse with
> sudo prevents eclipse from crashing and uses the browser component correctly.

This was a characteristic of bug 209428 as well.  Do you always see the crash as soon as a browser is shown (eg.- javadoc view, welcome page, etc.), or does it actually happen when you move the mouse pointer into the browser?
Comment 4 Björn Streicher CLA 2008-03-06 06:26:05 EST
With the welcome page and the javadoc page the crash happens when I move the mouse pointer into the browser window. When using Select Window > Show view > Other... > General > Internal Web Browser and click OK the crash happens right away.

I will try the latest nightly as you described in bug 209428 that there might be a patch for the bug as soon as it becomes available.
	

Comment 5 Björn Streicher CLA 2008-03-06 12:48:10 EST
Very nice - I downloaded eclipse-RCP-N20080306-0100-linux-gtk.tar.gz and put  org.eclipse.swt.gtk.linux.x86_3.4.0.N20080306-0100.jar in my eclipse plugin directory and the problem seems to be fixed. No crash anymore with none of the problematic actions. Good work!
Comment 6 Grant Gayed CLA 2008-03-06 12:56:59 EST
Great, I suspect/hope some other reports will become fixed as a side effect of this as well.  Fixed > 0305.