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

Crashes with SAFE_HEAP and STACK_OVERFLOW_CHECK enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.13
    • Fix Version/s: 5.13.2, 5.14.0 Alpha
    • Component/s: Other
    • Labels:
      None
    • Platform/s:
      WebAssembly
    • Commits:
      cd92049a95e6c762dadf011fad93f5ca151375fa (qt/qtbase/5.13)

      Description

      just compile the simplest Qt QML gui application, but with:

      wasm:LIBS += -s SAFE_HEAP=1 -s STACK_OVERFLOW_CHECK=1
      

      in the pro file.

      trace of QWasmScreen::resizeMaximizedWindows() crash:

      stackTrace@file:///C:/dev/build-qmlprojector-web-Debug/qtloader.js line 443 > eval:1948:16
      abort@file:///C:/dev/build-qmlprojector-web-Debug/qtloader.js line 443 > eval:16442:44
      segfault@file:///C:/dev/build-qmlprojector-web-Debug/qtloader.js line 443 > eval:725:3
      SAFE_HEAP_LOAD_i32_4_4wasm-function[66133]:0x15f080e
      QScreen::geometry() constwasm-function[42461]:0xef35a4
      QPlatformScreen::resizeMaximizedWindows()wasm-function[41282]:0xed36c8
      QWasmScreen::resizeMaximizedWindows()wasm-function[898]:0x39233
      QWasmScreen::setGeometry(QRect const&)wasm-function[876]:0x3902e
      QWasmScreen::updateQScreenAndCanvasRenderSize()wasm-function[869]:0x38ec8
      QWasmScreen::QWasmScreen(QString const&)wasm-function[868]:0x38d86
      QWasmIntegration::addScreen(QString const&)wasm-function[658]:0x35d82
      QWasmIntegration::QWasmIntegration()wasm-function[662]:0x35fec
      QWasmIntegrationPlugin::create(QString const&, QStringList const&)wasm-function[627]:0x358c1
      QPlatformIntegrationPlugin::create(QString const&, QStringList const&, int&, char**)wasm-function[41295]:0xed3d70
      QPlatformIntegration* qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin, QStringList const&, int&, char**&>(QFactoryLoader const*, QString const&, QStringList const&, int&, char**&)wasm-function[41417]:0xed63a2
      QPlatformIntegrationFactory::create(QString const&, QStringList const&, int&, char**, QString const&)wasm-function[41415]:0xed632b
      init_platform(QString const&, QString const&, QString const&, int&, char**)wasm-function[41511]:0xed9588
      QGuiApplicationPrivate::createPlatformIntegration()wasm-function[41460]:0xed7bc7
      QGuiApplicationPrivate::createEventDispatcher()wasm-function[41519]:0xed9c07
      QCoreApplicationPrivate::init()wasm-function[61803]:0x152fe67
      QGuiApplicationPrivate::init()wasm-function[41459]:0xed7278
      QGuiApplication::QGuiApplication(int&, char**, int)wasm-function[41457]:0xed7170
      mainwasm-function[508]:0x33807
      Module._main@file:///C:/dev/build-qmlprojector-web-Debug/qtloader.js line 443 > eval:15220:32
      callMain@file:///C:/dev/build-qmlprojector-web-Debug/qtloader.js line 443 > eval:16318:22
      doRun@file:///C:/dev/build-qmlprojector-web-Debug/qtloader.js line 443 > eval:16377:23
      run/<@file:///C:/dev/build-qmlprojector-web-Debug/qtloader.js line 443 > eval:16388:7
      

        Attachments

        For Gerrit Dashboard: QTBUG-78118
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            tjenssen Tim Jenssen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes