Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.2, 6.0.0
-
Arch Linux, QT from official repo with version 5.15.2-2.
Tested on both Xorg and Wayland
-
-
e68b498424f63c1cb6151e4fc6bbc50bac584909 (qt/qtdeclarative/dev) ae8fb3800ac880bfa9805f9163709d96b66b7788 (qt/qtdeclarative/6.0)
Description
Component::createObject accepts optional properties. Where the properties is some JavaScript object.
If the property is specified, even if it is empty, under .mjs environment, segfault will happen and the whole application crash.
For example, following code in .mjs environment will crash:
```
component.createObject(root, { title: "B" });
component.createObject(root, {});
```
Segfault will not occur if the property is not specified.
If JavaScript is defined in .qml or in .js file, segfault will not happen. Regardless property is defined or not.
Attached code contains minimum code for reproducing this. Run it with `qmlscene Root.qml`.