Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347790 - JVM crashes on shutdown if javascript print executed on browser
Summary: JVM crashes on shutdown if javascript print executed on browser
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 10:08 EDT by Damian Wilson CLA
Modified: 2016-12-19 14:54 EST (History)
3 users (show)

See Also:


Attachments
Crash log (63.63 KB, text/plain)
2011-05-31 10:09 EDT, Damian Wilson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.