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

[REG] QtScript is not fully reentrant

XMLWordPrintable

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

      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.

        1. bt.txt
          6 kB
          Kent Hansen
        2. main.cpp
          0.4 kB
          Kent Hansen
        3. jsc.diff
          3 kB
          Olivier Goffart (closed Nokia identity)
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes