Bug 917422

Summary: gnome-shell segfaults in libcairo
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: gnome-shellAssignee: Owen Taylor <otaylor>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: admiller, fmuellner, otaylor, samkraju, walters
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-05 19:36:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
an output from gdb showing the crash
none
xz compressed core file produced by gnome-shell none

Description Michal Jaegermann 2013-03-04 01:02:05 UTC
Created attachment 704720 [details]
an output from gdb showing the crash

Description of problem:

On one machine and one account on it I am getting with an absolute repetability the following:


Core was generated by `/usr/bin/gnome-shell'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000030c6437a9c in _cairo_surface_is_image (surface=0x5159f50)
    at cairo-image-surface-inline.h:77
77          return surface->backend && surface->backend->type == CAIRO_SURFACE_TYPE_IMAGE;

To get a reasonable gdb output the following were installed:
gnome-shell-debuginfo.x86_64
cairo-debuginfo.x86_64
glib2-debuginfo.x86_64
clutter-gtk-debuginfo.x86_64
mutter-debuginfo.x86_64

The problems turns out to be like this:

(gdb) p *surface
$1 = {backend = 0x2000000001, device = 0x0, type = CAIRO_SURFACE_TYPE_COGL, 
  content = 0, ref_count = {ref_count = 0}, status = CAIRO_STATUS_SUCCESS, 
  unique_id = 85303152, serial = 0, damage = 0x5159f70, _finishing = 0, 
  finished = 0, is_clear = 0, has_font_options = 0, owns_device = 0, 
  user_data = {size = 3, num_elements = 0, element_size = 0, elements = 0x0}, 
  mime_data = {size = 0, num_elements = 0, element_size = 0, elements = 0x0}, 
  device_transform = {xx = 0, yx = 1, xy = 0, yy = 0, x0 = 0, y0 = 1}, 
  device_transform_inverse = {xx = -nan(0xf000000000000), yx = 
    2.5674283339672213e-316, xy = 2.4330298302178687e-316, yy = 
    9.4860604001519336e-322, x0 = 1.6304166312761136e-322, y0 = 
    -nan(0xbffea91cf91b8)}, device_transform_observers = {next = 0x1081, 
    prev = 0x0}, x_resolution = 1.6304166312761136e-322, y_resolution = 
    -nan(0xbffea91cb5478), x_fallback_resolution = -nan(0xbffea906ebf30), 
  y_fallback_resolution = -nan(0xbffea7e431048), snapshot_of = 0x21, 
  snapshot_detach = 0xfffbffea91cb5478, snapshots = {next = 
    0xfffbffea906ebf30, prev = 0xfffbffea7e429ab0}, snapshot = {next = 0x31, 
    prev = 0xfffbffea91cb51b8}, font_options = {antialias = 2415958152, 
    subpixel_order = 4294705130, lcd_filter = CAIRO_LCD_FILTER_DEFAULT, 
    hint_style = CAIRO_HINT_STYLE_DEFAULT, hint_metrics = 
    CAIRO_HINT_METRICS_DEFAULT, round_glyph_positions = 
    CAIRO_ROUND_GLYPH_POS_DEFAULT}}
(gdb) p *surface->backend
Cannot access memory at address 0x2000000001

... and an attempt to deference a memory at 0x2000000001 is causing a segfault.

A whole backtrace (65 frames), a listing of a few frames and xz compressed core (the original size 184815616 bytes) is attached

Version-Release number of selected component (if applicable):
gnome-shell-3.6.3.1-1.fc18.x86_64 but earlier versions were doing the same

How reproducible:
always in very specific circumstances

Additional info:
This crash happens as follows:
gnome-shell-extension-weather has "Locations" switcher on its display which pops-out after clicking on the icon on a gnome-shell panel.  An attempt to click on those "Locations" is causing an instant segfault.  After the first failure of that sort gnome-shell recovers and restarts but repeating that action will likely cause a total crash of the whole session.

On the same installation another account does not suffer from that problem; also the same setup on other machines seems to work fine.  Only the one specific has this trouble.  It is using a background no other account is using but switching to a different background is not working around the issue.

Comment 1 Michal Jaegermann 2013-03-04 01:03:45 UTC
Created attachment 704721 [details]
xz compressed core file produced by gnome-shell

Comment 2 Michal Jaegermann 2013-03-04 21:59:29 UTC
I repeated the problem on a different machine; and even on i386 architecture as opposed to x86_64.  It looks like that this crash happens if and only if gnome-shell-theme-gaia is in use and not with any other Fedora repos available themes.  Still this is gnome-shell which ultimately segfaults.

Comment 3 Fedora End Of Life 2013-12-21 11:49:57 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2014-02-05 19:36:55 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.