JDK-8179341 : Crash in msvcr100.dll and msvcr120.dll (JDK 1.8.0_131, 1.8.0_152 and even 9 ea 166)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8,9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_10
  • CPU: x86
  • Submitted: 2017-04-23
  • Updated: 2017-04-26
  • Resolved: 2017-04-26
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
The tests have been performed with 3 different JDK's:
- 1.8.0_131
- 1.8.0_152
- 9 ea 166

FULL OS VERSION :
Microsoft Windows [Version 10.0.15063]
Windows Professional 64 bits

EXTRA RELEVANT SYSTEM CONFIGURATION :
My Windows is freshly installed. In addition to the latest OS (and its updates), I re-installed Office 2016 and a few tools (WinRAR, Chrome, Firefox, VMWare, JDK).

A DESCRIPTION OF THE PROBLEM :
I faced a crash runtime with NetBeans. After googling, I found that post (https://bugs.openjdk.java.net/browse/JDK-8170517) stating the same issue.

The crash is raised when the code "new JFileChooser(s)" is called.

However, I also installed the same version of Windows in a VM as well as JDK 1.8.0_131.
The sample code (see below) works fine.

Any idea?

THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just compile and run the sample code (see below)


EXPECTED VERSUS ACTUAL BEHAVIOR :
The below sample Java code should run without crashing.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
[1] Point break
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005d6e6adf, pid=6112, tid=0x00000000000008e8
#
# JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [msvcr100.dll+0x36adf]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\SRC\hs_err_pid6112.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import javax.swing.*;

public class Test extends JFrame {

	private String s;

	public static void main(String args[]) {
		try{
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch(Exception e){
			e.printStackTrace();
			return;
		}
		String s = null;
		System.out.println("[1] Point break");
		JFileChooser chooser = new JFileChooser(s);
		System.out.println("[2] Point break");
	}
}
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
No workaround found


Comments
Requested submitter for reproducer for this issue == We are not able to reproduce the issue with provided test case on windows 10. Would like to know the steps that you used before encountering the crash. Some more information would help us like, 1. Name of the directory you choose in the JFileChooser. 2. Are you selected any file in JFileChooser if yes what is the name? 3. Is there any other details that you think could help us to debug this issue? ==
26-04-2017

This issue is duplicate of JDK-8179014
26-04-2017

Moving to Clientlibs -> awt, according to the report it crashes even in 9 ea b166 as well
24-04-2017