Bug#885318: systemd kills X or freezes it when logging out from last opened tty
Package: xserver-xorg-core Followup-For: Bug #885318 Dear Maintainer, You may want to check https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=+862781 (clear_console: Race condition for VT_WAITACTIVE.) Cheers
Bug#885318: systemd kills X or freezes it when logging out from last opened tty
Followup-For: Bug #885318 Thanks for your efforts on helping to solve this bug and others, Michael. Cheers
Bug#885318: systemd kills X or freezes it when logging out from last opened tty
Control: reassign -1 xserver-xorg-core Control: forcemerge 810660 -1 Am 29.12.2017 um 09:30 schrieb Awtul: > Changingif [ "$SHLVL" = 1 ] in .bash_logout to if [ "$SHLVL" = 2 ] > > solves my problem; now X doesn't crash and I can switch between my openbox > session (on tty1) > and other tty's (logged in or not) just fine. According to https://bugs.freedesktop.org/show_bug.cgi?id=93164, this can also be triggered via chvt, so I'm reassigning this to xserver-xorg-core and merging with the existing bug report to have all information in one place. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Bug#885318: systemd kills X or freezes it when logging out from last opened tty
Package: systemd Version: 236-1 Followup-For: Bug #885318 - my user shell is bash (echo $SHELL > /bin/bash) - .bash_logout: if [ "$SHLVL" = 1 ]; then [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q fi -- Changingif [ "$SHLVL" = 1 ] in .bash_logout to if [ "$SHLVL" = 2 ] solves my problem; now X doesn't crash and I can switch between my openbox session (on tty1) and other tty's (logged in or not) just fine. Cheers, Awtul
Bug#885318: systemd kills X or freezes it when logging out from last opened tty
Am 29.12.2017 um 08:55 schrieb Michael Biebl: > Which shell do you use as user shell. If it is bash, how does > ~/.bash_logout look like? > > Is the problem gone if you edit ~/.bash_logout as suggested in > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858073#10 Fwiw, my ~/.bash_logout looks like this: > # ~/.bash_logout > > clear With that, I'm not able to reproduce the problem you described. Afaics, this was changed in /etc/skel/.bash_logout and newly created users now get: > # ~/.bash_logout: executed by bash(1) when login shell exits. > > # when leaving the console clear the screen to increase privacy > > if [ "$SHLVL" = 1 ]; then > [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q > fi So, the problem seems the change to /usr/bin/clear_console. And surely enough, just running that command on tty2 freezes Xorg on tty1. So, it seems /usr/bin/clear_console is either doing something wrong, or something unexpected which Xorg does no properly cope with. See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810660 which was filed against bash but then reassigned to xserver-xorg-core. I guess we should reassign this issue here as well, either to bash (#858073) or xserver-xorg-core (#810660). Both seem to be about the same issue. -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Bug#885318: systemd kills X or freezes it when logging out from last opened tty
Am 29.12.2017 um 08:43 schrieb Awtul: > Package: systemd > Followup-For: Bug #885318 > > Hi, > > I may have reported this bug against the wrong package (systemd); I apologize > if that is the case (?). > I wonder if this bug should be merged with #858073 & #791342. > I tried to reproduce with fvwm and jwm but I wasn't able to do so; the issue > I describe is only reproducible > with fluxbox and openbox (in my system). #791342 provides a few interesting > links which doesn't absolve systemd :) > > I am not sure what to do to be able to help... > Which shell do you use as user shell. If it is bash, how does ~/.bash_logout look like? Is the problem gone if you edit ~/.bash_logout as suggested in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858073#10 -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Bug#885318: systemd kills X or freezes it when logging out from last opened tty
Package: systemd Followup-For: Bug #885318 Hi, I may have reported this bug against the wrong package (systemd); I apologize if that is the case (?). I wonder if this bug should be merged with #858073 & #791342. I tried to reproduce with fvwm and jwm but I wasn't able to do so; the issue I describe is only reproducible with fluxbox and openbox (in my system). #791342 provides a few interesting links which doesn't absolve systemd :) I am not sure what to do to be able to help... Cheers, Awtul -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.14.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE=es_ES:es (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) --- Xorg.0.log.old [53.556] X.Org X Server 1.19.5 Release Date: 2017-10-12 [53.556] X Protocol Version 11, Revision 0 [53.556] Build Operating System: Linux 4.9.0-4-amd64 x86_64 Debian [53.556] Current Operating System: Linux debian-sid 4.14.0-2-amd64 #1 SMP Debian 4.14.7-1 (2017-12-22) x86_64 [53.556] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.14.0-2-amd64 root=UUID=c10d2d0f-d956-44c6-93cc-2009ef1af9ae ro quiet fbcon=scrollback:1024k systemd.unit=multi-user.target [53.557] Build Date: 16 October 2017 12:28:38PM [53.557] xorg-server 2:1.19.5-1 (https://www.debian.org/support) [53.557] Current version of pixman: 0.34.0 [53.557]Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [53.557] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [53.559] (==) Log file: "/home/debian/.local/share/xorg/Xorg.0.log", Time: Fri Dec 29 01:29:46 2017 [53.622] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [53.659] (==) No Layout section. Using the first Screen section. [53.659] (==) No screen section available. Using defaults. [53.659] (**) |-->Screen "Default Screen Section" (0) [53.659] (**) | |-->Monitor "" [53.662] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [53.662] (==) Automatically adding devices [53.662] (==) Automatically enabling devices [53.662] (==) Automatically adding GPU devices [53.662] (==) Max clients allowed: 256, resource mask: 0x1f [53.691] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. [53.691]Entry deleted from font path. [53.696] (==) FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/100dpi/:unscaled, /usr/share/fonts/X11/75dpi/:unscaled, /usr/share/fonts/X11/Type1, /usr/share/fonts/X11/100dpi, /usr/share/fonts/X11/75dpi, built-ins [53.696] (==) ModulePath set to "/usr/lib/xorg/modules" [53.696] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [53.707] (II) Loader magic: 0x559a524e8de0 [53.707] (II) Module ABI versions: [53.707]X.Org ANSI C Emulation: 0.4 [53.707]X.Org Video Driver: 23.0 [53.707]X.Org XInput driver : 24.1 [53.707]X.Org Server Extension : 10.0 [53.709] (++) using VT number 1 [53.711] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_32 [53.712] (II) xfree86: Adding drm device (/dev/dri/card0) [53.714] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0 [53.719] (--) PCI:*(0:0:2:0) 80ee:beef:: rev 0, Mem @ 0xe000/16777216, BIOS @ 0x/131072 [53.719] (II) LoadModule: "glx" [53.753] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [53.864] (II) Module glx: vendor="X.Org Foundation" [53.864]compiled for 1.19.5, module version = 1.0.0 [53.864]ABI class: X.Org Server Extension, version 10.0 [53.864] (==) Matched vboxvideo as autoconfigured driver 0 [53.864] (==) Matched vboxvideo as autoconfigured driver 1 [53.864] (==) Matched modesetting as autoconfigured driver 2 [53.864] (==) Matched fbdev as autoconfigured driver 3 [53.864] (==) Matched vesa as autoconfigured driver 4 [53.864] (==) Assigned the driver to the xf86ConfigLayout [53.864] (II) LoadModule: "vboxvideo" [53.899] (WW) Warning, couldn't open module vboxvideo [53.899] (II) UnloadModule: "vboxvideo" [53.899] (II) Unloading vboxvideo [53.899] (EE) Failed to load module "vboxvideo" (module does not exist, 0) [53.899] (II) LoadModule: "modesetting" [53.899] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so [53.916]
Bug#885318: systemd kills X or freezes it when logging out from last opened tty
control: tags -1 + unreproducible Am 28.12.2017 um 21:35 schrieb Michael Biebl: >> Please, let me know if you need more info/details. > > Why do you suspect it is systemd which kills your X session? > Can you provide logs or error messages which would confirm such a guess? I tried to reproduce the problem with the steps you provided but did not encounter any problems. What I did: 1/ Boot with systemd.unit=multi-user.target (so no display manager like gdm is started) 2/ login as user on tty1 and start openbox via "startx /usr/bin/openbox" 3/ switch to tty2 via ctrl+alt+f2 and login. run a program then exit via "exit". → no freeze or lockup, X/openbox on tty1 keeps running on happily. -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Bug#885318: systemd kills X or freezes it when logging out from last opened tty
Control: tags -1 + moreinfo Am 26.12.2017 um 07:56 schrieb Nekki Nekki: > Package: systemd > Version: 236-1 > Severity: critical > > Dear maintainers, > > When using startx (no DM enabled) I suspect that systemd logs me out > from my X session > if it doesn't freezes it. I try to explain: I login in my openbox > session on tty1 using > startx, and in tty2 I run some program, say 'moc'. When I logout from > tty2, I get immediately > switched to tty1 and logged out from my openbox session. That is what > happens in my Sid guest. > I have same problem in my Sid host, but instead of being logged out from > my openbox session, > I get switched to it being in frozen state (Iget switched to tty1 and I > get my openbox session > frozen) and I am forced to use 'reisub'. > Note that: > 1. if I don't 'exit' my tty2 session, I can switch between tty1 (openbox > session) and tty2, > or any other Console, just fine. > 2. if I use a DM (I use wdm), I have no problems at all. > 3. I sent this bug report from my Sid guest. > > Please, let me know if you need more info/details. Why do you suspect it is systemd which kills your X session? Can you provide logs or error messages which would confirm such a guess? -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Bug#885318: systemd kills X or freezes it when logging out from last opened tty
Package: systemd Version: 236-1 Severity: critical Dear maintainers, When using startx (no DM enabled) I suspect that systemd logs me out from my X session if it doesn't freezes it. I try to explain: I login in my openbox session on tty1 using startx, and in tty2 I run some program, say 'moc'. When I logout from tty2, I get immediately switched to tty1 and logged out from my openbox session. That is what happens in my Sid guest. I have same problem in my Sid host, but instead of being logged out from my openbox session, I get switched to it being in frozen state (Iget switched to tty1 and I get my openbox session frozen) and I am forced to use 'reisub'. Note that: 1. if I don't 'exit' my tty2 session, I can switch between tty1 (openbox session) and tty2, or any other Console, just fine. 2. if I use a DM (I use wdm), I have no problems at all. 3. I sent this bug report from my Sid guest. Please, let me know if you need more info/details. Cheers, Awtul -- Package-specific info: -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.14.0-2-amd64 (SMP w/1 CPU core) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE=es_ES:es (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages systemd depends on: ii adduser 3.116 ii libacl1 2.2.52-3+b1 ii libapparmor12.11.1-4 ii libaudit1 1:2.8.2-1 ii libblkid1 2.30.2-0.1 ii libc6 2.25-5 ii libcap2 1:2.25-1.2 ii libcryptsetup4 2:1.7.5-1 ii libgcrypt20 1.8.1-4 ii libgpg-error0 1.27-5 ii libidn111.33-2.1 ii libip4tc0 1.6.1-2+b1 ii libkmod224-1 ii liblz4-10.0~r131-2+b1 ii liblzma55.2.2-1.3 ii libmount1 2.30.2-0.1 ii libpam0g1.1.8-3.6 ii libseccomp2 2.3.1-2.1 ii libselinux1 2.7-2 ii libsystemd0 236-1 ii mount 2.30.2-0.1 ii procps 2:3.3.12-3 ii util-linux 2.30.2-0.1 Versions of packages systemd recommends: ii dbus1.12.2-1 ii libpam-systemd 236-1 Versions of packages systemd suggests: ii policykit-10.105-18 pn systemd-container Versions of packages systemd is related to: pn dracut ii initramfs-tools 0.130 ii udev 236-1 -- Configuration Files: /etc/systemd/system.conf changed: [Manager] ShowStatus=yes -- no debconf information .xsession-errors Description: Binary data [ 2755.743] X.Org X Server 1.19.5 Release Date: 2017-10-12 [ 2755.746] X Protocol Version 11, Revision 0 [ 2755.747] Build Operating System: Linux 4.9.0-4-amd64 x86_64 Debian [ 2755.748] Current Operating System: Linux debian-sid 4.14.0-2-amd64 #1 SMP Debian 4.14.7-1 (2017-12-22) x86_64 [ 2755.748] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.14.0-2-amd64 root=UUID=c10d2d0f-d956-44c6-93cc-2009ef1af9ae ro quiet fbcon=scrollback:1024k [ 2755.751] Build Date: 16 October 2017 12:28:38PM [ 2755.752] xorg-server 2:1.19.5-1 (https://www.debian.org/support) [ 2755.753] Current version of pixman: 0.34.0 [ 2755.755] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 2755.755] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 2755.761] (==) Log file: "/home/debian/.local/share/xorg/Xorg.0.log", Time: Mon Dec 25 21:02:22 2017 [ 2755.762] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 2755.762] (==) No Layout section. Using the first Screen section. [ 2755.762] (==) No screen section available. Using defaults. [ 2755.762] (**) |-->Screen "Default Screen Section" (0) [ 2755.762] (**) | |-->Monitor "" [ 2755.763] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 2755.763] (==) Automatically adding devices [ 2755.763] (==) Automatically enabling devices [ 2755.763] (==) Automatically adding GPU devices [ 2755.763] (==) Max clients allowed: 256, resource mask: 0x1f [ 2755.763] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. [ 2755.763] Entry deleted from font path. [ 2755.763] (==) FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/100dpi/:unscaled, /usr/share/fonts/X11/75dpi/:unscaled, /usr/share/fonts/X11/Type1, /usr/share/fonts/X11/100dpi, /usr/share/fonts/X11/75dpi, built-ins [ 2755.763] (==) ModulePath set to "/usr/lib/xorg/modules" [ 2755.763] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 2755.763] (II) Loader magic: 0x559d6b743de0 [ 2755.763] (II) Module ABI versions: [ 2755.763] X.Org ANSI C Emulation: 0.4 [ 2755.763] X.Org Video Driver: 23.0 [ 2755.763] X.Org XInput driver : 2