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

Using .bind(this) causes crash in garbage collector

XMLWordPrintable

      When using function.bind(this) the garbage collector will crash if it triggers at the wrong time. The cause of the crash is that target in BoundFunction::markObjects() is null.

      Attached a small test example - running it with QV4_MM_AGGRESSIVE_GC=1 consistently crashes.

        1. main.qml
          0.3 kB
          Troels Nilsson
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            laknoll Lars Knoll
            nilsson.troels@gmail.com Troels Nilsson
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes