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

Some Qt apps crashs if they are compiled with gcc5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.4.2
    • 5.4.2, 5.5.0 Alpha
    • Core: Other
    • None
    • Debian SID + gcc 5 from eperimental
    • 36d6eb721e7d5997ade75e289d4088dc48678d0d (qtbase/5.4.2 8.5.2015, 5.4.2)

    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

        1. application.dump.txt
          12 kB
          BogDan Vatra
        2. clang-lto-copy-relocs.txt
          10 kB
          Evangelos Foutras
        3. gcc5_crash.txt
          12 kB
          BogDan Vatra
        4. gdb_log.txt
          14 kB
          BogDan Vatra
        5. libQt5Core.so.dump.txt.bz2
          243 kB
          BogDan Vatra
        6. libQt5Core-gcc49-vs-gcc51-relocs.diff
          31 kB
          Evangelos Foutras
        7. libQt5Gui.so.dump.txt
          556 kB
          BogDan Vatra
        8. Makefile
          93 kB
          BogDan Vatra
        9. trace_log.txt
          8 kB
          BogDan Vatra

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              taipan BogDan Vatra
              Votes:
              0 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: