Closed Bug 1385693 Opened 7 years ago Closed 3 years ago

firefox crashes when saving a file if glib is compiled with --enable-gc-friendly.

Categories

(Core :: Widget: Gtk, defect, P3)

55 Branch
Unspecified
Linux
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox57 --- ?
firefox58 --- ?

People

(Reporter: ht990332, Unassigned)

References

Details

(Whiteboard: glib, enable-gc-friendly)

Attachments

(1 file)

Attached file gdb.txt
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/604.1 (KHTML, like Gecko) Version/11.0 Safari/604.1 Epiphany/3.24.3

Steps to reproduce:

Firefox crashes when using the gtk3 file chooser.
To reproduce, you need gtk3 3.22.17 and glib 2.53.x (I use 2.53.4).
Note: This only happens in firefox. epiphany browser, libreoffice, and native gtk3 applications do not crash.
I am using official mozilla build.


Actual results:

I am attaching the backtrace.
temporary copy with syntax highlighting https://paste.gnome.org/psbmdcotx
Severity: normal → critical
Component: Untriaged → Widget: Gtk
OS: Unspecified → Linux
Product: Firefox → Core
Sorry for the noise. This was something I missed up locally in glib. It's not a glib or firefox bug.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Reopening: I found out how to easily reproduce.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Summary: firefox crashes when saving a file → firefox crashes when saving a file if glib is compiled with --enable-gc-friendly.
Would you provide the steps to reproduce this? Thank you.
Flags: needinfo?(me)
Keywords: steps-wanted
Sure.
- Compile glib 2.54 with -g cflag (-g enables a debug build) and --enable-gc-friendly ./configure option.
- Open firefox and some website such as https://bugzilla.mozilla.org/show_bug.cgi?id=1385693
- Press ctrl-s on your keyboard and notice the frozen gtk+ file dialog.
- wait a few seconds and firefox crashes.
Native gtk+ applications can still use the file dialog just fine. Only Firefox breaks.

Now remove the --enable-gc-friendly ./configure option in glib and firefox does not crash anymore.
Flags: needinfo?(me)
Tracy, let me know what you want to do with this? Is this now a build config bug on other platforms?
Flags: needinfo?(twalker)
It is probably related to how Firefox uses the native gtk+ file chooser dialog. Gtk+ pulls in glib/gio.
See Also: → 1345921
Flags: needinfo?(twalker)
Priority: -- → P2
Whiteboard: glib, enable-gc-friendly
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3

Hey Hussam,
Can you still reproduce this issue or should we close it?

Flags: needinfo?(ht990332)

(In reply to Andrei Purice from comment #9)

Hey Hussam,
Can you still reproduce this issue or should we close it?

You can close it since the GC friendly option is gone in glib when they ported away from autotools.

Flags: needinfo?(ht990332)
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: