Closed Bug 256603 Opened 21 years ago Closed 21 years ago

Firefox and Mozilla crash at startup on linux alpha (and possibly other 64 bits arches).

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: glandium, Assigned: pkwarren)

References

Details

(4 keywords)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.7) Gecko/20040822 Firefox/0.9.3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.7) Gecko/20040822 Firefox/0.9.3 in accessible/src/atk/nsAccessibleWrap.cpp, nsAccessibleWrap::GetMaiAtkType returns a GType into a PRUint32, and... that breaks on 64 bits arches. see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=259836 for initial report on firefox. Interestingly, the issue shows up only on some systems, not all, but does every time on systems where it does. A patch has been provided on the Debian BTS (basically replacing PRUint32 by GType for nsAccessibleWrap::GetMaiAtkType return type) but is not enough (it is missing an include to get GType definition in nsAccessibleWrap.h, and several Makefile.in updates for include paths to fit this change). An easier fix is to replace PRUint32 by unsigned long int (doesn't need additional changes), and it has been verified to fix the issue on broken systems. Reproducible: Always Steps to Reproduce:
confirming based on the Debian report. Can you upload a complete patch here? So, GType is differently typedef'd on different platforms (32bit vs 64bit)?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: 64bit
Assignee: aaronleventhal → pkwarren
From gtype.h: /* Typedefs */ #if GLIB_SIZEOF_LONG == GLIB_SIZEOF_SIZE_T typedef gulong GType; #else /* hm, shouldn't happen? */ typedef gsize GType; #endif
Attached patch Patch v1Splinter Review
I would prefer to use GType as the return type of the function instead of unsigned long. I have removed the class members for those functions, and just made them static (they are not called from any other code).
Attachment #156851 - Flags: review?(Louie.Zhao)
Keywords: crash
*** Bug 263543 has been marked as a duplicate of this bug. ***
This is a mustfix for 1.0 IMO. There is no point in shipping/supporting Firefox for AMD64 or any other 64bit platform without fixing this bug since it is highly visible. I've already got two reports in Red Hat bugzilla about this from Rawhide. I expect if we ship with this, I will be inundated with such reports, as will mozilla.org.
Comment on attachment 156851 [details] [diff] [review] Patch v1 Does this patch still apply?
Attachment #156851 - Flags: superreview+
Attachment #156851 - Flags: review?(kyle.yuan)
Attachment #156851 - Flags: review?(Louie.Zhao)
Comment on attachment 156851 [details] [diff] [review] Patch v1 Louie should review this.
Attachment #156851 - Flags: review?(kyle.yuan) → review?(Louie.Zhao)
Attachment #156851 - Flags: review?(Louie.Zhao) → review+
Flags: blocking-aviary1.0? → blocking-aviary1.0+
Can someone with access to a 64-bit system confirm that this patch actually fixes the crash before we check it in to all the branches?
Comment on attachment 156851 [details] [diff] [review] Patch v1 Requesting approval for checking in the fix on aviary and 1.7 branches.
Attachment #156851 - Flags: approval1.7.x?
Attachment #156851 - Flags: approval-aviary?
> Can someone with access to a 64-bit system confirm that this patch actually > fixes the crash before we check it in to all the branches? Where is this confirmation?
Comment on attachment 156851 [details] [diff] [review] Patch v1 a=chofmann for the branches
Attachment #156851 - Flags: approval1.7.x?
Attachment #156851 - Flags: approval1.7.x+
Attachment #156851 - Flags: approval-aviary?
Attachment #156851 - Flags: approval-aviary+
The issue seems to be gone in rawhide's firefox-0.10.1-1.0PR1.10.
Landed on trunk and branches per confirmation that the fix works.
Status: NEW → RESOLVED
Closed: 21 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: