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

calling exit after constructing QApplication crash

XMLWordPrintable

    • Linux/X11
    • 1040728e3 (dev), 6ad615cd1 (6.9), c46ac58ea (6.8)

      https://bugreports.qt.io/browse/QTBUG-133500?focusedId=864037&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-864037

      I am using KDE neon Unstable Edition with qt6-base package version 6.8.2-0zneon+24.04+noble+unstable+build68.

      This crashes since qt 6.8.2 (no crash in qt 6.8.1):

      myqtapp.cpp
      #include <QApplication>
      int main(){
      	char myqtapp[]{"myqtapp"};
      	char platform[]{"-platform"};
      	char xcb[]{"xcb"};
      	char *argv[4]{myqtapp,platform,xcb,0};
      	int argc{3};
      	QApplication app(argc,argv);
      	exit(0);
      }
      
      compiler command line
      g++ -o myqtapp myqtapp.cpp -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -lQt6Core -lQt6Widgets
      

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

            liaqi Liang Qi
            bzzzz BZZZZ DZZZZ
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes