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

Xserver crashes when the wrong high refresh rate is used

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 11, 13, 14, 15
    • Fix Version/s: 16
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      generic
    • OS:
      linux

      Description

      We use two different approaches to listing the display modes on the system:
       - For single-screen configuration use version 1.1 protocol XRRGetScreenInfo/XRRConfigRates/XRRConfigSizes
       - For multi-screen configuration use version 1.2 protocol: XRRGetScreenResources/XRRGetOutputInfo/XRRModeInfo

      Unfortunately, the current code does not work for some specific double scan modes, it doubles the real refresh rate. If this refresh rate will be passed to the Xserver later it could hang/crash.

      The same bug existed in xrandr utility before version 1.4:
      https://bugs.freedesktop.org/show_bug.cgi?id=37043
      https://gitlab.freedesktop.org/xorg/app/xrandr/commit/7fd4f18b649f22fad4dbf9fc64b69b3e7f172207

      Looks like we should drop the code for single-screen configuration, and always use the multi-screen code patched by the fix above.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                serb Sergey Bylokhov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: