JDK-6464341 : SwingSet2 demo crashes with ACCESS_VIOLATION in [ntdll.dll+0x1c97b] on windows-amd64
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version:
    1.4.2,1.4.2_03,1.4.2_06,5.0,5.0u10,6 1.4.2,1.4.2_03,1.4.2_06,5.0,5.0u10,6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS:
    generic,linux,windows_2003,windows_xp generic,linux,windows_2003,windows_xp
  • CPU: generic,x86
  • Submitted: 2006-08-26
  • Updated: 2011-04-27
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6 JDK 7
1.4.2_33Fixed 6u10Resolved 7 b17Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Product: 6.0 Java RE B96 (1.6.0-rc-b96 mixed mode)
Platform: windows-amd64 (I could not repro the problem on win-i386 platform)

It is pretty hard to reproduce, happened 4 times out of 10-15 tries...
a) On a windows-amd64 platform, start SwingSet2 demo:
  $ cd M:/NightlyBuilds/re/6.0/promoted/rc/b96/binaries/windows-amd64
	## which is /java/re/jdk/6.0/promoted/rc/b96/binaries/windows-amd64
  $ bin/java -jar demo/jfc/SwingSet2/SwingSet2.jar

b) As soon as the window appears (this is important), switch to Windows L&F
(click on "Look & Feel" menu, choose "Windows Look & Feel").
c) As fast as possible, click on the 3rd tab (JColorChooser Demo).
d) Exit the demo if it did not crash.. And repeat until it crashes.

Error message:
# An unexpected error has been detected by Java Runtime Environment:
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000078edc97b, pid=2908, tid=1148
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0-rc-b96 mixed mode)
# Problematic frame:
# C  [ntdll.dll+0x1c97b]
# An error report file with more information is saved as C:\DOCUME~1\ADMINI~1.JCG\LOCALS~1\Temp\hs_err_pid2908.log

See Comments section for more info.
See the "hs_err_pidxxx.log" files attached.

EVALUATION I've reproduced the problem and verified the suggested fix. Looks like it solves the problem, so I'm going to integrate it.

SUGGESTED FIX src/share/native/sun/dc/pr/dcLLFillerS.c 917c917 < p->xyjBuffer = doeMem_malloc(env, (i32)sizeof(i8)*xyjL); --- > p->xyjBuffer = doeMem_malloc(env, (i32)sizeof(i8)*xyjBufferSize);

EVALUATION This is a java2d issue in the dcpr code. See comments for more detail.