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

downcast of address which does not point to an object of type 'const struct spvc_type_s'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 6.3
    • Qt RHI
    • None

    Description

      I tried to build Qt with clang and -sanitize undefined and failed due to bunch of similar errors:

      cd qt5/build-qt6-tools-dev-sanitize/qtdeclarative/src/quick && qt5/build-qt6-tools-dev-sanitize/qtbase/bin/qsb --glsl 100es,120,150 --hlsl 50 --msl 12 -b -O -s -o qt5/build-qt6-tools-dev-sanitize/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/distancefieldoutlinetext.frag.qsb qt5/qtdeclarative/src/quick/scenegraph/shaders_ng/distancefieldoutlinetext.frag
      ../qtshadertools/src/3rdparty/SPIRV-Cross/spirv_cross_c.cpp:2057:10: runtime error: downcast of address 0x622000000cd0 which does not point to an object of type 'const struct spvc_type_s'
      0x622000000cd0: note: object is of type 'spirv_cross::SPIRType'
       00 00 00 00  60 04 06 35 94 7f 00 00  0e 00 00 00 0d 00 00 00  20 00 00 00 02 00 00 00  01 00 00 00
                    ^~~~~~~~~~~~~~~~~~~~~~~
                    vptr for 'spirv_cross::SPIRType'
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../qtshadertools/src/3rdparty/SPIRV-Cross/spirv_cross_c.cpp:2057:10 in
      

      I treid to replace SPIRV-Cross with master (git://github.com/KhronosGroup/SPIRV-Cross) and got the same result. But because of usage of "qsb" it is not clear is it upstream issue or Qt related.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes