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

Bug 352819

Summary: Segmentation fault while using MPC with embedded browser
Product: [Technology] MPC Reporter: Peter Severin <peter>
Component: InstallAssignee: Project Inbox <mpc.install-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: grant_gayed, m.hariri
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Peter Severin CLA 2011-07-22 02:51:59 EDT
Build Identifier: 20110615-0604

I get a segmentation fault while using MPC with embedded browser. Here's the console output:

No bp log location saved, using default.
[000:001] Browser XEmbed support present: 1
[000:001] Browser toolkit is Gtk2.
[000:001] Using Gtk2 toolkit
[000:005] Warning(optionsfile.cc:22): Load: Could not open file
[000:005] No bp log location saved, using default.
[000:006] Browser XEmbed support present: 1
[000:006] Browser toolkit is Gtk2.
[000:006] Using Gtk2 toolkit
Segmentation fault

Happens with latest Eclipse Indigo. It happens for me every time. Here are the staps:

1. Launch Eclipse Marketplace
2. Choose the link "Browser for more solutions".
3. In embedded browser choose Subclipse plug-in on the left and then click "Install".
4. The MPC dialog pop's up and then Eclipse crashes

I am on Ubuntu 10.04 using the latest Eclipse for RPC Indigo fresh install.

I also posted this to Bug 325288 which might be the same issue but I am not sure.

Reproducible: Always
Comment 1 Benjamin Muskalla CLA 2011-07-22 07:34:42 EDT
MPC just uses the browser support provided by the Platform/SWT. Seems to be a known issue but cannot be resolved at Eclipse.
If you have more input, I think it would be good to post your thoughts on bug 334466.

Marking this as duplicate.

*** This bug has been marked as a duplicate of bug 334466 ***
Comment 2 Grant Gayed CLA 2011-07-25 10:12:06 EDT
Peter can you attach the dump file that's created when the segfault happens?  It's likely a different issue than the bug that this report is marked as a duplicate of.
Comment 3 Peter Severin CLA 2011-07-25 10:16:34 EDT
Grant, I think there is no dump file. I just get "Segmentation fault" message and no "core dumped". If you can tell me where to look I'll get it for you.
Comment 4 Grant Gayed CLA 2011-07-25 10:35:20 EDT
Sun/Oracle JRE creates file "hs_*", and IBM JRE creates file "javacore.*".  In
both cases '*' represents a long string of numbers.  I think these are written
to the java launch directory, so if you're running eclipse at the command line
then this would be the directory containing the eclipse executable.  Segfaults usually (though not always) result in these dump files being written.
Comment 5 Peter Severin CLA 2011-07-25 10:58:20 EDT
Grant, I had to play with ulimit to obtain the core dump. It's a file named core. The same that you get for native apps. It's 40M compressed. If you think it can help you I'll send you a link for download.
Comment 6 Grant Gayed CLA 2011-07-25 11:08:13 EDT
That sounds like a binary dump of everything.  I think there should be an accompanying text file (hs_* or javacore.*) in the same directory that's much smaller and can be attached here.
Comment 7 Peter Severin CLA 2011-07-25 11:18:30 EDT
There is nothing else in the current directory... I am making these tests with a fresh version of Eclipse Indigo and Sun's Java 1.6.0_26.
Comment 8 mohsen CLA 2011-08-26 11:56:35 EDT
Happening here too, actually I first saw this segmentation fault when clicking "preview" on any BIRT report, and then I came by this ticket and checked the steps and it happened for me too. The log when previewing a BIRT report:



** (Eclipse:2028): DEBUG: NP_Initialize
** (Eclipse:2028): DEBUG: NP_Initialize succeeded
No bp log location saved, using default.
[000:001] Browser XEmbed support present: 1
[000:001] Browser toolkit is Gtk2.
[000:001] Using Gtk2 toolkit
** (Eclipse:2028): DEBUG: NP_Initialize
** (Eclipse:2028): DEBUG: NP_Initialize succeeded
** (Eclipse:2028): DEBUG: NP_Initialize
** (Eclipse:2028): DEBUG: NP_Initialize succeeded
[000:030] Warning(optionsfile.cc:23): Load: Could not open file, err=2
[000:031] No bp log location saved, using default.
[000:031] Browser XEmbed support present: 1
[000:031] Browser toolkit is Gtk2.
[000:031] Using Gtk2 toolkit
** (Eclipse:2028): DEBUG: NP_Initialize
** (Eclipse:2028): DEBUG: NP_Initialize succeeded
Segmentation fault