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

[Reg 5.13 -> 5.14] Application is crashed on qmlRegisterSingletonType function call with clang and libc++ environment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Out of scope
    • Affects Version/s: 5.14.2, 5.15.2
    • Fix Version/s: 6.2
    • Environment:
      OS: SMP Debian 4.9.258-1 (2021-03-08) x86_64 GNU/Linux
      QMake version 3.1
      Using Qt version 5.15.2 in /home/tayursky-k/soft/Qt/5.15.2/gcc_64/lib
    • Platform/s:
      Linux/X11

      Description

      uQML app being crashed after running template version of function qmlRegisterSingletonType.
      App is compiled with libc++ and clang-9 compiler using linux-clang-libc++ qt mkspec.
      Problem began since Qt 5.14.2 up to Qt 5.15.2. With Qt 5.13.2 works well. Test project is included.

       How to reproduce:
      1. Open test project
      2. Build project.
      4. Start the application.
      What happens:
      1. Application crashes
      2. Output:

      19:33:08: Starting /home/tayursky-k/dev/build-SingletonQMLCpp-Desktop_Qt_5_12_0_CLang_64bit-Debug/SingletonQMLCpp ...
      QML debugging is enabled. Only use this in a safe environment.
      qmlRegisterSingletonType ___1
      19:33:08: The program has unexpectedly finished.
      19:33:08: The process was ended forcefully.
      19:33:08: /home/tayursky-k/dev/build-SingletonQMLCpp-Desktop_Qt_5_12_0_CLang_64bit-Debug/SingletonQMLCpp crashed.
      

      Problem applies to both debug and release builds.

        Attachments

        1. singletonqmlcpp.zip
          6 kB
        2. unknown.png
          unknown.png
          674 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            tayursky_k Kostia Tayursky
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes