Closed Bug 1604023 Opened 6 years ago Closed 6 years ago

Firefox built with GCC 10 snapshots crashes due to Rust ABi compatibility bug

Categories

(Core :: CSS Parsing and Computation, defect)

70 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: jh, Assigned: emilio, NeedInfo)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

I build Firefox 71 release with GCC 10

Actual results:

It does crash for same reason as described in https://bugzilla.mozilla.org/show_bug.cgi?id=1600735

That bug was closed by updating fuzzer from gcc7 to gcc8, but that only hides the actual problem. As co-author of x86-64 PS ABI, I could confirm that the sign extensions was not intended to be required.

I wonder if this can be worked around by changing calling interface of this function until Rust compiler is updated?

Expected results:

It should have worked.

Hi, Jan Hubicka,

Thanks for your contribution!

I don´t have the technical knowledge to confirm this issue but I'll add product and component so the team can make some research on it. Hopefully, someone with a more deep understanding of this matter can help.

Regards,

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core

Yes... I have a WIP patch for this at https://reviews.llvm.org/D71178... We could workaround it taking a bigger type or something I guess, yeah.

Assignee: nobody → emilio
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

All the gory details in https://bugzilla.mozilla.org/show_bug.cgi?id=1600735 and
related LLVM / GCC bugs. Avoid the issue by forcing the relevant enum to be
32-bit wide, so as to not trigger the LLVM bug.

Let me know if you want this uplifted? It should be trivial to do so.

Flags: needinfo?(jh)
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: