This site is maintained for archival purposes only. Eclipse projects have transitioned to GitHub and Eclipse GitLab. Use the Projects search tool to locate your project and access its latest code and issue tracker.
Bug 413191 - [jvm][e3.6][linux] browser tests crash when run on Eclipse 3.6
Summary: [jvm][e3.6][linux] browser tests crash when run on Eclipse 3.6
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.11   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard: sprint=7;
Keywords: contributed
Depends on: 416743
Blocks:
  Show dependency tree
 
Reported: 2013-07-17 14:14 EDT by Steffen Pingel CLA
Modified: 2013-10-24 15:57 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2013-07-17 14:14:34 EDT
When we switched targets to Eclipse 3.6 (bug 412743) browser tests started crashing. For now they have been excluded from the AllCommonsTestSuite but we should investigate a fix or dynamic way to exclude them only when running in incompatible environments (the crashes don't happen when running integration tests for instance).

pre.. 
Running org.eclipse.mylyn.commons.tests.AllCommonsTests
System: Linux 2.6.32.59-0.7-xen (amd64) / linux-x86_64-gtk / Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM 1.6.0_21

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f158edab9e0, pid=24634, tid=139731756320512
#
# JRE version: 6.0_21-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b16 mixed mode linux-amd64 )
# Problematic frame:
# C  [libxul.so+0xab59e0]
#
# An error report file with more information is saved as:
# /opt/users/hudsonbuild/workspace/mylyn-commons-nightly/org.eclipse.mylyn.commons.tests/hs_err_pid24634.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.
#
Comment 1 Tomasz Zarna CLA 2013-09-20 05:34:46 EDT
The same happens for Gerrit tests: https://hudson.eclipse.org/sandbox/job/mylyn-reviews-gerrit/971/console and the last 5 builds.
Comment 2 Tomasz Zarna CLA 2013-09-24 07:33:43 EDT
Review disabling the troublesome test in Gerrit: https://git.eclipse.org/r/#/c/16720/
Comment 3 Tomasz Zarna CLA 2013-09-25 09:58:05 EDT
Steffen, I have to admit I'm kinda clueless here. In https://git.eclipse.org/r/#/c/16720/ I tried various ways to cause the same JVM crash, but failed. Any chance for attaching the log file here? Maybe that would shed some light on this issue.

(In reply to Steffen Pingel from comment #0)
> ... the crashes don't happen when running integration tests for instance

What makes them different? Are they not running against Eclipse 3.6?
Comment 4 Steffen Pingel CLA 2013-09-25 12:25:47 EDT
(In reply to comment #3)
> Steffen, I have to admit I'm kinda clueless here. In
> https://git.eclipse.org/r/#/c/16720/ I tried various ways to cause the same JVM
> crash, but failed. Any chance for attaching the log file here? Maybe that would
> shed some light on this issue.

We would have to grab them from the workspace of the build machine. Not sure that would provide anymore information though since the crashes typically happen somewhere in native code.

Have you tried setting "org.eclipse.swt.browser.UseWebKitGTK" to "true"? I don't know if webkit is installed on the test machines but it might be more stable.

> (In reply to Steffen Pingel from comment #0)
> > ... the crashes don't happen when running integration tests for instance
> 
> What makes them different? Are they not running against Eclipse 3.6?

The run against a number of targets: http://ci.mylyn.org/job/mylyn-3.10.x/ More importantly though they run on different infrastructure. I suspect that the xulrunner installed on mylyn.org is more recent (or at least a more compatible version) than what we have on hudson.eclipse.org.
Comment 5 Tomasz Zarna CLA 2013-09-30 08:34:44 EDT
(In reply to comment #4)
> Have you tried setting "org.eclipse.swt.browser.UseWebKitGTK" to "true"? I don't
> know if webkit is installed on the test machines but it might be more stable.

Yes, I tried in one of the patches from https://git.eclipse.org/r/#/c/16720/, it didn't work so I guess WebKitGTK is not available (or properly installed).

This is not my highest priority item at the moment, but definitely #1 on my Mylyn list. I'm going to revisit it later this week and investigate further. In the meantime, if you have any other ideas, please share them here.
Comment 6 Steffen Pingel CLA 2013-10-01 10:19:31 EDT
Tomek, can we exclude the failing test for now (using a check or if that's more trouble, just disabling it like you proposed originally)?
Comment 7 Tomasz Zarna CLA 2013-10-03 09:08:13 EDT
I've been trying to figure out what's wrong with the Hudson Sandbox setup, but none of the sysouts I applied gave me a clue. 

Inspecting a created browser instance:
* webBrowser=Mozilla
* XPCOMInitWasGlued=true
* XPCOMWasGlued=true
* IsPre_1_9=false
* IsPre_1_8=false
* Initialized=true
* XULRunnerPath=/usr/lib64/xulrunner-1.9.0.19
* XULRunnerInitialized=true

The 1.9.0 is supposed to work just fine -- http://www.eclipse.org/swt/faq.php#browserplatforms

So in https://git.eclipse.org/r/16989 I added a dummy check that disables the test on Linux running Java 1.6 or lower (integration tests run on IBM JVM 1.7). Leaving this bug open to improve the check in the future.
Comment 8 Steffen Pingel CLA 2013-10-03 11:00:13 EDT
It might just be the sandbox:

https://hudson.eclipse.org/sandbox/job/mylyn-context-gerrit/144/console

Running org.eclipse.mylyn.cdt.tests.AllCdtTests
[2013-10-03T10-56-30] Status ERROR: org.eclipse.mylyn.tasks.core code=0 Failed to find unmatched container for repository "http://mylyn.org" null, 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f825104dcf1, pid=9747, tid=140198734083856
#
# JRE version: 6.0_21-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b16 mixed mode linux-amd64 )
# Problematic frame:
# C  [libpangoft2-1.0.so.0+0x18cf1]
#
# An error report file with more information is saved as:
# /opt/users/hudsonbuild/.hudson/jobs/mylyn-context-gerrit/workspace/org.eclipse.mylyn.cdt.tests/hs_err_pid9747.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.
#


How about we move trigger jobs to the new HIPP instance (bug 416743).
Comment 9 Tomasz Zarna CLA 2013-10-03 11:33:42 EDT
(In reply to Steffen Pingel from comment #8)
> How about we move trigger jobs to the new HIPP instance (bug 416743).

That gives some hope, I will try to look at it next week. Unless you have plan to work on it, hm?
Comment 10 Steffen Pingel CLA 2013-10-03 17:07:29 EDT
I'll setup one job and you can do the other ones :).
Comment 11 Steffen Pingel CLA 2013-10-03 18:39:58 EDT
This doesn't appear to happen on the HIPP instance: https://hudson.eclipse.org/mylyn/job/gerrit-mylyn-reviews/1/
Comment 13 Steffen Pingel CLA 2013-10-07 15:59:23 EDT
The test was re-enabled and the crashes are no longer happening on the HIPP instance. If this comes up again we can reopen. Thanks for investigating this, Tomek!
Comment 14 Tomasz Zarna CLA 2013-10-18 07:59:16 EDT
I'm afraid it's back, see last builds on mylyn-reviews-nightly e.g. https://hudson.eclipse.org/hudson/job/mylyn-reviews-nightly/2570/
Comment 15 Steffen Pingel CLA 2013-10-18 08:19:53 EDT
Args. Let's add a system property for skipping browser tests. We can set that through the pom in the build.
Comment 16 Tomasz Zarna CLA 2013-10-18 12:08:58 EDT
(In reply to comment #15)
> Args. Let's add a system property for skipping browser tests.

https://git.eclipse.org/r/#/c/17531/

> We can set that through the pom in the build.

Through the pom or in the failing build configuration?
Comment 17 Tomasz Zarna CLA 2013-10-18 12:46:59 EDT
https://hudson.eclipse.org/hudson/job/mylyn-reviews-nightly/2572/ is blue again
Comment 18 Steffen Pingel CLA 2013-10-18 17:26:34 EDT
(In reply to comment #16)
> Through the pom or in the failing build configuration?

Both :). We would have to set a property in the Maven build and make sure it is passed along to the test execution.
Comment 19 Steffen Pingel CLA 2013-10-21 11:43:32 EDT
Just a note that we should add the system property to http://wiki.eclipse.org/Mylyn/FAQ#System_Properties once the change is merged.
Comment 20 Tomasz Zarna CLA 2013-10-22 13:44:55 EDT
Pushed a patch for Mylyn Commons: https://git.eclipse.org/r/#/c/17658/

The browser tests can be disabled by adding a user VM arg, eg. @mvn clean install -Dtest.uservmargs=-Dmylyn.test.skipBrowserTests=true@

It's not perfect, but I wanted to avoid adding yet another test.*.skip property to the parent pom.xml

https://git.eclipse.org/r/#/c/17531/ in Mylyn Reviews now depends on the change in Commons.
Comment 21 Tomasz Zarna CLA 2013-10-23 06:13:36 EDT
(In reply to comment #19)
> Just a note that we should add the system property to
> http://wiki.eclipse.org/Mylyn/FAQ#System_Properties once the change is merged.

Done.
Comment 22 Tomasz Zarna CLA 2013-10-23 10:15:02 EDT
(In reply to comment #20)
> The browser tests can be disabled by adding a user VM arg, eg. @mvn clean
> install -Dtest.uservmargs=-Dmylyn.test.skipBrowserTests=true@

Did that for both mylyn-commons-nightly and mylyn-reviews-nightly.
Comment 23 Steffen Pingel CLA 2013-10-23 11:44:33 EDT
Thanks very much! Feel free to resolve if the builds are working now.
Comment 24 Tomasz Zarna CLA 2013-10-24 06:04:05 EDT
Will do, but Hudson @ eclipse.org seems to be super slow today, so I'm not able to verify if that actually helped at the moment. I will check it out later.
Comment 25 Tomasz Zarna CLA 2013-10-24 06:07:32 EDT
(In reply to comment #24)
> Hudson @ eclipse.org seems to be super slow today

http://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg09993.html
Comment 26 Tomasz Zarna CLA 2013-10-24 15:57:17 EDT
The troublesome tests were skipped on:
* https://hudson.eclipse.org/hudson/job/mylyn-commons-nightly/295/consoleFull
* https://hudson.eclipse.org/hudson/job/mylyn-reviews-nightly/2583/consoleFull

The former failed from a different reason.