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

Crash in Generator::method_next when creating new properties on Generator

    XMLWordPrintable

Details

    • 7ea690c61dabd2485e80e7fae9aed392ba02c846 (qt/qtdeclarative/dev) b1e47b795e09a7834783a7418468f3cd184ef082 (qt/qtdeclarative/6.0) 703f41d5a51aacf4d481f49daea2b68d9ad5a797 (qt/qtdeclarative/6.1) 18b1e8266f (qt/tqtc-qtdeclarative/5.15-opensource)

    Description

      import QtQuick 2.15
      
      Rectangle {
         id: fileContainer
         property real a: 42 
         property real b: 0
      
         function f(myfunc) {
            let gen = myfunc();
            gen["u"] = 0
            console.log(gen.next().value)
         }
      
         function refreshA() {
            f(function*() { b= 12; return a });
         }
      
         TapHandler {
            onTapped:() => {fileContainer.refreshA(); console.log(fileContainer.b)}
         }
      }
      

      leads to a crash.

      Attachments

        Issue Links

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

          Activity

            People

              max.goldstein Maximilian Goldstein
              fabiankosmale Fabian Kosmale
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes