Page MenuHomePhabricator

Enlightenment 0.22.1 crash when lauching two X sessions
Closed, WontfixPublic

Description

Hi
Arch Linux system, self compiled enlightenment-0.22.1 and efl-1.20.6
Bug description
Enlightenment 0.22.1 crash when lauching two X sessions for two different users

  • I launch first X session for user1 with 'startx' in tty1
  • after few seconds, I launch second X session for user2 in tty2 with 'startx -- :1'
  • I can work or/and switch normally in tty1 and tty2 for few hours
  • after some hours, X user1 in tty1 crashes when i want to switch from X user2 to X user1
  • X user2 in tty2 didn't crash
  • I tested same procedure with xfce4: no crash

log from diff beginning to end
~/.local/share/Xorg.0.log.old
[ 28893.768] () Option "fd" "20"
[ 28893.768] (II) event5 - (II) Power Button: (II) device removed
[ 28893.768] (
) Option "fd" "23"
[ 28893.768] (II) event6 - (II) Asus Wireless Radio Control: (II) device removed
[ 28893.768] () Option "fd" "24"
[ 28893.768] (II) event11 - (II) Video Bus: (II) device removed
[ 28893.768] (
) Option "fd" "25"
[ 28893.768] (II) event12 - (II) Video Bus: (II) device removed
[ 28893.768] () Option "fd" "26"
[ 28893.768] (II) event4 - (II) Sleep Button: (II) device removed
[ 28893.768] (
) Option "fd" "27"
[ 28893.768] (II) event0 - (II) Logitech USB-PS/2 Optical Mouse: (II) device removed
[ 28893.768] () Option "fd" "28"
[ 28893.768] (II) event1 - (II) wired keyboard: (II) device removed
[ 28893.768] (
) Option "fd" "29"
[ 28893.768] () Option "fd" "30"
[ 28893.768] (II) event9 - (II) USB Camera: (II) device removed
[ 28893.768] (
) Option "fd" "31"
[ 28893.768] (II) event10 - (II) Asus WMI hotkeys: (II) device removed
[ 28893.768] () Option "fd" "29"
[ 28893.768] (II) event2 - (II) wired keyboard: (II) device removed
[ 28893.768] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 28893.818] (II) systemd-logind: got pause for 13:64
[ 28893.818] (II) systemd-logind: got pause for 13:73
[ 28893.818] (II) systemd-logind: got pause for 13:65
[ 28893.818] (II) systemd-logind: got pause for 13:75
[ 28893.818] (II) systemd-logind: got pause for 13:66
[ 28893.818] (II) systemd-logind: got pause for 13:74
[ 28893.818] (II) systemd-logind: got pause for 13:69
[ 28893.818] (II) systemd-logind: got pause for 13:76
[ 28893.818] (II) systemd-logind: got pause for 226:0
[ 28893.818] (II) systemd-logind: got pause for 13:68
[ 28893.818] (II) systemd-logind: got pause for 13:70
[ 28961.420] (II) systemd-logind: got resume for 13:64
[ 28961.480] (II) systemd-logind: got resume for 13:73
[ 28961.530] (II) systemd-logind: got resume for 13:65
[ 28961.580] (II) systemd-logind: got resume for 13:75
[ 28961.650] (II) systemd-logind: got resume for 13:66
[ 28961.690] (II) systemd-logind: got resume for 13:74
[ 28961.750] (II) systemd-logind: got resume for 13:69
[ 28961.800] (II) systemd-logind: got resume for 13:76
[ 28961.800] (II) systemd-logind: got resume for 226:0
[ 28961.800] (II) AIGLX: Resuming AIGLX clients after VT switch
[ 28961.858] (II) modeset(0): EDID vendor "CMN", prod id 5928
[ 28961.858] (II) modeset(0): Printing DDC gathered Modelines:
[ 28961.858] (II) modeset(0): Modeline "1600x900"x0.0 107.80 1600 1648 1680 1940 900 903 908 926 +hsync -vsync (55.6 kHz eP)
[ 28961.873] (II) event5 - (II) Power Button: (II) is tagged by udev as: Keyboard
[ 28961.873] (II) event5 - (II) Power Button: (II) device is a keyboard
[ 28961.873] (II) event11 - (II) Video Bus: (II) is tagged by udev as: Keyboard
[ 28961.873] (II) event11 - (II) Video Bus: (II) device is a keyboard
[ 28961.873] (II) event12 - (II) Video Bus: (II) is tagged by udev as: Keyboard
[ 28961.873] (II) event12 - (II) Video Bus: (II) device is a keyboard
[ 28961.874] (II) event0 - (II) Logitech USB-PS/2 Optical Mouse: (II) is tagged by udev as: Mouse
[ 28961.874] (II) event0 - (II) Logitech USB-PS/2 Optical Mouse: (II) device set to 400 DPI
[ 28961.874] (II) event0 - (II) Logitech USB-PS/2 Optical Mouse: (II) device is a pointer
[ 28961.874] (II) event1 - (II) wired keyboard: (II) is tagged by udev as: Keyboard
[ 28961.874] (II) event1 - (II) wired keyboard: (II) device is a keyboard
[ 28961.874] (II) event2 - (II) wired keyboard: (II) is tagged by udev as: Keyboard
[ 28961.874] (II) event2 - (II) wired keyboard: (II) device is a keyboard
[ 28961.875] (II) event9 - (II) USB Camera: (II) is tagged by udev as: Keyboard
[ 28961.875] (II) event9 - (II) USB Camera: (II) device is a keyboard
[ 28961.875] (II) event10 - (II) Asus WMI hotkeys: (II) is tagged by udev as: Keyboard
[ 28961.875] (II) event10 - (II) Asus WMI hotkeys: (II) device is a keyboard
[ 28961.880] (II) systemd-logind: got resume for 13:68
[ 28961.880] (II) event4 - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[ 28961.880] (II) event4 - (II) Sleep Button: (II) device is a keyboard
[ 28961.940] (II) systemd-logind: got resume for 13:70
[ 28961.941] (II) event6 - (II) Asus Wireless Radio Control: (II) is tagged by udev as: Keyboard
[ 28961.941] (II) event6 - (II) Asus Wireless Radio Control: (II) device is a keyboard
[ 29042.387] (II) modeset(0): EDID vendor "CMN", prod id 5928
[ 29042.387] (II) modeset(0): Printing DDC gathered Modelines:
[ 29042.387] (II) modeset(0): Modeline "1600x900"x0.0 107.80 1600 1648 1680 1940 900 903 908 926 +hsync -vsync (55.6 kHz eP)
[ 29042.393] (II) modeset(0): EDID vendor "CMN", prod id 5928
[ 29042.394] (II) modeset(0): Printing DDC gathered Modelines:
[ 29042.394] (II) modeset(0): Modeline "1600x900"x0.0 107.80 1600 1648 1680 1940 900 903 908 926 +hsync -vsync (55.6 kHz eP)
[ 29062.015] (
) Option "fd" "29"
[ 29062.015] (II) event5 - (II) Power Button: (II) device removed
[ 29062.015] () Option "fd" "34"
[ 29062.015] (II) event6 - (II) Asus Wireless Radio Control: (II) device removed
[ 29062.015] (
) Option "fd" "26"
[ 29062.015] (II) event11 - (II) Video Bus: (II) device removed
[ 29062.015] () Option "fd" "31"
[ 29062.015] (II) event12 - (II) Video Bus: (II) device removed
[ 29062.015] (
) Option "fd" "32"
[ 29062.015] (II) event4 - (II) Sleep Button: (II) device removed
[ 29062.015] () Option "fd" "23"
[ 29062.015] (II) event0 - (II) Logitech USB-PS/2 Optical Mouse: (II) device removed
[ 29062.015] (
) Option "fd" "25"
[ 29062.015] (II) event1 - (II) wired keyboard: (II) device removed
[ 29062.015] () Option "fd" "27"
[ 29062.015] (
) Option "fd" "24"
[ 29062.015] (II) event9 - (II) USB Camera: (II) device removed
[ 29062.015] () Option "fd" "28"
[ 29062.015] (II) event10 - (II) Asus WMI hotkeys: (II) device removed
[ 29062.015] (
) Option "fd" "27"
[ 29062.016] (II) event2 - (II) wired keyboard: (II) device removed
[ 29062.016] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 29062.033] (II) systemd-logind: got pause for 13:64
[ 29062.034] (II) systemd-logind: got pause for 13:73
[ 29062.034] (II) systemd-logind: got pause for 13:65
[ 29062.034] (II) systemd-logind: got pause for 13:75
[ 29062.034] (II) systemd-logind: got pause for 13:66
[ 29062.034] (II) systemd-logind: got pause for 13:74
[ 29062.034] (II) systemd-logind: got pause for 13:69
[ 29062.034] (II) systemd-logind: got pause for 13:76
[ 29062.034] (II) systemd-logind: got pause for 226:0
[ 29062.034] (II) systemd-logind: got pause for 13:68
[ 29062.034] (II) systemd-logind: got pause for 13:70
[ 29140.180] (II) systemd-logind: got resume for 13:64
[ 29140.250] (II) systemd-logind: got resume for 13:73
[ 29140.340] (II) systemd-logind: got resume for 13:65
[ 29140.380] (II) systemd-logind: got resume for 13:75
[ 29140.450] (II) systemd-logind: got resume for 13:66
[ 29140.490] (II) systemd-logind: got resume for 13:74
[ 29140.550] (II) systemd-logind: got resume for 13:69
[ 29140.630] (II) systemd-logind: got resume for 13:76
[ 29140.630] (II) systemd-logind: got resume for 226:0
[ 29140.630] (II) AIGLX: Resuming AIGLX clients after VT switch
[ 29140.685] (II) modeset(0): EDID vendor "CMN", prod id 5928
[ 29140.685] (II) modeset(0): Printing DDC gathered Modelines:
[ 29140.685] (II) modeset(0): Modeline "1600x900"x0.0 107.80 1600 1648 1680 1940 900 903 908 926 +hsync -vsync (55.6 kHz eP)
[ 29140.700] (II) event5 - (II) Power Button: (II) is tagged by udev as: Keyboard
[ 29140.700] (II) event5 - (II) Power Button: (II) device is a keyboard
[ 29140.700] (II) event11 - (II) Video Bus: (II) is tagged by udev as: Keyboard
[ 29140.700] (II) event11 - (II) Video Bus: (II) device is a keyboard
[ 29140.700] (II) event12 - (II) Video Bus: (II) is tagged by udev as: Keyboard
[ 29140.700] (II) event12 - (II) Video Bus: (II) device is a keyboard
[ 29140.701] (II) event0 - (II) Logitech USB-PS/2 Optical Mouse: (II) is tagged by udev as: Mouse
[ 29140.701] (II) event0 - (II) Logitech USB-PS/2 Optical Mouse: (II) device set to 400 DPI
[ 29140.701] (II) event0 - (II) Logitech USB-PS/2 Optical Mouse: (II) device is a pointer
[ 29140.701] (II) event1 - (II) wired keyboard: (II) is tagged by udev as: Keyboard
[ 29140.701] (II) event1 - (II) wired keyboard: (II) device is a keyboard
[ 29140.701] (II) event2 - (II) wired keyboard: (II) is tagged by udev as: Keyboard
[ 29140.701] (II) event2 - (II) wired keyboard: (II) device is a keyboard
[ 29140.702] (II) event9 - (II) USB Camera: (II) is tagged by udev as: Keyboard
[ 29140.702] (II) event9 - (II) USB Camera: (II) device is a keyboard
[ 29140.702] (II) event10 - (II) Asus WMI hotkeys: (II) is tagged by udev as: Keyboard
[ 29140.702] (II) event10 - (II) Asus WMI hotkeys: (II) device is a keyboard
[ 29140.705] (II) systemd-logind: got resume for 13:68
[ 29140.706] (II) event4 - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[ 29140.706] (II) event4 - (II) Sleep Button: (II) device is a keyboard
[ 29140.740] (II) systemd-logind: got resume for 13:70
[ 29140.740] (II) event6 - (II) Asus Wireless Radio Control: (II) is tagged by udev as: Keyboard
[ 29140.740] (II) event6 - (II) Asus Wireless Radio Control: (II) device is a keyboard
[ 30375.201] () Option "fd" "31"
[ 30375.201] (II) event5 - (II) Power Button: (II) device removed
[ 30375.201] (
) Option "fd" "39"
[ 30375.201] (II) event6 - (II) Asus Wireless Radio Control: (II) device removed
[ 30375.201] () Option "fd" "27"
[ 30375.201] (II) event11 - (II) Video Bus: (II) device removed
[ 30375.201] (
) Option "fd" "32"
[ 30375.201] (II) event12 - (II) Video Bus: (II) device removed
[ 30375.201] () Option "fd" "38"
[ 30375.201] (II) event4 - (II) Sleep Button: (II) device removed
[ 30375.201] (
) Option "fd" "24"
[ 30375.202] (II) event0 - (II) Logitech USB-PS/2 Optical Mouse: (II) device removed
[ 30375.202] () Option "fd" "26"
[ 30375.202] (II) event1 - (II) wired keyboard: (II) device removed
[ 30375.202] (
) Option "fd" "28"
[ 30375.202] () Option "fd" "25"
[ 30375.202] (II) event9 - (II) USB Camera: (II) device removed
[ 30375.202] (
) Option "fd" "29"
[ 30375.202] (II) event10 - (II) Asus WMI hotkeys: (II) device removed
[ 30375.202] (**) Option "fd" "28"
[ 30375.202] (II) event2 - (II) wired keyboard: (II) device removed
[ 30375.203] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 30375.205] (II) systemd-logind: got pause for 13:64
[ 30375.205] (II) systemd-logind: got pause for 13:73
[ 30375.205] (II) systemd-logind: got pause for 13:65
[ 30375.205] (II) systemd-logind: got pause for 13:75
[ 30375.206] (II) systemd-logind: got pause for 13:66
[ 30375.206] (II) systemd-logind: got pause for 13:74
[ 30375.206] (II) systemd-logind: got pause for 13:69
[ 30375.206] (II) systemd-logind: got pause for 13:76
[ 30375.206] (II) systemd-logind: got pause for 226:0
[ 30375.206] (II) systemd-logind: got pause for 13:68
[ 30375.206] (II) systemd-logind: got pause for 13:70
[ 33526.680] (II) systemd-logind: got resume for 13:64
[ 33526.750] (II) systemd-logind: got resume for 13:73
[ 33526.790] (II) systemd-logind: got resume for 13:65
[ 33526.830] (II) systemd-logind: got resume for 13:75
[ 33526.870] (II) systemd-logind: got resume for 13:66
[ 33526.910] (II) systemd-logind: got resume for 13:74
[ 33526.950] (II) systemd-logind: got resume for 13:69
[ 33527.000] (II) systemd-logind: got resume for 13:76
[ 33527.000] (II) systemd-logind: got resume for 226:0
[ 33527.000] (II) AIGLX: Resuming AIGLX clients after VT switch
[ 33527.069] (II) modeset(0): EDID vendor "CMN", prod id 5928
[ 33527.069] (II) modeset(0): Printing DDC gathered Modelines:
[ 33527.069] (II) modeset(0): Modeline "1600x900"x0.0 107.80 1600 1648 1680 1940 900 903 908 926 +hsync -vsync (55.6 kHz eP)
[ 33527.071] (EE)
[ 33527.071] (EE) Backtrace:
[ 33527.111] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x5619aa2dc169]
[ 33527.111] (EE) 1: /usr/lib/libpthread.so.0 (funlockfile+0x50) [0x7fc716f20dff]
[ 33527.112] (EE) 2: /usr/lib/xorg-server/Xorg (RamDacHandleColormaps+0x69e) [0x5619aa1fa42e]
[ 33527.112] (EE) 3: /usr/lib/xorg-server/Xorg (RamDacHandleColormaps+0x8bb) [0x5619aa1fa94b]
[ 33527.112] (EE) 4: /usr/lib/xorg-server/Xorg (xf86VTEnter+0x12b) [0x5619aa1b88ab]
[ 33527.112] (EE) 5: /usr/lib/xorg-server/Xorg (xf86RemoveSIGIOHandler+0xb78) [0x5619aa1de378]
[ 33527.113] (EE) 6: /usr/lib/xorg-server/Xorg (xf86RemoveSIGIOHandler+0xe95) [0x5619aa1de755]
[ 33527.113] (EE) 7: /usr/lib/libdbus-1.so.3 (dbus_connection_dispatch+0x2d5) [0x7fc718f70ff5]
[ 33527.113] (EE) 8: /usr/lib/libdbus-1.so.3 (dbus_connection_dispatch+0x719) [0x7fc718f71ac9]
[ 33527.114] (EE) 9: /usr/lib/xorg-server/Xorg (config_fini+0x471) [0x5619aa1d7701]
[ 33527.114] (EE) 10: /usr/lib/xorg-server/Xorg (OsCleanup+0x621) [0x5619aa2dd0d1]
[ 33527.114] (EE) 11: /usr/lib/xorg-server/Xorg (WaitForSomething+0x1fb) [0x5619aa2d59db]
[ 33527.114] (EE) 12: /usr/lib/xorg-server/Xorg (SendErrorToClient+0x113) [0x5619aa176043]
[ 33527.114] (EE) 13: /usr/lib/xorg-server/Xorg (InitFonts+0x420) [0x5619aa17a2c0]
[ 33527.114] (EE) 14: /usr/lib/libc.so.6 (__libc_start_main+0xea) [0x7fc716b78f4a]
[ 33527.114] (EE) 15: /usr/lib/xorg-server/Xorg (_start+0x2a) [0x5619aa163f2a]
[ 33527.114] (EE)
[ 33527.114] (EE) Segmentation fault at address 0x800000042
[ 33527.114] (EE)
Fatal server error:
[ 33527.115] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 33527.115] (EE)
[ 33527.115] (EE)
Please consult the The X.Org Foundation support

	 at http://wiki.x.org

for help.
[ 33527.115] (EE) Please also check the log file at "/home/fre/.local/share/xorg/Xorg.0.log" for additional information.
[ 33527.115] (EE)
[ 33527.116] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 33527.137] (EE) Server terminated with error (1). Closing log file.

zmike closed this task as Wontfix.Jan 11 2018, 12:05 PM

If your Xserver is crashing for any reason, this is an Xserver bug. It's irrelevant that it doesn't happen with XFCE, the crash is still in the Xserver.

Yes but only Enlightenment causes the Xserver crash...

As I said, that's irrelevant. The Xserver should never crash.

raster added a subscriber: raster.Jan 16 2018, 8:39 PM

@zmike is right. IT's a bug inside Xorg or dependent libraries. if E crashed, then it would be an bug in E or its dependent libraries too (both cases exclude the possibility of the most crazy case of a kernel bug where an app crashes because the kernel mis-mapped pages or something...).

Xservers provide a front-door of protocol and operations, all of them are valid things to do in that valid == they will not cause the Xserver to crash. If it does it's a bug on the Xserver side. Ask the Xorg developers. Enlightenment is just doing valid things.

Also just as an aside. vt switching is not even done by the WM. It's totally an internal matter inside the Xserver. The Xserver directly sees the keys pressed and it, all on its own, decides to switch VT's. E has no idea it is happening and isn't involved. No WM or compositor is involved. It may be that Enlightenment just has set up a condition that triggers this bug. This is incredibly common in software, but the bug is where we're saying it is. XFCE isn't running a compositor with a fairly complex rendering tree most likely. I haven't looked into XFCE lately but last I knew XFCE was commonly not even running a compositor at all, and I remember seeing a fairly simple one that just used Xrender I think, not OpenGL.

vt switching is not even done by the WM. It's totally an internal matter inside the Xserver

Yes but with e22+wayland, I can switch to tty or another user wayland session. So I'm waiting for wayland to be less buggy...

in the wayland case, e is doing the vt obtain/release work, not the xserver. when you are in x it's done by the xserver, which is kind of my point why this is an xserver bug. :) if e crashed when we switched vt's in wayland mode.. then we'd have to dig for the bug in e (it may not be in e - may be in the opengl libs, or drm libs too... but we'd need to identify that). :)