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

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • 6.2
    • 5.14.2, 5.15.2
    • 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
    • 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. unknown.png
          unknown.png
          674 kB
        2. singletonqmlcpp.zip
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            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