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

Lines of code and certain characters in variable names produces segmentation fault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 11.0.3
    • Qt Creator 10.0.2, Qt Creator 11.0.1
    • C/C++/Obj-C++ Support
    • None
    • msvc 2012
    • Linux/Wayland, Windows
    • e9b3cd548 (11.0)

    Description

      In one of my Qt project I can write, or paste, a certain line of code that causes Qt Creator to produce a segmentation fault and crash. Have also verified that it work on other person's Qt Creator with the same version, but it does not happen in version 4. It doesn't happen when developing the project out side of Qt Creator.

       

      It's a bit complicated, but the lines of code could be the following (in any order) and they have to be in a function

      Line A: a b=c;

      Line B: d e(f)="";

      • To produce a segmentation fault, it's important that
        • Both lines end in ;
        • Line B ends in ="";. There can be spaces and stuff in the string, but it has to be a string or char
        • a, c, d, e, f starts with is atleast a letter (doesn't crash with number or other character)
        • The ascii value of one characted in c module 4 is 0, . So $,0,4,8,d,D,h,H, etc
      • It's not important that
        • Line A is defined before Line B
        • Lane A is defined withing the function, it can also be a variable from the function header

       

      Attachments

        1. bt.txt
          234 kB
          David Schulz
        2. untitled.zip
          3 kB
          user-16008
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            jirauser67837 user-16008 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes