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

Regression 5.15.4: gc() within generator functions crash

    XMLWordPrintable

Details

    • All
    • d36b480a956e2437888925aa8a1f5e3cb6c06ebd (qt/qtdeclarative/dev) d082d8ff76080c8e5aa74414c253014bcf7e79c9 (qt/qtdeclarative/6.1) 30f504232502c15e3d3536945ed5d9bd5a8f6dd3 (qt/qtdeclarative/6.2) cf48a9ef97 (qt/tqtc-qtdeclarative/5.15-opensource)

    Description

      This test is a small reproducer of a crash we had in production after bumping to the latest Qt version, it passes without issue in 5.15.3, but starting with 5.15.4 it always crashes:

          function test_generator_gc() {
              ((function*() { gc() })()).next();
              ((function*() { gc() })()).next();
              ((function*() { gc() })()).next();
              ((function*() { gc() })()).next();
              ((function*() { gc() })()).next();
          }
      

       I think the regression was introduced by QTBUG-91491: qv4generatorobject: Fix crash when creating new properties (but I haven't tested).

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            vrouille Vincent Rouillé
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes