Closed Bug 1239962 Opened 9 years ago Closed 8 years ago

SIGBUS crash in libgtk-3.so.0.1400.5@0x360303

Categories

(Core :: Widget: Gtk, defect)

45 Branch
x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 1205199
Tracking Status
firefox45 blocking wontfix
firefox46 - affected
firefox47 - affected

People

(Reporter: calixte, Unassigned)

References

Details

(Keywords: crash, topcrash-linux)

Crash Data

This bug was filed from the Socorro interface and is 
report bp-48367756-4568-42d1-8874-dd42d2160115.
=============================================================

1) I report this bug for Sylvestre Ledru just to try Crash Stats.
2) The fx is stayed opened during two days without any activitiy and when Sylvestre came back fx crashed
3) Only few crashes for the moment.
Crash Signature: [@ libgtk-3.so.0.1400.5@0x360303] → [@ libgtk-3.so.0.1400.5@0x360303] [@ libgtk-3.so.0.1000.8@0x1df156] [@ libgtk-3.so.0.1000.8@0x293a31] [@ libgtk-3.so.0.1000.8@0x293ba1] [@ libgtk-3.so.0.1000.8@0x30a5f3] [@ libgtk-3.so.0.1000.8@0x30a813] [@ libgtk-3.so.0.1400.5@0x2e4151] [@ libgtk-…
As we are planning to ship with GTK 3 this year, I don't think we should be shipping with the topcrash.
Tracking for the reason Calixte mentioned.
Karl, Firefox 45 with gtk3 is crashing a lot on this bug.
It is one of the most important source of crashes for Firefox 45 in aurora.
Could you help here? Thanks
Flags: needinfo?(karlt)
Note that since we don't have symbols for those system libs, there may well be several different crashes, but we can't know.
All the SIGBUS crash reports I've seen with the signatures linked here have
similar short stacks.  The only comments I've found so far are:

"just closed the window while it was playing a youtube music video"

"Spotify Web crashed Firefox Nightly"
https://crash-stats.mozilla.com/report/index/c1ae1c25-2dc7-4991-b991-2b25d2160122

The only SIGSEGV report with signature linked here that seems to be related is
at 0x18 in 
https://crash-stats.mozilla.com/report/index/343e57a5-fd08-47cd-b116-b8d882160129
That stack is the same as a SIGBUS at 0x0 in
https://crash-stats.mozilla.com/report/index/96ff491b-a615-46ac-99bb-01dec2160129

Many of the signatures linked here have quite different looking SIGSEGV crash stacks and no SIGBUS reports.  I don't have a reason to believe they are related.

Taking libgtk-3-0_3.16.7-0ubuntu3_amd64.deb of Ubuntu Wily,

% /home/karl/moz/dev/obj/toolkit/crashreporter/google-breakpad/src/tools/linux/dump_syms/dump_syms usr/lib/x86_64-linux-gnu/libgtk-3.so.0.1600.7 2>/dev/null | grep MODULE
MODULE Linux x86_64 A70A00B4F80CF8FB855888B4E8EA0B660 libgtk-3.so.0.1600.7
% /home/karl/moz/dev/obj/toolkit/crashreporter/google-breakpad/src/tools/linux/dump_syms/dump_syms usr/lib/x86_64-linux-gnu/libgdk-3.so.0.1600.7 2>/dev/null | grep MODULE 
MODULE Linux x86_64 520E1B50883A2309F0C809D1931623CB0 libgdk-3.so.0.1600.7

https://crash-stats.mozilla.com/report/index/ecb01470-90e5-469d-bb7e-489952160115
is a typical SIGBUS crash report similar to that in comment 0, and has module
debug identifiers matching those above.

% addr2line -if -e usr/lib/debug/usr/lib/x86_64-linux-gnu/libgtk-3.so.0.1600.7 0x386a00
gtk_socket_filter_func
/build/gtk+3.0-pIzeMy/gtk+3.0-3.16.7/./gtk/gtksocket.c:1371
~/downloads/ubuntu/wily% addr2line -if -e usr/lib/debug/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.1600.7 0x58290
gdk_event_apply_filters
/build/gtk+3.0-pIzeMy/gtk+3.0-3.16.7/./gdk/x11/gdkeventsource.c:81
~/downloads/ubuntu/wily% addr2line -if -e usr/lib/debug/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.1600.7 0x5856c
gdk_event_source_translate_event
/build/gtk+3.0-pIzeMy/gtk+3.0-3.16.7/./gdk/x11/gdkeventsource.c:202
_gdk_x11_display_queue_events
/build/gtk+3.0-pIzeMy/gtk+3.0-3.16.7/./gdk/x11/gdkeventsource.c:338

This looks like an issue with the browser code hosting windowed plugins.
I'll see if I can work out more.
I'm going to disable Mozilla crash reports in Fedora Firefox to catch those crashes by Fedora ABRT tool which is able to get debuginfo from Gtk3 and other local backages.
Depends on: 1205199
I'm removing signatures that look unrelated to comment 0 (bug 1205199).
If any of the other signatures are top crashers then we'll need to resolve
them separately, which would be better tracked in a different bug report.

(In reply to Martin Stránský from comment #6)
> I'm going to disable Mozilla crash reports in Fedora Firefox to catch those
> crashes by Fedora ABRT tool which is able to get debuginfo from Gtk3 and
> other local backages.

Thanks, Martin.  That makes a lot of sense while the topcrashers are crashing
with system libraries on the stack.
Crash Signature: [@ libgtk-3.so.0.1400.5@0x360303] [@ libgtk-3.so.0.1000.8@0x1df156] [@ libgtk-3.so.0.1000.8@0x293a31] [@ libgtk-3.so.0.1000.8@0x293ba1] [@ libgtk-3.so.0.1000.8@0x30a5f3] [@ libgtk-3.so.0.1000.8@0x30a813] [@ libgtk-3.so.0.1400.5@0x2e4151] [@ libgtk-… → [@ libgtk-3.so.0.1400.5@0x360303] [@ libgtk-3.so.0.1000.8@0x30a5f3] [@ libgtk-3.so.0.1000.8@0x30a813] [@ libgtk-3.so.0.1400.5@0x360363] [@ libgtk-3.so.0.1600.6@0x385fb0] [@ libgtk-3.so.0.1600.7 (deleted)@0x385fe0] [@ libgtk-3.so.0.1600.7@0x385fe0] …
Flags: needinfo?(karlt)
Summary: crash in libgtk-3.so.0.1400.5@0x360303 → SIGBUS crash in libgtk-3.so.0.1400.5@0x360303
Tracking for 46+ since this is a topcrash.
We should add symbols to soccoro for Gtk+3 from common versions on e.g. Ubuntu. Ted, can we do that easily?
Flags: needinfo?(ted)
(In reply to Mike Hommey [:glandium] from comment #9)
> We should add symbols to soccoro for Gtk+3 from common versions on e.g.
> Ubuntu. Ted, can we do that easily?

I have scripts for doing this for Ubuntu packages:
https://github.com/luser/linux-symbol-scraping/

It wouldn't be hard to tweak them to fetch just specific packages. I assume it wouldn't be that hard to scrape symbols from Fedora RPMs either, it's just a matter of locating them, unpacking them, running dump_syms.
Flags: needinfo?(ted)
We disabled GTK 3 in 45, blocking 46 now.
This one looks interesting:

https://retrace.fedoraproject.org/faf/reports/1000357/

[...]
5 RefPtr<nsWindow>::AddRefTraits<nsWindow>::AddRef(nsWindow*) 
6 nsWindow::SetNonXEmbedPluginFocus() 
7 plugin_window_filter_func
8 gdk_event_apply_filters
9 _gdk_x11_display_queue_events
We "just" have the crash reports and no way to reproduce this locally?
The reports in comment 0, 5, and 12 should be fixed by the patch in bug 1205199, thanks.

I don't know what is happening in comment 11, but PluginType_NONXEMBED is rare, which acroread being the most notable, but that is disabled by default.  Anyway, that seems to be quite a different bug.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
(In reply to Karl Tomlinson (ni?:karlt) from comment #15)
> I don't know what is happening in comment 11, but PluginType_NONXEMBED is

Comment 13, I mean.
Tracking in bug 1205199 instead since this is now marked as a duplicate.
You need to log in before you can comment on or make changes to this bug.