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

Bug 347790

Summary: JVM crashes on shutdown if javascript print executed on browser
Product: [Eclipse Project] Platform Reporter: Damian Wilson <damian_wilson71>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, ericwill, grant_gayed
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Crash log none

Description Damian Wilson CLA 2011-05-31 10:08:28 EDT
SWT: 3.6.2
Linux: Oracle Linux Server, Release 6.0 64 bit.
Kernel Linux 2.6.32-100.28.5.el6.x86_64
GNOME 2.28.2
Firefox: 3.6.9
Java: see below

To recreate:

Take the snippet for "creating browser in single window", URL: http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet128.java?view=co

Modify the ProgressListener.completed method, appending:
browser.evaluate("window.print();");

Run the application. After the browser completes loading you should see the print dialog. Either print to a file or just cancel the dialog. Now close the application.

ERROR: application crashes with a JVM error.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f39c0511410, pid=22899, tid=139888891516688
#
# JRE version: 6.0_17-b17
# Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 )
# Derivative: IcedTea6 1.7.4
# Distribution: Custom build (Fri Nov 19 23:38:02 EST 2010)
# Problematic frame:
# C  0x00007f39c0511410
#
# An error report file with more information is saved as:
# /home/damian/Test/BrowserTest/hs_err_pid22899.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#
Comment 1 Damian Wilson CLA 2011-05-31 10:09:06 EDT
Created attachment 196984 [details]
Crash log
Comment 2 Eric Williams CLA 2016-12-19 14:54:52 EST
I can't reproduce this issue.