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

Some Qt apps crashs if they are compiled with gcc5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.4.2
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None
    • Environment:
      Debian SID + gcc 5 from eperimental

      Description

      I've tried a few examples and some of them are crashing (e.g. examples/widgets/mainwindows/application).

      From what I've seen it seems that (sometimes) gcc5 fails to static_cast QCoreAppication to QGuiApplication, qGuiApp macro (static_cast<QGuiApplication *>(QCoreApplication::instance())) is 0.

      I realy have no idea why somethimes qGuiApp works and sometime doesn't, and I have no idea if its gcc's fault or Qt's.

      I attached the full backtrace.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                thiago Thiago Macieira
                Reporter:
                taipan BogDan Vatra
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes