Closed Bug 757671 Opened 12 years ago Closed 12 years ago

IonMonkey: Values should be at least word aligned on ARM

Categories

(Core :: JavaScript Engine, defect)

ARM
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mjrosenb, Unassigned)

Details

Attachments

(1 file)

I noticed this while running on my Nexus-S a few weeks ago, then got derailed when my desktop bit the dust.
(gdb) x/i $pc
=> 0x5b00ba8c:	strd	r2, r3, [r1]
(gdb) p/x $r1
$1 = 0x5e487fd1

I am not sure why there aren't any debug symbols, but this is in the process of copying data into the constant table attached to every script, and this data is misaligned, so it crashes.
Attachment #626260 - Flags: review?(sstangl)
Comment on attachment 626260 [details] [diff] [review]
/home/mrosenberg/patches/fixAlignment-r0.patch

Review of attachment 626260 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/ion/Ion.cpp
@@ +398,5 @@
>      cacheEntries_(0),
>      refcount_(0)
>  {
>  }
> +static const int DataAlignment = 4;

nit: needs newlines around this line.
Attachment #626260 - Flags: review?(sstangl) → review+
landed: http://hg.mozilla.org/projects/ionmonkey/rev/aff52d7f5924
looks like this short patch got lost amongst a large number that I committed that day.
And actually closing the issue.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: