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

[REG] QtScript is not fully reentrant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.0
    • 4.6.0
    • Qt Script
    • None
    • 7e08ce215763475c5933d2f035687e5db3d5295d

    Description

      With the switch to using JavaScriptCore in 4.6, QtScript is no longer reentrant. This is because JavaScriptCore is not reentrant, and QtScript does not take care to lock resources in relevant places. This can cause e.g. the attached application (main.cpp) to crash.

      Either JavaScriptCore should be made reentrant, or QtScript should do the necessary locking.
      There is a feature in JSC, ENABLE_MULTIPLE_THREADS, that's also relevant to this issue. QtScript currently doesn't enable this feature because it's not supported on all platforms.

      Attachments

        1. main.cpp
          0.4 kB
        2. jsc.diff
          3 kB
        3. bt.txt
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kenthans Kent Hansen (Inactive)
            kenthans Kent Hansen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes