Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58647

qPopulationCount uses unchecked SSE4 instructions with MSVC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 5.9.0 Alpha
    • 5.8, 5.9.0 Alpha
    • None
    • WIndows 10 64bit MSVC2015 U3 64bit

    Description

      With qtdeclarative/5.9 at b7090f1334ac7b8ad2548f084c749eda4fa82451 , Qt Core at f3b3e79feb64e57c2f0ab7030080920c338fd99e:

      • Launch samegame, press Exit button
      • Note crash

      Note: Qt Creator 4.2 also crashes with a similar stack trace.

      This is due to the use of qPopulationCount, which - when using MSVC intrinsics - expands to an SSE 4 instruction that requires CPUID checking at run-time. No such checking is done though.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-58647
          # Subject Branch Project Status CR V

          Activity

            People

              shausman Simon Hausmann
              kleint Friedemann Kleint
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes