Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Done
-
Affects Version/s: Qt Creator 4.1.0, Qt Creator 4.5.2
-
Fix Version/s: Qt Creator 4.9.0-beta1
-
Component/s: Editors
-
Labels:None
-
Environment:Linux with qt 5.9.2, Windows with qt 5.10.1
-
Platform/s:
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"
- Error log:"terminate called after throwing an instance of 'std::bad_alloc'
QtCreator does not crash, if << and % are separated by a line break.
Steps to reproduce:
(a)
- Create shell script with the following line: << % (see attachment).
- Make script executable
- Open script in QtCreator's Plain Text Editor (File > Open File With... > Plain Text Editor)
- Freeze
(b)
- Create shell script
- Make script executable
- Open script in QtCreator's Plain Text Editor (File > Open File With... > Plain Text Editor)
- Type << % in the script
- Crash