Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.4.0
-
None
-
Gentoo Linux on HP PA-RISC
-
9934c075c707138f3e23e7e45858e2f108195b7e
Description
On machines where the stack grows upwards (i.e. HPPA) the stack limit calculation does not work (qtdeclarative/src/qml/jsruntime/qv4engine.cpp). The stackBottom is the origin of the stack on this machines, not the limit. Checking if the stack grows up or down should be simply doing:
if (reinterpret_cast<quintptr>(&stackBottom) < reinterpret_cast<quintptr>(&stackSize))
{ /* grows up */ }Since these machines are a rare edge case I suggest to simply assume the stack is big enough on them. In fact qmlviewer seems to work if this check is removed.