Simple JS has differing results on AMD64/i386
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtdeclarative-opensource-src (Ubuntu) |
Fix Released
|
Undecided
|
Timo Jyrinki |
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:/
However on i386 if I set QV4_NO_REGALLOC=1 then it's always -2124464854
Please can the upstream fix at https:/
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Kubuntu Packagers: Pending requested
-
Diff: 931 lines (+684/-29)13 files modifieddebian/changelog (+50/-0)
debian/control (+156/-26)
debian/copyright (+20/-0)
debian/libqt5qml5.symbols (+2/-1)
debian/mark_private_symbols.sh (+20/-0)
debian/patches/Fix-marking-of-prototype-objects-in-chain.patch (+89/-0)
debian/patches/Implement-proper-support-for-layoutChange-in-QQmlDel.patch (+158/-0)
debian/patches/QQuickItemView-QQuickPathView-Fix-creation-of-delega.patch (+128/-0)
debian/patches/V4-regalloc-fix-register-spill-choice-under-high-pre.patch (+50/-0)
debian/patches/series (+4/-0)
debian/qml-module-qtquick-dialogs.install (+5/-1)
debian/qml-module-qtquick-dialogs.lintian-overrides (+1/-1)
debian/source/lintian-overrides (+1/-0)
Changed in qtdeclarative-opensource-src (Ubuntu): | |
assignee: | nobody → Timo Jyrinki (timo-jyrinki) |
status: | New → In Progress |
This bug was fixed in the package qtdeclarative- opensource- src - 5.2.1-5ubuntu1
--------------- opensource- src (5.2.1-5ubuntu1) utopic; urgency=medium
qtdeclarative-
* Resync with Debian including renamed QML packages (LP: #1313547) patches/ Fix-marking- of-prototype- objects- in-chain. patch patches/ QQuickItemView- QQuickPathView- Fix-creation- of-delega. patch: patches/ Implement- proper- support- for-layoutChang e-in-QQmlDel. patch: patches/ V4-regalloc- fix-register- spill-choice- under-high- pre.patch:
* Depend conditionally on libgl1 (LP: #1278871)
* debian/
- Fix a crasher with deleted QQmlCompiledData as suggested by upstream
(LP: #1304248)
* debian/
- Fix "Carousel doesn't re-render properly after scrolling"
(LP: #1307578)
* debian/
- Fix a performance hit when editing sorted lists (LP: #1303746)
* debian/
- Fix differing JS results on AMD64/i386 (LP: #1312571)
* Updated symbols
-- Timo Jyrinki <email address hidden> Mon, 28 Apr 2014 07:35:22 +0000