Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6625467

The Excelsior Runtime abruptly terminates with access violation when passing api/java_awt/TrayIcon

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6.0a
    • client-libs
    • 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.

            Unassigned Unassigned
            mbykov Misha Bykov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: