-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
6.0a
-
x86
-
windows_xp
Test Challenger Name and Company:
Vitaly Mikheev, Excelsior LLC
Specification Name and Version:
The Java Language Specification, 3rd Edition; Java Platform Standard Ed 6.0
Test Suite Name and Version:
JCK 6a (29-May-2007, build b14)
TestName:
api/java_awt/TrayIcon
COMPLAINT:
The Excelsiro Runtime abruptly terminates with access violation when passing these tests.
HOW TO REPRODUCE ON THE RI
It does not appear under HotSpot by a lucky accidence.
ROOT CAUSE ANALYSIS:
The native method Java_sun_awt_windows_WToolkit_isProtectedMode() introduced in version 1.6.0_02, uses the IEIsProtectedModeProcessFunc winapi function declaring it as
typedef HRESULT IEIsProtectedModeProcessFunc(BOOL *);
It effectively means that the function will be called with the C (cdecl) calling convension whereas it's actually coded with the stdcall calling convension.
As a result, a call to the function breaks stack balance and provokes various unpredictable crashes.
See "Suggested fix" for more information how to fix the problem.
Vitaly Mikheev, Excelsior LLC
Specification Name and Version:
The Java Language Specification, 3rd Edition; Java Platform Standard Ed 6.0
Test Suite Name and Version:
JCK 6a (29-May-2007, build b14)
TestName:
api/java_awt/TrayIcon
COMPLAINT:
The Excelsiro Runtime abruptly terminates with access violation when passing these tests.
HOW TO REPRODUCE ON THE RI
It does not appear under HotSpot by a lucky accidence.
ROOT CAUSE ANALYSIS:
The native method Java_sun_awt_windows_WToolkit_isProtectedMode() introduced in version 1.6.0_02, uses the IEIsProtectedModeProcessFunc winapi function declaring it as
typedef HRESULT IEIsProtectedModeProcessFunc(BOOL *);
It effectively means that the function will be called with the C (cdecl) calling convension whereas it's actually coded with the stdcall calling convension.
As a result, a call to the function breaks stack balance and provokes various unpredictable crashes.
See "Suggested fix" for more information how to fix the problem.
- duplicates
-
JDK-6587371 JCK SystemTray tests cause VM crash on WinVista in JDK 6u3 with -Xcomp option (passed on 6u1)
-
- Resolved
-