Closed
Bug 898916
Opened 11 years ago
Closed 11 years ago
Statically allocated classinfo objects are not properly aligned
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: glandium, Assigned: glandium)
Details
(Whiteboard: [qa-])
Attachments
(1 file)
2.77 KB,
patch
|
benjamin
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Changeset 2ad039920033 added k${class}ClassInfoDataPlace buffers that are used as static allocation location for GenericClassInfo, but no effort is made to make the alignment correct. This causes unaligned read accesses on e.g. arm. I'm actually surprised this doesn't break our armv6 builds. It does, however, break Debian armel.
Assignee | ||
Updated•11 years ago
|
Hardware: x86_64 → ARM
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #782332 -
Flags: review?(benjamin)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mh+mozilla
Updated•11 years ago
|
Attachment #782332 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 2•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7506c6ee2e8b
Comment 3•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7506c6ee2e8b
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 782332 [details] [diff] [review] Properly align statically allocated classinfo objects [Approval Request Comment] User impact if declined: Linux ARM builds don't work, and I suspect this also affects sparc and other architectures that don't like misaligned word accesses. It would be nice if this could land in the next ESR for linux distros. Testing completed (on m-c, etc.): Landed on m-c a couple days ago. Risk to taking this patch (and alternatives if risky): In practice, the patch only changes the alignment of a data buffer in the resulting binary. Risk of this breaking anything is really low. String or IDL/UUID changes made by this patch: None.
Attachment #782332 -
Flags: approval-mozilla-aurora?
Comment 5•11 years ago
|
||
Comment on attachment 782332 [details] [diff] [review] Properly align statically allocated classinfo objects low risk and useful for support of linux in the next ESR version, approving.
Attachment #782332 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 6•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/4a2ea5f02321
status-firefox24:
--- → fixed
status-firefox25:
--- → fixed
Assuming no QA needed here. Please remove [qa-] from the whiteboard and add the verifyme keyword if this needs QA.
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•