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

Segfault when using QScriptEngine::evaluate with JIT on QT Embedded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 4.7.0
    • 3.x
    • Qt Script
    • None

    Description

      When compiling QT Embedded with JIT, applications using QTScript crash with the following backtrace (see attached files for the log and an example of a crashing application).

      The issue happens both when compiling for i386 (executing in qemu) or when compiling for our MPC8313 embedded platform. It does not happen when compiling QT with "-no-javascript-jit" option.

      ---------- backtrace ------------
      Program received signal SIGSEGV, Segmentation fault.
      0xb81c7abb in ?? ()
      (gdb) bt
      #0 0xb81c7abb in ?? ()
      #1 0xb7e77852 in QTJSC::JITCode::execute (this=0xb6466488, eval=0xbffffc6c,
      callFrame=0x8050294, thisObj=0xb5fc0000, globalRegisterOffset=9,
      scopeChain=0xb64a11c8, exception=0xbffffbd8)
      at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITCode.h:79
      #2 QTJSC::Interpreter::execute (this=0xb6466488, eval=0xbffffc6c,
      callFrame=0x8050294, thisObj=0xb5fc0000, globalRegisterOffset=9,
      scopeChain=0xb64a11c8, exception=0xbffffbd8)
      at ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.cpp:921
      #3 0xb7e77b3b in QTJSC::Interpreter::execute (this=0xb6466488,
      eval=0xbffffc6c, callFrame=0x8050294, thisObj=0xb5fc0000,
      scopeChain=0xb64a11c8, exception=0xbffffbd8)
      at ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.cpp:838
      #4 0xb7f6de7b in QScriptEnginePrivate::evaluateHelper (this=0x804fd98,
      exec=0x8050294, sourceId=-1236658544, executable=0xbffffc6c,
      compile=@0xbffffcb7) at api/qscriptengine.cpp:1203
      #5 0xb7f6eaed in QScriptEngine::evaluate (this=0xbffffd08, program=...,
      fileName=..., lineNumber=1) at api/qscriptengine.cpp:2199
      #6 0x08048f0c in main (argc=0, argv=0xbffffbd8) at hello.cpp:16

      Attachments

        1. helloScriptEngine.log
          3 kB
          Adrien Demarez
        2. helloScriptEngine.tar.gz
          0.6 kB
          Adrien Demarez
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes