ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #00854
[Bug 1312571] Re: Simple JS has differing results on AMD64/i386
This bug was fixed in the package qtdeclarative-opensource-src -
5.2.1-5ubuntu1
---------------
qtdeclarative-opensource-src (5.2.1-5ubuntu1) utopic; urgency=medium
* Resync with Debian including renamed QML packages (LP: #1313547)
* Depend conditionally on libgl1 (LP: #1278871)
* debian/patches/Fix-marking-of-prototype-objects-in-chain.patch
- Fix a crasher with deleted QQmlCompiledData as suggested by upstream
(LP: #1304248)
* debian/patches/QQuickItemView-QQuickPathView-Fix-creation-of-delega.patch:
- Fix "Carousel doesn't re-render properly after scrolling"
(LP: #1307578)
* debian/patches/Implement-proper-support-for-layoutChange-in-QQmlDel.patch:
- Fix a performance hit when editing sorted lists (LP: #1303746)
* debian/patches/V4-regalloc-fix-register-spill-choice-under-high-pre.patch:
- Fix differing JS results on AMD64/i386 (LP: #1312571)
* Updated symbols
-- Timo Jyrinki <timo-jyrinki@xxxxxxxxxx> Mon, 28 Apr 2014 07:35:22 +0000
** Changed in: qtdeclarative-opensource-src (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtdeclarative-opensource-src in
Ubuntu.
https://bugs.launchpad.net/bugs/1312571
Title:
Simple JS has differing results on AMD64/i386
Status in “qtdeclarative-opensource-src” package in Ubuntu:
Fix Released
Bug description:
Reporting on behalf of mrqtros who filed this upstream.
function safeAdd(x, y)
{ var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); // console.log("res", "(msw << 16) | (lsw & 0xFFFF)") return ((msw << 16) | (lsw & 0xFFFF)); }
This code reports different results depending on the architecture it's
run on.
Tested on amd64 and i386 on Ubuntu 14.04 - so 5.2.1.
On amd64 I get -2124464854 with and without console.log()
On i386 I get -2124464854 or 45890858 as per Roman's comment in qt bug https://bugreports.qt-project.org/browse/QTBUG-38451
However on i386 if I set QV4_NO_REGALLOC=1 then it's always
-2124464854
Please can the upstream fix at https://codereview.qt-
project.org/#change,83936 be applied to our build?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtdeclarative-opensource-src/+bug/1312571/+subscriptions
References