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

[REG 4.8.7 -> 5.6.1] Malformed input file crashes moc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.6.1, 5.6.2, 5.8, 5.11.0, 5.15.0, 6.2.0 Beta3
    • Build tools: moc
    • Ubuntu 16.10 LTS 64 bit
      g++ 6.2.0

    Description

      moc segfaults when run on the attached malformed file:

      /home/qtrob/dev/g++-6.2.0/qt-5.6.2/qtbase/bin/moc /tmp/crashmoc.h 
      Speicherzugriffsfehler
      

      It's clear that moc can't generate something useful from this file but still it should not crash. Qt 4.8.7 finished safely with an error message:

      /home/qtrob/dev/g++-5.3.1/qt-4.8.7/bin/moc /tmp/crashmoc.h 
      /tmp/crashmoc.h:0: Note: No relevant classes found. No output generated.
      

      Attachments

        1. crashmoc.h
          0.1 kB
          Robert Löhning
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            fabiankosmale Fabian Kosmale
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes