Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22170

Crash when opening/writing shell script because of ' << % ' (Plain Text Editor)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.9.0-beta1
    • Qt Creator 4.1.0, Qt Creator 4.5.2
    • Editors
    • None
    • Linux with qt 5.9.2, Windows with qt 5.10.1
    • Linux/X11, Windows

    Description

      I have a simple shell script with the following content: << % (see attachment).

      • Opening this script in QtCreator using Plain Text Editor freezes QtCreator on Windows and Linux. (a)
      • A crash occurs as soon as this combination is typed into an opened shell script. (b)
        • Error log:"terminate called after throwing an instance of 'std::bad_alloc'
          what(): std::bad_alloc"

      QtCreator does not crash, if << and % are separated by a line break.

       

       

      Steps to reproduce:

      (a)

      1. Create shell script with the following line: << % (see attachment).
      2. Make script executable
      3. Open script in QtCreator's Plain Text Editor (File > Open File With... > Plain Text Editor)
      4. Freeze

      (b)

      1. Create shell script
      2. Make script executable
      3. Open script in QtCreator's Plain Text Editor (File > Open File With... > Plain Text Editor)
      4. Type << % in the script
      5. Crash

      Attachments

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

        Activity

          People

            davschul David Schulz
            steffi Stefanie Steding
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes