Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325288 - [Browser-Mozilla] Browser.setText(s) crashes the JVM for some contents
Summary: [Browser-Mozilla] Browser.setText(s) crashes the JVM for some contents
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC All
: P3 critical with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 15:54 EDT by Christopher Deckers CLA
Modified: 2017-07-04 13:33 EDT (History)
2 users (show)

See Also:


Attachments
Test case showing the crash (31.50 KB, application/force-download)
2010-09-14 15:55 EDT, Christopher Deckers CLA
no flags Details
VM crash log (10.97 KB, application/octet-stream)
2010-09-14 17:39 EDT, Christopher Deckers CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Deckers CLA 2010-09-14 15:54:03 EDT
Build Identifier: SWT 3.6

Certain HTML (generally quite long) crash the JVM when loaded in an embedded XULRunner (Mozilla style).
I tested on Windows (1.9.0.3) and Linux (1.9.2.8), where IE and Webkit can load the content but XULRunner crashes.
See attached test case.

Reproducible: Always

Steps to Reproduce:
1. String s = some_specific_html;
2. Browser.setText(s)
Comment 1 Christopher Deckers CLA 2010-09-14 15:55:24 EDT
Created attachment 178871 [details]
Test case showing the crash
Comment 2 Christopher Deckers CLA 2010-09-14 15:58:13 EDT
In the test case, set IS_MOZILLA to true to get the crash.
Comment 3 Grant Gayed CLA 2010-09-14 17:10:52 EDT
I don't see a crash with this snippet, tried on Windows and Linux with a few different versions.  Can you think of any other factors that could be relevant?  Do you get a crash log?
Comment 4 Christopher Deckers CLA 2010-09-14 17:39:28 EDT
Created attachment 178885 [details]
VM crash log

Hi Grant,

Did you change IS_MOZILLA to true?

I do have a crash log on Windows, which I attach. The error on Linux is different (Segmentation fault if I remember correctly, I don't know where the crash log ends up on that box...)

Let me know if there is anything I can do to help.
Comment 5 Christopher Deckers CLA 2010-09-14 18:02:12 EDT
I tried again on Windows with SWT 3707 (I20100914) with same results.

On Linux, I confirm that with 3.6 I get a "Segmentation fault" in the console, with no sign of a crash log.
Comment 6 Peter Severin CLA 2011-07-22 02:48:34 EDT
Not sure if this is the same issue. 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.
Comment 7 Alexander Kurtakov CLA 2017-07-04 13:33:25 EDT
Mozilla is removed for 4.8.