Bug 1398584

Summary: [Wayland] Crash when trying to run mate-terminal under GNOME
Product: [Fedora] Fedora Reporter: Milan Crha <mcrha>
Component: mate-terminalAssignee: Wolfgang Ulbrich <fedora>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-28 08:27:38 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:

Description Milan Crha 2016-11-25 10:54:51 UTC
While trying to reproduce bug #1398234, I thought of running mate-terminal under my GNOME session, which uses Wayland, and it led to a crash of the mate-terminal with the below backtrace:

Thread 1 "mate-terminal" received signal SIGSEGV, Segmentation fault.
slowly_and_stupidly_obtain_timestamp (xdisplay=0x5555557f9090) at terminal.c:449
449			xwindow =
(gdb) bt
#0  0x000055555556a98c in slowly_and_stupidly_obtain_timestamp (xdisplay=0x5555557f9090) at terminal.c:449
#1  0x00005555555679f3 in main (argc=<optimized out>, argv=<optimized out>) at terminal.c:605

Comment 1 Wolfgang Ulbrich 2016-11-25 17:07:47 UTC
Wayland is like disko 3000 for me.
I don't expect that MATE upstream will support wayland until this report reach EOL.
Patches are welcome.

Comment 2 Milan Crha 2016-11-28 07:57:40 UTC
Right, I see. I just wanted to mentioned it, when I noticed it. Feel free to close it.

With respect of a possible fix (even I do not know how much doable), it would be to not use X calls directly, but use some slightly higher-level API, like gtk+/gdk, which hides the details of what backend is used.

One thing is weird to me, I thought that xWayland would catch this, but my knowledge of Wayland internals is very close to yours.

Comment 3 Wolfgang Ulbrich 2016-11-28 08:15:18 UTC
Can you please open an upstream report for it with all neccessary infos like distro, distro version, m-t release?
https://github.com/mate-desktop/mate-terminal
Maybe it's possible to backport a change from gnome-terminal.
Not sure about, do we see X-wayland or wayland in f25 gnome default session.
And does gnome provide an X session as fallback.
By the way, someone told me that a lot of applications don't run in gnome any more for this reason.

Comment 4 Milan Crha 2016-11-28 08:20:20 UTC
(In reply to Wolfgang Ulbrich from comment #3)
> Can you please open an upstream report for it with all neccessary infos like
> distro, distro version, m-t release?
> https://github.com/mate-desktop/mate-terminal

Nope, I cannot, I do not have an account on github.

> And does gnome provide an X session as fallback.

Yes, you can choose whether run GNOME Shell with Wayland (default) or with X. At least gdm provides the options. I'm not currently sure how lightdm.

Comment 5 Wolfgang Ulbrich 2016-11-28 08:27:38 UTC
(In reply to Milan Crha from comment #4)
> (In reply to Wolfgang Ulbrich from comment #3)
> > Can you please open an upstream report for it with all neccessary infos like
> > distro, distro version, m-t release?
> > https://github.com/mate-desktop/mate-terminal
> 
> Nope, I cannot, I do not have an account on github.

OK, :-/
> 
> > And does gnome provide an X session as fallback.
> 
> Yes, you can choose whether run GNOME Shell with Wayland (default) or with
> X. At least gdm provides the options. I'm not currently sure how lightdm.