Bug 43887 - Во время блокировки экрана каждый раз создается новая X сессия
Summary: Во время блокировки экрана каждый раз создается новая X сессия
Status: NEW
Alias: None
Product: Simply Linux
Classification: Distributions
Component: bugs (show other bugs)
Version: 10.0
Hardware: aarch64 Linux
: P5 normal
Assignee: Mikhail Efremov
QA Contact: Andrey Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-28 14:58 MSK by DVoropaev
Modified: 2023-01-25 12:23 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DVoropaev 2022-09-28 14:58:17 MSK
Столкнулся с проблемой в slinux-10.0 для Raspberry Pi
https://mirror.yandex.ru/altlinux/p10/images/simply/aarch64//slinux-10.0-rpi4-aarch64.img.xz

Заблокировал/разблокировал экран несколько раз подряд, появились новые X сессии:
$ ps ax | grep X
   2144 tty1     Ssl+   0:08 X -nolisten tcp :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
   2997 tty2     Ssl+   0:02 X -nolisten tcp :1 -seat seat0 -auth /run/lightdm/root/:1 -nolisten tcp vt2 -novtswitch
   3122 tty3     Ssl+   0:02 X -nolisten tcp :2 -seat seat0 -auth /run/lightdm/root/:2 -nolisten tcp vt3 -novtswitch
   3220 tty4     Ssl+   0:02 X -nolisten tcp :3 -seat seat0 -auth /run/lightdm/root/:3 -nolisten tcp vt4 -novtswitch
   3274 pts/0    S+     0:00 grep X

При этом после 5 попытки Raspberry Pi 3 начинает тормозить.
Comment 1 Pavel Shilov 2023-01-25 12:23:55 MSK
Произвел проверку на платформе:
* slinux-10.0-rpi4-aarch64

Версия пакета: 
* light-locker-1.9.0-alt1.aarch64

$ uname -a
Linux host-188 5.15.73-rpi-def-alt1 #1 SMP PREEMPT Fri Oct 14 16:09:10 UTC 2022 aarch64 GNU/Linux

$ apt-repo 
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux p10/branch/aarch64 classic
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux p10/branch/noarch classic

$ ps ax | grep X
   4152 tty1     Ssl+   0:29 X -nolisten tcp :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
   6382 tty2     Ssl+   0:02 X -nolisten tcp :1 -seat seat0 -auth /run/lightdm/root/:1 -nolisten tcp vt2 -novtswitch
   6482 tty3     Ssl+   0:01 X -nolisten tcp :2 -seat seat0 -auth /run/lightdm/root/:2 -nolisten tcp vt3 -novtswitch
   7039 tty4     Ssl+   0:01 X -nolisten tcp :3 -seat seat0 -auth /run/lightdm/root/:3 -nolisten tcp vt4 -novtswitch
   7300 pts/4    S+     0:00 grep --color=auto X
   
   
$ journalctl -u lightdm
ноя 27 22:07:06 host-188 systemd[1]: Starting Light Display Manager...
ноя 27 22:07:06 host-188 systemd[1]: Started Light Display Manager.
ноя 27 22:07:13 host-188 lightdm[2281]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswd>
-- Boot 5c3e41f8772047828dfcd3a64e5439fc --
дек 23 13:06:32 host-188 systemd[1]: Starting Light Display Manager...
-- Boot e0860584d41a446dab3c11a39608c59d --
дек 23 13:06:33 host-188 systemd[1]: Starting Light Display Manager...
-- Boot 5c3e41f8772047828dfcd3a64e5439fc --
дек 23 13:06:33 host-188 systemd[1]: Started Light Display Manager.
-- Boot e0860584d41a446dab3c11a39608c59d --
дек 23 13:06:33 host-188 systemd[1]: Started Light Display Manager.
-- Boot 5c3e41f8772047828dfcd3a64e5439fc --
дек 23 13:06:42 host-188 lightdm[4328]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswd>
-- Boot e0860584d41a446dab3c11a39608c59d --
дек 23 13:06:42 host-188 lightdm[4340]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswd>
дек 23 13:06:45 host-188 lightdm[4340]: pam_tcb(lightdm:auth): Authentication passed for test from (uid=>
дек 23 13:06:46 host-188 lightdm[4340]: pam_tcb(lightdm:session): Session opened for test by (uid=0)
-- Boot 5c3e41f8772047828dfcd3a64e5439fc --
дек 23 13:06:47 host-188 lightdm[4328]: pam_tcb(lightdm:auth): Authentication passed for test from (uid=>
дек 23 13:06:47 host-188 lightdm[4328]: pam_tcb(lightdm:session): Session opened for test by (uid=0)
-- Boot 5e00b95539314ceea445fad107dc456d --
янв 25 11:49:18 host-188 systemd[1]: Stopping Light Display Manager...
янв 25 11:49:19 host-188 systemd[1]: lightdm.service: Deactivated successfully.
янв 25 11:49:19 host-188 systemd[1]: Stopped Light Display Manager.
янв 25 11:49:19 host-188 systemd[1]: lightdm.service: Consumed 1.961s CPU time.
-- Boot 5c3e41f8772047828dfcd3a64e5439fc --


 systemctl status lightdm.service 
● lightdm.service - Light Display Manager
     Loaded: loaded (/lib/systemd/system/lightdm.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-12-23 13:06:33 MSK; 1 month 2 days ago
       Docs: man:lightdm(1)
   Main PID: 4125 (lightdm)
      Tasks: 60 (limit: 9049)
        CPU: 56.670s
     CGroup: /system.slice/lightdm.service
             ├─ 4125 /usr/sbin/lightdm
             ├─ 4152 X -nolisten tcp :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt1 -novtsw>
             ├─ 6382 X -nolisten tcp :1 -seat seat0 -auth /run/lightdm/root/:1 -nolisten tcp vt2 -novtsw>
             ├─ 6456 lightdm --session-child 13 22
             ├─ 6482 X -nolisten tcp :2 -seat seat0 -auth /run/lightdm/root/:2 -nolisten tcp vt3 -novtsw>
             ├─ 6524 lightdm --session-child 22 29
             ├─ 6590 lightdm --session-child 29 36
             ├─ 6654 lightdm --session-child 36 43
             ├─ 6774 lightdm --session-child 43 52
             ├─ 6871 lightdm --session-child 52 59
             ├─ 6916 lightdm --session-child 14 21
             ├─ 7039 X -nolisten tcp :3 -seat seat0 -auth /run/lightdm/root/:3 -nolisten tcp vt4 -novtsw>
             ├─ 7104 lightdm --session-child 21 30
             ├─ 7325 X -nolisten tcp :4 -seat seat0 -auth /run/lightdm/root/:4 -nolisten tcp vt5 -novtsw>
             ├─ 7391 lightdm --session-child 22 35
             ├─ 7422 X -nolisten tcp :5 -seat seat0 -auth /run/lightdm/root/:5 -nolisten tcp vt6 -novtsw>
             ├─ 7480 lightdm --session-child 47 53
             └─ 7483 lightdm --session-child 23 34

янв 25 11:57:54 host-188 lightdm[6916]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswd>
янв 25 11:57:56 host-188 lightdm[6916]: pam_tcb(lightdm:auth): Authentication passed for test from (uid=>
янв 25 12:00:13 host-188 lightdm[7104]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswd>
янв 25 12:00:17 host-188 lightdm[7104]: pam_tcb(lightdm:auth): Authentication passed for test from (uid=>
янв 25 12:06:28 host-188 lightdm[7391]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswd>
янв 25 12:07:16 host-188 lightdm[7391]: pam_tcb(lightdm:auth): Authentication passed for test from (uid=>
янв 25 12:07:34 host-188 lightdm[7466]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswd>
янв 25 12:08:46 host-188 lightdm[4125]: session_real_start: assertion 'priv->pid == 0' failed
янв 25 12:08:46 host-188 lightdm[7483]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswd