Community
Participate
Working Groups
Build Identifier: M20110210-1200 Eclipse (STS 2.7.1) reliably crashes with a segfault out of org.eclipse.swt.internal.gtk.OS._g_main_context_iteration. The crash occurs on Gentoo Linux 64-bit with glibc 2.12.2 and the Sun/Oracle JDK, either 1.6.0.27 or 1.7.0.14. This appears to be related to a rash of recent SWT segfaults; my uninformed suspicion is that a recent SWT revision introduced a bug setting up a bad pointer, and the dereference is causing crashes in a number of places. Reproducible: Always Steps to Reproduce: 1. Create a new blank workspace. 2. Attach the Equinox (PDE) source code. 3. Create a new plug-in project, selecting the "simple log service" template. 4. Open the OSGi ServiceTracker class from the newly-created activator. 5. Hover the class name "Tracker" on line 99.
I included an incorrect version in the initial report. The problem occurs with build I20110613-1736, platform version 3.7.0.
Created attachment 203397 [details] crash log
Created attachment 203580 [details] Another crash log Log showing that I observe a similar problem. It happens as soon as I want to start an RWT application.
(In reply to comment #3) > Log showing that I observe a similar problem. It happens as soon as I want to > start an RWT application. Interestingly, it does not happen when I use an external browser.
I notice in the comment 2 and comment 3 dumps that they have libraries loaded for both webkitgtk and xulrunner, so presumably webkitgtk is being used for default-style Browsers and xulrunner is being explicitly requested by an app you're using on top of eclipse. The mixing of these browser types has proven to be problematic sometimes, so a means of avoiding it was introduced in the eclipse 3.7.1 stream, see bug 349837. To see if this is indeed the issue, please get the 3.7.1 release at http://download.eclipse.org/eclipse/downloads/drops/M20110909-1335/index.php and add the following to the end of its eclipse.ini file: -Dorg.eclipse.swt.browser.DefaultType=mozilla
I can confirm that Eclipse no longer crashes in the same situation after forcing Eclipse to use Mozilla.
Thanks for following up, marking report as a duplicate of bug 349837. I'm assuming that the original reporter's issue is the same since the crash log shows a similar situation. If this does not prove to be the case then please reopen the report. I'll add documentation to swt's javadoc and FAQ pages to advise that any app that absolutely requires xulrunner must set this value to ensure that the xulrunner/webkit conflict does not occur. *** This bug has been marked as a duplicate of bug 349837 ***
The fix for #349837 appears to work for me.