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

Runtime error in qv4stackframe

    XMLWordPrintable

Details

    • 0b10b83dad91b44559b9f4ddcf9d8bed5544de93 (qt/qtdeclarative/dev) b140d12fca7228e6234c2acd7d3c1a17d0cb850f (qt/qtdeclarative/6.1)

    Description

      1. Configure Qt with "-sanitize undefined".
      2. Build Qt.
      3. Build the attached project using this build of Qt:
        #include <QCoreApplication>
        #include <QJSEngine>
        
        int main(int argc, char *argv[]) {
            QCoreApplication a(argc, argv);
            QJSEngine().evaluate("1");
            return 0;
        }
        
      4. Run the resulting program.
        You will see output like:
        /home/qtrob/dev/src/qt-dev-base_declarative_svg-05.20/qtdeclarative/src/qml/jsruntime/qv4stackframe_p.h:236:31: runtime error: null pointer passed as argument 2, which is declared to never be null
        /usr/include/string.h:44:28: note: nonnull attribute specified here
        SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/qtrob/dev/src/qt-dev-base_declarative_svg-05.20/qtdeclarative/src/qml/jsruntime/qv4stackframe_p.h:236:31 in
        

      Attachments

        1. main.cpp
          0.2 kB
        2. report.pro
          0.1 kB
        For Gerrit Dashboard: QTBUG-94067
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes