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

Bug 465508

Summary: [GTK] XULRunner support crashes all UI tests on eclipse.org (xulrunner-1.9.0.19)
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: SWTAssignee: Lakshmi P Shanmugam <lshanmug>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: arunkumar.thondapu, daniel_megert, lshanmug, sravankumarl
Version: 4.5   
Target Milestone: 4.5 M7   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 437700    

Description Markus Keller CLA 2015-04-26 15:51:07 EDT
Since N20150424-2000, all UI tests crash on eclipse.org. Even the SWT AllBrowserTests crashes, although that's easy to miss on the download page (there's an open releng bug for that).

Here's the crash log:
http://download.eclipse.org/eclipse/downloads/drops4/N20150424-2000/testresults/linux.gtk.x86_64_8.0/crashlogs/org.eclipse.swt.tests.junit.AllBrowserTests.hs_err_pid24008.log

Excerpts:
[..]
Current thread (0x000000000060b800):  JavaThread "main" [_thread_in_native, id=24013, stack(0x00007f39d4025000,0x00007f39d4126000)]
[..]
RAX=0x00007f39aba9de60: <offset 0x12c7e60> in /usr/lib64/xulrunner-1.9.0.19/libxul.so at 0x00007f39aa7d6000
[..]
R11=0x00007f39d3586c08: <offset 0xf9dc08> in /opt/public/common/jdk1.8.0_40.x64/jre/lib/amd64/server/libjvm.so at 0x00007f39d25e9000
[..]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.mozilla.XPCOM._VtblCall(IJLorg/eclipse/swt/internal/mozilla/nsID;JLorg/eclipse/swt/internal/mozilla/nsID;[J)I+0
j  org.eclipse.swt.internal.mozilla.XPCOM.VtblCall(IJLorg/eclipse/swt/internal/mozilla/nsID;JLorg/eclipse/swt/internal/mozilla/nsID;[J)I+16
j  org.eclipse.swt.internal.mozilla.nsIComponentManager.CreateInstance(Lorg/eclipse/swt/internal/mozilla/nsID;JLorg/eclipse/swt/internal/mozilla/nsID;[J)I+16
j  org.eclipse.swt.browser.Mozilla.initSpinup(Lorg/eclipse/swt/internal/mozilla/nsIComponentManager;)V+23
j  org.eclipse.swt.browser.Mozilla.create(Lorg/eclipse/swt/widgets/Composite;I)V+402
j  org.eclipse.swt.browser.Browser.<init>(Lorg/eclipse/swt/widgets/Composite;I)V+81
j  org.eclipse.swt.tests.junit.browser.Test_BrowserSuite.isProblematicGtkXulRunner()Z+31
j  org.eclipse.swt.tests.junit.browser.Test_BrowserSuite.<clinit>()V+0
[..]

Looks like fallout from the recent changes that were committed for XULRunner 31 support (no bug # in commit comment).
Comment 1 Lakshmi P Shanmugam CLA 2015-04-27 05:47:49 EDT
There seems to be a problem when running with older xulrunner version. I'm trying to get a setup with xulrunner 1.9 64 bit. I'm currently investigating this issue.
Comment 2 Lakshmi P Shanmugam CLA 2015-04-27 08:00:01 EDT
Pushed commit to master > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=e725f6ff575d415092427efa03970ec95b0e4b27

I still don't have a linux setup with 1.9 to verify the commit. But, I've verified the changes on windows with XULRunner versions 1.9 and 10.
Comment 3 Markus Keller CLA 2015-04-27 16:19:43 EDT
Thanks, Lakshmi.

Crashes are gone when I launch Test_BrowserSuite on Ubuntu 12.04/32-bit with:

-Dorg.eclipse.swt.browser.DefaultType=mozilla
-Dorg.eclipse.swt.browser.XULRunnerPath=~/bin/xulrunner/xulrunner-1.9.0.17

testBrowser9 fails, but I don't remember if that one ever passed in this setup.
Comment 4 Markus Keller CLA 2015-04-27 16:20:10 EDT
.