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

qmlsc crashes on Fedora 37

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • 6.5.0 FF
    • 6.5
    • QML: Compiler
    • Linux/Wayland

    Description

      Builing the attached minimum example fails with 6.5.0 from maintainance tool. Here's a short transcript:

      $ mkdir build && cd build
      $ ~/Qt/6.5.0/gcc_64/bin/qt-cmake ..
      -- The CXX compiler identification is GNU 12.2.1
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/lib64/ccache/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE 
      -- Performing Test HAVE_STDATOMIC
      -- Performing Test HAVE_STDATOMIC - Success
      -- Found WrapAtomic: TRUE 
      -- Found OpenGL: /usr/lib64/libOpenGL.so 
      -- Found WrapOpenGL: TRUE 
      -- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.4.1", minimum required is "0.5.0") 
      -- Found WrapVulkanHeaders: /usr/include 
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /home/prcs1076/tmp/untitled/build
      $ make
      [ 5%] Running qmlimportscanner for appuntitled
      [ 5%] Built target appuntitled_qmlimportscan
      [ 10%] Built target appuntitled_tooling
      [ 15%] Generating .rcc/qmlcache/appuntitled_qmlcache_loader.cpp
      [ 21%] Automatic MOC for target appuntitled
      [ 21%] Built target appuntitled_autogen
      [ 26%] Running AUTOMOC file extraction for target appuntitled
      [ 26%] Built target appuntitled_automoc_json_extraction
      [ 31%] Running moc --collect-json for target appuntitled
      [ 36%] Automatic QML type registration for target appuntitled
      [ 42%] Generating .rcc/qmlcache/appuntitled_main_qml.cpp
      make[2]: *** [CMakeFiles/appuntitled.dir/build.make:120: .rcc/qmlcache/appuntitled_main_qml.cpp] Segmentation fault (core dumped)
      make[2]: *** Deleting file '.rcc/qmlcache/appuntitled_main_qml.cpp'
      make[1]: *** [CMakeFiles/Makefile2:98: CMakeFiles/appuntitled.dir/all] Error 2
      make: *** [Makefile:136: all] Error 2

       

      The stacktrace doesn't feel helpful:

      $ coredumpctl debug
       PID: 27347 (qmlsc)
       UID: 1011 (prcs1076)
       GID: 1014 (ipausers)
       Signal: 11 (SEGV)
       Timestamp: Mon 2022-11-21 10:54:30 CET (30s ago)
       Command Line: /home/prcs1076/Qt/6.5.0/gcc_64/libexec/qmlsc --bare --resource-path /untitled/main.qml -I /home/prcs1076/tmp/untitled/build -I /home/prcs1076/Qt/6.5.0/gcc_64/./qml -i /home/prcs1076/tmp/untitled/build/untitled/qmldir --resource /home/prcs1076/tmp/untitled/build/.rcc/qmake_untitled.qrc --resource /home/prcs1076/tmp/untitled/build/.rcc/appuntitled_raw_qml_0.qrc -o /home/prcs1076/tmp/untitled/build/.rcc/qmlcache/appuntitled_main_qml.cpp /home/prcs1076/tmp/untitled/main.qml
       Executable: /home/prcs1076/Qt/6.5.0/gcc_64/libexec/qmlsc
       Control Group: /user.slice/user-1011.slice/user@1011.service/app.slice/app-org.kde.konsole-8206c35f6dce4d5bb7eb2718fc9731a7.scope
       Unit: user@1011.service
       User Unit: app-org.kde.konsole-8206c35f6dce4d5bb7eb2718fc9731a7.scope
       Slice: user-1011.slice
       Owner UID: 1011 (prcs1076)
       Boot ID: 4ee5cbc61cc242908d94fb186dee1e5d
       Machine ID: 5e9319dcd59545619a02ace72d7282e4
       Hostname: statler.intranet.gonicus.de
       Storage: /var/lib/systemd/coredump/core.qmlsc.1011.4ee5cbc61cc242908d94fb186dee1e5d.27347.1669024470000000.zst (present)
       Disk Size: 1.2M
       Package: openssl/3.0.5-3.fc37
       build-id: 806d2b538deecd60f7f40f1bd457e425e2e0d718
       Message: Process 27347 (qmlsc) of user 1011 dumped core.
      [...snip...]
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib64/libthread_db.so.1".
      Core was generated by `/home/prcs1076/Qt/6.5.0/gcc_64/libexec/qmlsc --bare --resource-path /untitled/m'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      warning: Section `.reg-xstate/27347' in core file too small.
      #0 0x000000000041252e in ?? ()
      (gdb) bt
      #0 0x000000000041252e in ?? ()
      #1 0x000000000040d4f1 in ?? ()
      #2 0x00007fe18104b510 in __libc_start_call_main () from /lib64/libc.so.6
      #3 0x00007fe18104b5c9 in __libc_start_main_impl () from /lib64/libc.so.6
      #4 0x000000000040d87e in ?? ()
      (gdb) exit
      

       

      Crashing call is:

      /home/prcs1076/Qt/6.5.0/gcc_64/libexec/qmlsc --bare --resource-path /untitled/main.qml -I /home/prcs1076/tmp/untitled/build -I /home/prcs1076/Qt/6.5.0/gcc_64/./qml -i /home/prcs1076/tmp/untitled/build/untitled/qmldir --resource /home/prcs1076/tmp/untitled/build/.rcc/qmake_untitled.qrc --resource /home/prcs1076/tmp/untitled/build/.rcc/appuntitled_raw_qml_0.qrc -o /home/prcs1076/tmp/untitled/build/.rcc/qmlcache/appuntitled_main_qml.cpp /home/prcs1076/tmp/untitled/main.qml

      Attached ltrace.txt and strace.txt to gather more information.

      6.4.1 and earlier works fine. There are no crashes on Ubuntu 20.04 for the same example.

      Attachments

        1. ltrace.txt
          16 kB
        2. strace.txt
          178 kB
        3. untitled.tgz
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            cajus Cajus Pollmeier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes