Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
5.12.5, 5.13.0, 5.14
-
clang 8.0.1
gcc 9.1.0
-
d1047887a6fd4f890484203a01ee5f1eefc1a20a (qt/qtdeclarative/5.15)
Description
Build and run a simple QCoreApplication:
#include <QCoreApplication> #include <QJSEngine> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QJSEngine().evaluate(QByteArray("Array(1E9)|1")); return 0; }
It will take more than a minute or crash going oom.
It seems as if this could be handled better because:
- the JavaScript seems to only return what's behind the "|"
Array(1E9)
will not freeze at all
Array(1E10)|1
does not freeze either.