Closed Bug 2005469 Opened 1 month ago Closed 1 month ago

Fedora GCC 15.x aarch64 builds crashes at nsHtml5Tokenizer::StateLoopLineColALU (Stub)

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED FIXED
148 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox146 --- fixed
firefox147 --- fixed
firefox148 --- fixed

People

(Reporter: stransky, Assigned: stransky, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=2420679

Fedora GCC aarch64 uses stub nsHtml5Tokenizer::StateLoopLineColALU () which crashes.

Set release status flags based on info from the regressing bug 1499684

:hsivonen, since you are the author of the regressor, bug 1499684, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Looks like GCC 15.0 (at least) doesn't define

__LITTLE_ENDIAN__ 

used at:

https://searchfox.org/firefox-main/rev/04cf27582307a9c351e991c740828d54cf786b76/parser/htmlaccel/htmlaccelEnabled.h#31

#elif defined(__aarch64__) && defined(__LITTLE_ENDIAN__)
#  define MOZ_MAY_HAVE_HTMLACCEL 1
  return true;
$ echo | g++ -dM -E -x c++ - | grep "LITTLE"
#define __ORDER_LITTLE_ENDIAN__ 1234
#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__

$ echo | clang++ -dM -E -x c++ - | grep "LITTLE"
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __LITTLE_ENDIAN__ 1
#define __ORDER_LITTLE_ENDIAN__ 1234
Assignee: nobody → stransky
Status: NEW → ASSIGNED

(In reply to BugBot [:suhaib / :marco/ :calixte] from comment #1)

Also, could you set the severity field?

I'm not sure about the rules, but I gather this is S3, since this isn't a tier-1 config, despite the effect for that config being very severe.

Severity: -- → S3
Flags: needinfo?(hsivonen)
Attachment #9532315 - Attachment description: Bug 2005469 Use __ORDER_LITTLE_ENDIAN__ instead of __LITTLE_ENDIAN__ r?sergesanspaille → Bug 2005469 Use __ORDER_LITTLE_ENDIAN__ instead of __LITTLE_ENDIAN__ r?glandium

Looks like whole sources are polluted by __LITTLE_ENDIAN__ define. As it's clang only - shall we define it on configure if building with GCC then?

Flags: needinfo?(mh+mozilla)
Pushed by stransky@redhat.com: https://github.com/mozilla-firefox/firefox/commit/213b0b9261a6 https://hg.mozilla.org/integration/autoland/rev/536eb2dc686a Use __ORDER_LITTLE_ENDIAN__ instead of __LITTLE_ENDIAN__ r=sergesanspaille,hsivonen
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch

The patch landed in nightly and beta is affected.
:stransky, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(stransky)

Comment on attachment 9532315 [details]
Bug 2005469 Use ORDER_LITTLE_ENDIAN instead of LITTLE_ENDIAN r?glandium

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Browser crashes aarch64
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Build fix - use correct byte order.
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(stransky)
Attachment #9532315 - Flags: approval-mozilla-beta?

Comment on attachment 9532315 [details]
Bug 2005469 Use ORDER_LITTLE_ENDIAN instead of LITTLE_ENDIAN r?glandium

Approved for 147.0b5.

Attachment #9532315 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

:stransky is this something you want to uplift for the 146.0.1 dot release?

Flags: needinfo?(stransky)

Comment on attachment 9532315 [details]
Bug 2005469 Use ORDER_LITTLE_ENDIAN instead of LITTLE_ENDIAN r?glandium

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Crashes on aarch64.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): aarch64/gcc build fix, use correct endian there.
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(stransky)
Attachment #9532315 - Flags: approval-mozilla-release?

Comment on attachment 9532315 [details]
Bug 2005469 Use ORDER_LITTLE_ENDIAN instead of LITTLE_ENDIAN r?glandium

Approved for 146.0.1 dot release

Attachment #9532315 - Flags: approval-mozilla-release? → approval-mozilla-release+
Duplicate of this bug: 2008377
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: