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

Using .bind(this) causes crash in garbage collector

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes