Bug 1200439 - [abrt] gnome-shell: output_free(): gnome-shell killed by SIGSEGV
Summary: [abrt] gnome-shell: output_free(): gnome-shell killed by SIGSEGV
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-shell
Version: 22
Hardware: x86_64
OS: Unspecified
urgent
unspecified
Target Milestone: ---
Assignee: Owen Taylor
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:9a1515077f50429589e79d387bd...
: 1134133 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-10 15:02 UTC by Trevor Davenport
Modified: 2016-12-08 21:59 UTC (History)
49 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 20:16:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (40.03 KB, text/plain)
2015-03-10 15:02 UTC, Trevor Davenport
no flags Details
File: cgroup (284 bytes, text/plain)
2015-03-10 15:02 UTC, Trevor Davenport
no flags Details
File: core_backtrace (8.37 KB, text/plain)
2015-03-10 15:02 UTC, Trevor Davenport
no flags Details
File: dso_list (14.40 KB, text/plain)
2015-03-10 15:02 UTC, Trevor Davenport
no flags Details
File: environ (902 bytes, text/plain)
2015-03-10 15:02 UTC, Trevor Davenport
no flags Details
File: limits (1.29 KB, text/plain)
2015-03-10 15:02 UTC, Trevor Davenport
no flags Details
File: maps (68.52 KB, text/plain)
2015-03-10 15:02 UTC, Trevor Davenport
no flags Details
File: open_fds (616 bytes, text/plain)
2015-03-10 15:02 UTC, Trevor Davenport
no flags Details
File: proc_pid_status (958 bytes, text/plain)
2015-03-10 15:02 UTC, Trevor Davenport
no flags Details
File: var_log_messages (3.92 KB, text/plain)
2015-03-10 15:02 UTC, Trevor Davenport
no flags Details
strace output (156.77 KB, text/plain)
2015-07-22 12:37 UTC, Bill
no flags Details

Description Trevor Davenport 2015-03-10 15:02:06 UTC
Description of problem:
Tried to log in  to a gnome-wayland session from gdm.  

Version-Release number of selected component:
gnome-shell-3.15.91-1.fc22

Additional info:
reporter:       libreport-2.4.0
backtrace_rating: 4
cmdline:        /usr/bin/gnome-shell --wayland --display-server
crash_function: output_free
executable:     /usr/bin/gnome-shell
kernel:         4.0.0-0.rc1.git0.1.fc22.x86_64
runlevel:       N 5
type:           CCpp
uid:            1006

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 output_free at winsys/cogl-winsys-egl-kms.c:728
 #1 _cogl_winsys_egl_display_destroy at winsys/cogl-winsys-egl-kms.c:765
 #2 _cogl_winsys_display_destroy at winsys/cogl-winsys-egl.c:441
 #3 _cogl_winsys_display_setup at winsys/cogl-winsys-egl.c:484
 #4 cogl_display_setup at ./cogl-display.c:154
 #5 cogl_renderer_check_onscreen_template at ./cogl-renderer.c:369
 #6 clutter_backend_real_create_context at /lib64/libclutter-1.0.so.0
 #7 _clutter_feature_init at /lib64/libclutter-1.0.so.0
 #8 clutter_init_real at /lib64/libclutter-1.0.so.0
 #9 post_parse_hook at /lib64/libclutter-1.0.so.0

Potential duplicate: bug 1015677

Comment 1 Trevor Davenport 2015-03-10 15:02:08 UTC
Created attachment 999982 [details]
File: backtrace

Comment 2 Trevor Davenport 2015-03-10 15:02:09 UTC
Created attachment 999983 [details]
File: cgroup

Comment 3 Trevor Davenport 2015-03-10 15:02:10 UTC
Created attachment 999984 [details]
File: core_backtrace

Comment 4 Trevor Davenport 2015-03-10 15:02:11 UTC
Created attachment 999985 [details]
File: dso_list

Comment 5 Trevor Davenport 2015-03-10 15:02:11 UTC
Created attachment 999986 [details]
File: environ

Comment 6 Trevor Davenport 2015-03-10 15:02:12 UTC
Created attachment 999987 [details]
File: limits

Comment 7 Trevor Davenport 2015-03-10 15:02:13 UTC
Created attachment 999988 [details]
File: maps

Comment 8 Trevor Davenport 2015-03-10 15:02:14 UTC
Created attachment 999989 [details]
File: open_fds

Comment 9 Trevor Davenport 2015-03-10 15:02:15 UTC
Created attachment 999990 [details]
File: proc_pid_status

Comment 10 Trevor Davenport 2015-03-10 15:02:15 UTC
Created attachment 999991 [details]
File: var_log_messages

Comment 11 Marek Doležel 2015-05-25 17:30:32 UTC
Same here on Thinkpad t440p with intel 4600 gpu

Comment 12 Frank Büttner 2015-05-28 15:01:26 UTC
Same system.
The system was updated from F21.
Now it is unusable.

Comment 13 Frank Büttner 2015-06-02 18:02:23 UTC
I have found on google+ an workaround that let gnome via X11 work.
Simply yum remove xorg-x11-drv-libinput

Comment 14 Frank Büttner 2015-06-28 10:19:04 UTC
Tested today again.
Same problem, same workaround.

Comment 15 Frank Büttner 2015-06-30 13:03:39 UTC
Solved by last mutter update.

Comment 16 Yanko Kaneti 2015-07-01 16:01:12 UTC
FWIW, this crash pattern is reliably reproducible here when the computer (a HTPC in the making, ZOTAC Nano C321, Celeron 2961Y) starts with the TV (attached to the HDMI port) off.  The same combo works fine if the TV is on on startup or after a gdm service restart.

Comment 17 Bill 2015-07-14 05:51:19 UTC
Another user experienced a similar problem:

Happens on any attempt to login from GDM to gnome on Wayland session. Standard gnome session works fine.

reporter:       libreport-2.6.1
backtrace_rating: 4
cmdline:        /usr/bin/gnome-shell --wayland --display-server
crash_function: output_free
executable:     /usr/bin/gnome-shell
global_pid:     10050
kernel:         4.0.7-300.fc22.x86_64
package:        gnome-shell-3.16.3-1.fc22
reason:         gnome-shell killed by SIGSEGV
runlevel:       N 5
type:           CCpp
uid:            1000

Comment 18 mchalupa 2015-07-15 07:46:56 UTC
Cannot reproduce the problem, but I think that this could solve the segfault:
https://bugzilla.gnome.org/show_bug.cgi?id=752406

Anyway, if we solve the segfault the gnome won't start either, because according to backtrace something went wrong - it is either that platform display initialization failed or creating cogl context failed. But we'll get some nice error message and will know where to look next.

Comment 19 Bill 2015-07-15 11:12:48 UTC
I'm willing to test your patch if there are instructions on how to compile it and install on my laptop.

Comment 20 mchalupa 2015-07-20 14:13:25 UTC
Thanks for help,

Here are rpms for F22 built with this patch:
https://kojipkgs.fedoraproject.org/work/tasks/2179/10412179/

Comment 21 Bill 2015-07-21 00:50:02 UTC
I dowloaded cogl-1.20.0-3.fc22.x86_64.rpm  but dnf said nothing to do. I already seem to have that version. Maybe already in updates-testing?

Comment 22 mchalupa 2015-07-21 07:30:05 UTC
Yes, this rpm is the same version as the one in your system. You must use reinstall command:

$ sudo dnf reinstall path_to_rpm

Comment 23 Bill 2015-07-21 09:51:58 UTC
I did that and logged out and then selected gnome on wayland. Looks like there is still a problem as it returns to the gdm login screen. Logging in to the standard gnome session abrt is displaying the following:

GNOME Shell quit unexpectedly
The application encountered a problem and could not continue.

When I try to report the problem it fails as follows:

--- Running report_uReport ---
Unable to open './pkg_epoch': No such file or directory.
reporter-ureport failed with exit code 1
('report_uReport' exited with 1)

Then I click "upload for analysis:

--- Running report_EmergencyAnalysis ---
Compressing data
Sending /var/tmp/ccpp-2015-07-21-21:42:53-1445.new.tar.gz to https://retrace.fedoraproject.org/faf/dumpdirs/new/
Successfully sent /var/tmp/ccpp-2015-07-21-21:42:53-1445.new.tar.gz to https://retrace.fedoraproject.org/faf/dumpdirs/new/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>

So maybe abrt isn't working properly?

Comment 24 mchalupa 2015-07-22 08:14:51 UTC
Could you please attach output of journalctl after the crash?

Optionally, you could switch to tty and try running this:

$ gnome-session --session=gnome-wayland 2>&1 > gnome-session.log

and 

$ strace gnome-shell --wayland --display-server 2>&1 > gnome-shell.strace

(if you have strace installed) and attach the gnome-session.log and gnome-shell.strace

Thanks

Comment 25 mchalupa 2015-07-22 08:24:23 UTC
sorry, the commands should be

$ gnome-shell --wayland --display-server 2>gnome-shell.log
$ strace gnome-shell --wayland --display-server 2>gnome-shell.strace

actually, the one with strace is enough

Comment 26 Bill 2015-07-22 12:37:19 UTC
Created attachment 1054824 [details]
strace output

requested strace

Comment 27 Bill 2015-07-22 12:38:45 UTC
The gnome-shell.log output was just:

(gnome-shell:5492): Clutter-CRITICAL **: Unable to initialize Clutter: No currently active connector found

(gnome-shell:5492): mutter-ERROR **: Unable to initialize Clutter.

Comment 28 mchalupa 2015-07-23 14:34:48 UTC
Nice, now without the segfault we know what caused the gnome-shell to give up.

According to the strace it tried to connect to only one connector and it could fail either here:
http://cgit.freedesktop.org/mesa/drm/tree/xf86drmMode.c?id=2.4.61#n561
or here:
https://git.gnome.org/browse/cogl/tree/cogl/winsys/cogl-winsys-egl-kms.c#n389

Comment 29 Bill 2015-07-24 02:26:04 UTC
Could that be because my laptop has hybrid graphics. I believe it has Intel and Radeon but only the Intel driver is loaded? 

glxinfo | grep renderer
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 

sudo lshw -C display
*-display               
       description: VGA compatible controller
       product: 4th Gen Core Processor Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:31 memory:f5800000-f5bfffff memory:d0000000-dfffffff ioport:f000(size=64)

I don't know how to interpret the strace but I did see some references to radeon in there?

Comment 30 mchalupa 2015-07-27 15:39:35 UTC
> I don't know how to interpret the strace but I did see some references to
> radeon in there?

Yep, it looks like egl is using radeon card (which is card0). You can try export DRI_PRIME=1 (or DRI_PRIME=pci-0000_00_02_0 ) and then try to run gnome session.

Anyway, it looks like mesa's bug now, so I filled a bug there. There are people that know much more about it than me :)

https://bugs.freedesktop.org/show_bug.cgi?id=91474

Comment 31 mchalupa 2015-07-30 09:31:36 UTC
The patch fixing segfault was pushed to cogl master. Looking into the code reveals that it is not probably mesa's bug, but mutter's. It always uses /dev/dri/card0, which is the radeon one in this case. Then it makes clutter and subsequently cogl to use this card.

https://git.gnome.org/browse/mutter/tree/src/backends/native/meta-launcher.c#n270

Comment 33 mchalupa 2015-09-09 06:59:52 UTC
Patches that should fix this were pushed to master 79f755bf0fa

Comment 34 Bill 2015-09-09 07:07:41 UTC
Yes. I have been following the other thread on freedesktop.org. Thanks for your efforts on this. Even getting involved in another project you weren't all that familiar with. I presume this will arrive in fedora updates testing at some stage or will I have to wait for fedora 23?

Comment 35 Bill 2015-09-24 04:39:38 UTC
In the mean time I upgraded to fedora 23 (pre beta)  which still had the problem with selecting the wrong graphics card. However a new bunch of f23 updates arrived today including mutter, and various other gnome related stuff and I am happy to report that the problem appears to solved. I am posting this from a gnome on wayland session (f23 beta +). Well done and thanks to those involved in getting this sorted out.

Comment 36 mchalupa 2015-11-04 11:17:44 UTC
*** Bug 1134133 has been marked as a duplicate of this bug. ***

Comment 37 Fedora End Of Life 2016-07-19 20:16:50 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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.


Note You need to log in before you can comment on or make changes to this bug.