Bug 570905

Summary: JVM crashes when Combo widget is disposed when its value changes
Product: [Eclipse Project] Platform Reporter: Paweł Rogaszewski <Pawel.Rogaszewski>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: Stanislaw.Florczyk
Version: 4.19   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Java log crash
none
Example program none

Description Paweł Rogaszewski CLA 2021-02-04 06:56:37 EST
Created attachment 285443 [details]
Java log crash

I encounter a problem in SWT Combo widget. When I change the value in the Drop-down list and at the same time I'm trying to dispose Combo widget and create it again in random cases JVM crashes with the following message in the console:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffbe3d23f68, pid=21100, tid=4188
#
# JRE version: OpenJDK Runtime Environment (14.0.1+7) (build 14.0.1+7)
# Java VM: OpenJDK 64-Bit Server VM (14.0.1+7, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C  [COMCTL32.dll+0x23f68]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\progasze\eclipse-workspaces\workspace-test\test.generic.window\hs_err_pid21100.log
#
# If you would like to submit a bug report, please visit:
#   https://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.
#

I also added the generated log file in the attachment as well as an example simple program that should reproduce this problem.
Comment 1 Paweł Rogaszewski CLA 2021-02-04 06:57:45 EST
Created attachment 285444 [details]
Example program