Closed
Bug 514645
Opened 16 years ago
Closed 16 years ago
signal BUS (invalid address alignment) with SPARCV9 64bit Firefox
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta1-fixed |
People
(Reporter: ginnchen+exoracle, Assigned: brendan)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
2.09 KB,
patch
|
igor
:
review+
|
Details | Diff | Splinter Review |
start SPARC V9 64bit firefox (NANOJIT is not enabled.)
it will core with signal BUS.
I think the root cause is JSUpvarArray.vector[] is array of uint32.
So pointer to regexp can be 64-bit misaligned.
Recompile js/src with -misalign flag can get around.
But the performance would not be good.
Assignee | ||
Comment 1•16 years ago
|
||
Ginn, thanks for reporting. Could you please test this patch, and if it works, with igor's r+ land it? If you could then please also take assignment of the bug. Thanks again,
/be
Attachment #398722 -
Flags: review?(igor)
Updated•16 years ago
|
Attachment #398722 -
Flags: review?(igor) → review+
Assignee | ||
Comment 2•16 years ago
|
||
I had the patch hiding in my q, so committed:
http://hg.mozilla.org/tracemonkey/rev/4c38883a0438
/be
Assignee: general → brendan
Status: NEW → ASSIGNED
Flags: wanted1.9.2?
Whiteboard: fixed-in-tracemonkey
Updated•16 years ago
|
Flags: wanted1.9.2? → wanted1.9.2+
Brendan, thanks for the fix. Firefox starts without BUS signal with it.
But, sizeof(JSTryNote) == 3 * sizeof(uint32), would it be a problem?
Assignee | ||
Comment 4•16 years ago
|
||
(In reply to comment #3)
> Brendan, thanks for the fix. Firefox starts without BUS signal with it.
>
> But, sizeof(JSTryNote) == 3 * sizeof(uint32), would it be a problem?
No. The fix sorts allocations in non-increasing alignment grain order, so we both pack efficiently and avoid misaligning wider types.
/be
Comment 6•16 years ago
|
||
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 7•16 years ago
|
||
status1.9.2:
--- → beta1-fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•