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

Bug 530598

Summary: [Cocoa] VM Crash when closing parent Web Browser window
Product: [Eclipse Project] Platform Reporter: Andreas Sewe <sewe>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P2 CC: lshanmug
Version: 4.8Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Crash Report that would have been sent to Apple
none
Screenshot illustrating the situation none

Description Andreas Sewe CLA 2018-02-01 04:37:49 EST
Created attachment 272490 [details]
Crash Report that would have been sent to Apple

Hi,

I've found a reliable way to crash the Eclipse process under macOS (10.10.5).

To reproduce:

- Using I20180124-2000, install the "Code Recommenders News Feed" from [1] and restart.

- Under General > News, add the Planet Eclipse news feed with URL <http://planeteclipse.org/planet/rss20.xml>.

- Poll the feed by clicking "Poll Now" in the RSS status bar item's menu.

- Open the post titled "Chris Aniszczyk: Winding Down an Open Source Project". This opens in a browser in the editor area.

- Click on the "@todogroup" link. This opens a window titled "Web Browser".

- Click on the "todogroup.org" link in the Twitter sidebar. This opens another window titled "Web Browser". (Note that I had to click "Continue first on a certificate warning for the "https://todogroup.org/" site.)

- Close the parent "Web Browser" window.

This crashes the Eclipse process with the following message:

eclipse(1351,0x7fff75f93300) malloc: *** error for object 0x7fdedfeccf90: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

I've attached the crash report that normally would have been sent to Apple, figuring that this is more likely an Eclipse / SWT / Browser integration issue.

[1] <http://download.eclipse.org/recommenders/updates/stable/>
Comment 1 Andreas Sewe CLA 2018-02-01 04:43:46 EST
Created attachment 272491 [details]
Screenshot illustrating the situation

I've attached the screenshot to illustrate the relationship between the different browser windows. Hope that helps.
Comment 2 Andreas Sewe CLA 2018-02-02 10:47:03 EST
(In reply to Andreas Sewe from comment #1)
> Created attachment 272491 [details]
> Screenshot illustrating the situation
> 
> I've attached the screenshot to illustrate the relationship between the
> different browser windows. Hope that helps.

FWIW, just verified this with the Photon M5 Java EPP package. Still crashes.
Comment 3 Lakshmi P Shanmugam CLA 2018-02-06 01:28:14 EST
I'm unable to reproduce this with the steps in comment#0. I'm on Mac 10.12.
Can you try this on Mac 10.12 or 10.13 and see if the problem is still reproducible?
Comment 4 Lakshmi P Shanmugam CLA 2018-11-22 07:39:16 EST
(In reply to Lakshmi Shanmugam from comment #3)
> I'm unable to reproduce this with the steps in comment#0. I'm on Mac 10.12.
> Can you try this on Mac 10.12 or 10.13 and see if the problem is still
> reproducible?

Closing as there was no response. Please reopen if problem is still reproducible on 10.13 or 10.14.