JDK-6586668 : regression: JVM crashes when after updating the button cursor only 1.6.0_03_b02
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u3
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2007-07-30
  • Updated: 2011-01-19
  • Resolved: 2007-08-23
Related Reports
Duplicate :  
Description
SQE test MemoryLeakTest.java crash jvm after changing the button cursor. This works fine in 1.6.0_02_05 & 1.6.0_02_06. but fails only in 1.6.0_03_b02. Hence its a regression. I have attached the testcase & the crash log files. The crash happens only on vista flavour.
I tested this on vista ultimate & home premium .  The crash is not so consistent.

Run the attached program. you will see a frame with a single button. The default cursor on the button changes to move cursor & immediately you can see the crash. If you see the same then the bug is reproduced.

Comments
EVALUATION Here's the Java stack trace of the failure: J java.awt.Cursor.finalizeImpl(J)V J java.awt.Cursor$CursorDisposer.dispose()V J sun.java2d.Disposer.run()V Most likely the cause of the crash is the same as the cause of the CR#6507549: AWT native objects are deleted from two different places (refer to CR#6507549 for more information). The submitter tells that this is a regression and the issue isn't reproducible using 1.6.0_02_05 (1.6.0_02_06). Perhaps, this is because of timing changes. I'm going to back-port the fix for the bug CR#6507549 into the 6u3 b03 (I hope it's not too late) or later update release.
15-08-2007

EVALUATION The crash is not reproducible on WinXP. According to the HS log file, it happens on Java2Disposer thread => when some component or native object is destroyed.
31-07-2007